百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

IQL-PyTorch

> 编程语言
开源

PyTorch 实现的隐式 Q 学习

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

PyTorch 实现的隐式 Q 学习

Implicit Q-Learning (IQL) in PyTorch

This repository houses a minimal PyTorch implementation of Implicit Q-Learning (IQL), an offline reinforcement learning algorithm, along with a script to run IQL on tasks from the D4RL benchmark.

To install the dependencies, use pip install -r requirements.txt.

You can run the script like so:

bash
python main.py --log-dir /path/where/results/will/go --env-name hopper-medium-v2 --tau 0.7 --beta 3.0

Note that the paper's authors have published their official implementation, which is based on JAX. My implementation is intended to be an alternative for PyTorch users, and my general recommendation is to use the authors' code unless you specifically want/need PyTorch for some reason.

I am validating my implementation against the results stated in the paper as compute permits. Below are results for the MuJoCo locomotion tasks, normalized return at the end of training, averaged (+/- standard deviation) over 3 seeds:

Environment This implementation Official implementation
halfcheetah-medium-v2 47.7 +/- 0.2 47.4
hopper-medium-v2 61.2 +/- 6.4 66.3
walker2d-medium-v2 78.7 +/- 4.5 78.3
halfcheetah-medium-replay-v2 42.9 +/- 1.7 44.2
hopper-medium-replay-v2 86.8 +/- 15.5 94.7
walker2d-medium-replay-v2 68.3 +/- 6.4 73.9
halfcheetah-medium-expert-v2 88.3 +/- 2.8 86.7
hopper-medium-expert-v2 76.6 +/- 34.9 91.5
walker2d-medium-expert-v2 108.7 +/- 2.2 109.6

We can see that the performance is mostly similar to what is stated in the paper, but slightly worse on a few tasks. Note that these results were obtained using a small simplification (deterministic policy and least-squares loss rather than a Gaussian distribution and negative log likelihood), which may explain the discrepancy.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言