kissin42 commited on
Commit
c85f604
·
verified ·
1 Parent(s): 1719a2b

docs: put installing next to the versions that reproduce the table

Browse files

Install said pip install causal-gpt-rl[hub,mujoco] and Reproduction runtime, 140 lines later, said the numbers only hold on mujoco 3.2.3 -- the version the Minari datasets were recorded with. Anyone following the page in order installed the wrong one and met the reason much later. The two are now adjacent, which also puts the score table right after the intro: what it scores, how it was measured, how to install, how to run. 'This repository is the public inference runtime' becomes 'The code repository' -- on a repo page holding eight bundles, 'this' pointed here.

Files changed (1) hide show
  1. README.md +43 -43
README.md CHANGED
@@ -27,7 +27,7 @@ Causal GPT-RL policies act stably under their own rollouts — long-horizon cont
27
 
28
  A single autoregressive model drives full-episode rollouts via KV cache — no separate critic, no auxiliary networks at inference. The model carries a value head and computes it on every forward pass, but a rollout does not read it: the action alone carries the loop.
29
 
30
- This repository is the public inference runtime. It loads policy bundles, runs Gymnasium/MuJoCo rollouts, and provides small evaluation helpers.
31
 
32
  - **Code (GitHub):** [ccnets-team/causal-gpt-rl](https://github.com/ccnets-team/causal-gpt-rl)
33
  - **Hugging Face org:** https://huggingface.co/ccnets
@@ -35,48 +35,6 @@ This repository is the public inference runtime. It loads policy bundles, runs G
35
  - Website: https://ccnets.org
36
  - LinkedIn: https://www.linkedin.com/company/ccnets
37
 
38
- ## Install
39
-
40
- For Hub loading and MuJoCo environments:
41
-
42
- ```bash
43
- pip install "causal-gpt-rl[hub,mujoco]"
44
- ```
45
-
46
- For local development:
47
-
48
- ```bash
49
- git clone https://github.com/ccnets-team/causal-gpt-rl.git
50
- cd causal-gpt-rl
51
- python -m pip install -e ".[hub,mujoco]"
52
- ```
53
-
54
- For private bundles, authenticate first:
55
-
56
- ```bash
57
- hf auth login
58
- ```
59
-
60
- ## Quick Start
61
-
62
- ```python
63
- import gymnasium as gym
64
-
65
- from causal_gpt_rl.inference import load_runner_from_hub, run_episodes
66
-
67
- env = gym.make("Ant-v5")
68
- runner = load_runner_from_hub(
69
- repo_id="ccnets/causal-gpt-rl",
70
- subfolder="ant-v5",
71
- )
72
-
73
- stats = run_episodes(env, runner, num_episodes=5, seed=0)
74
- env.close()
75
- print(stats["return_mean"], stats["return_std"])
76
- ```
77
-
78
- Notebook version: [examples/hub_quickstart.ipynb](https://github.com/ccnets-team/causal-gpt-rl/blob/main/examples/hub_quickstart.ipynb)
79
-
80
  ## Supported Environments
81
 
82
  | Bundle | Ctx | Return | Norm. | Simple Ref. | Medium Ref. |
@@ -193,6 +151,48 @@ were recorded with (`requirements: ['mujoco==3.2.3', 'gymnasium>=1.0.0']`). The
193
  `Norm.` and `Medium Ref.` columns are derived from those recorded trajectories,
194
  so returns are only comparable to them when measured on the same physics.
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  ## Bundle Format
197
 
198
  Public bundles use `bundle_format_version=2`:
 
27
 
28
  A single autoregressive model drives full-episode rollouts via KV cache — no separate critic, no auxiliary networks at inference. The model carries a value head and computes it on every forward pass, but a rollout does not read it: the action alone carries the loop.
29
 
30
+ The code repository is the public inference runtime. It loads policy bundles, runs Gymnasium/MuJoCo rollouts, and provides small evaluation helpers.
31
 
32
  - **Code (GitHub):** [ccnets-team/causal-gpt-rl](https://github.com/ccnets-team/causal-gpt-rl)
33
  - **Hugging Face org:** https://huggingface.co/ccnets
 
35
  - Website: https://ccnets.org
36
  - LinkedIn: https://www.linkedin.com/company/ccnets
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ## Supported Environments
39
 
40
  | Bundle | Ctx | Return | Norm. | Simple Ref. | Medium Ref. |
 
151
  `Norm.` and `Medium Ref.` columns are derived from those recorded trajectories,
152
  so returns are only comparable to them when measured on the same physics.
153
 
154
+ ## Install
155
+
156
+ For Hub loading and MuJoCo environments:
157
+
158
+ ```bash
159
+ pip install "causal-gpt-rl[hub,mujoco]"
160
+ ```
161
+
162
+ For local development:
163
+
164
+ ```bash
165
+ git clone https://github.com/ccnets-team/causal-gpt-rl.git
166
+ cd causal-gpt-rl
167
+ python -m pip install -e ".[hub,mujoco]"
168
+ ```
169
+
170
+ For private bundles, authenticate first:
171
+
172
+ ```bash
173
+ hf auth login
174
+ ```
175
+
176
+ ## Quick Start
177
+
178
+ ```python
179
+ import gymnasium as gym
180
+
181
+ from causal_gpt_rl.inference import load_runner_from_hub, run_episodes
182
+
183
+ env = gym.make("Ant-v5")
184
+ runner = load_runner_from_hub(
185
+ repo_id="ccnets/causal-gpt-rl",
186
+ subfolder="ant-v5",
187
+ )
188
+
189
+ stats = run_episodes(env, runner, num_episodes=5, seed=0)
190
+ env.close()
191
+ print(stats["return_mean"], stats["return_std"])
192
+ ```
193
+
194
+ Notebook version: [examples/hub_quickstart.ipynb](https://github.com/ccnets-team/causal-gpt-rl/blob/main/examples/hub_quickstart.ipynb)
195
+
196
  ## Bundle Format
197
 
198
  Public bundles use `bundle_format_version=2`: