docs(org): cover the Unity work and correct the scope, bundles and licensing
Browse filesThe org card described the project as continuous-control only, which its own
repos contradict: the Unity model repo ships checkpoints for two discrete goal
games, and 12 of the 24 published datasets are discrete or multi-agent. It also
undersold the differentiator the dataset card leads with β one architecture
across action-space types.
- Scope: continuous motor control, discrete goal games and hybrid action spaces,
single-agent through cooperative and competitive multi-agent
- Get started: keep the MuJoCo example, add the Unity ONNX and Minari dataset
entry paths (Unity policies are ONNX graphs, not inference bundles, so
load_runner_from_hub does not apply to them)
- MuJoCo bundles corrected from four to the six actually published: ant-v5,
halfcheetah-v5, hopper-v5, humanoid-v5, humanoidstandup-v5, walker2d-v5
- Describe the Unity environments, their action spaces and the quality ladders
- Licensing split by artifact type β PolyForm Noncommercial for models and code,
CC-BY-4.0 for the trajectory data, Apache-2.0 for the Unity builds and stock
policies β instead of a single blanket term
|
@@ -7,19 +7,27 @@ sdk: static
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
#
|
| 11 |
|
| 12 |
-
GPT-style transformers (GPT-2, Llama) running as RL policies
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
```text
|
| 15 |
action β next state β next action (RL rollouts)
|
| 16 |
token β next token β next token (LLM generation)
|
| 17 |
```
|
| 18 |
|
| 19 |
-
Stable under self-generated rollouts β long-horizon control without the drift that
|
|
|
|
| 20 |
|
| 21 |
## Get started
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
```bash
|
| 24 |
pip install "causal-gpt-rl[hub,mujoco]"
|
| 25 |
```
|
|
@@ -37,10 +45,75 @@ runner = load_runner_from_hub(
|
|
| 37 |
stats = run_episodes(env, runner, num_episodes=5, seed=0)
|
| 38 |
```
|
| 39 |
|
| 40 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
-
- **Training logs (W&B, public):** [wandb.ai/junhopark/Causal GPT-RL](https://wandb.ai/junhopark/Causal%20GPT-RL?nw)
|
| 44 |
-
- **Website:** [ccnets.org](https://ccnets.org)
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# CCNets, Inc.
|
| 11 |
|
| 12 |
+
**Causal GPT-RL** β GPT-style transformers (GPT-2, Llama) running as RL policies.
|
| 13 |
+
The same architecture drives **continuous motor control, discrete goal games and
|
| 14 |
+
hybrid action spaces**, including cooperative and competitive multi-agent scenes,
|
| 15 |
+
without a separate model per action-space type. Autoregressive generation carries
|
| 16 |
+
long-horizon control without auxiliary networks.
|
| 17 |
|
| 18 |
```text
|
| 19 |
action β next state β next action (RL rollouts)
|
| 20 |
token β next token β next token (LLM generation)
|
| 21 |
```
|
| 22 |
|
| 23 |
+
Stable under self-generated rollouts β long-horizon control without the drift that
|
| 24 |
+
has historically kept transformers from being usable as RL agents.
|
| 25 |
|
| 26 |
## Get started
|
| 27 |
|
| 28 |
+
**MuJoCo** β six bundles: `ant-v5`, `halfcheetah-v5`, `hopper-v5`, `humanoid-v5`,
|
| 29 |
+
`humanoidstandup-v5`, `walker2d-v5`.
|
| 30 |
+
|
| 31 |
```bash
|
| 32 |
pip install "causal-gpt-rl[hub,mujoco]"
|
| 33 |
```
|
|
|
|
| 45 |
stats = run_episodes(env, runner, num_episodes=5, seed=0)
|
| 46 |
```
|
| 47 |
|
| 48 |
+
**Unity** β the trained policies ship as self-contained ONNX graphs with
|
| 49 |
+
observation normalization baked in, so they run under ONNX Runtime or Unity Sentis
|
| 50 |
+
with no PyTorch at inference time.
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
from huggingface_hub import hf_hub_download
|
| 54 |
+
import onnxruntime as ort
|
| 55 |
+
|
| 56 |
+
path = hf_hub_download("ccnets/causal-gpt-rl-unity", "pyramids/pyramids-b16.onnx")
|
| 57 |
+
session = ort.InferenceSession(path)
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
**Offline-RL datasets** β standard Minari, no Unity install required.
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
from pathlib import Path
|
| 64 |
+
from huggingface_hub import snapshot_download
|
| 65 |
+
import minari
|
| 66 |
+
|
| 67 |
+
snapshot_download(
|
| 68 |
+
repo_id="ccnets/causal-gpt-rl-unity-datasets",
|
| 69 |
+
repo_type="dataset",
|
| 70 |
+
allow_patterns="crawler/**", # one environment; drop to fetch all
|
| 71 |
+
local_dir=Path.home() / ".minari" / "datasets" / "unity",
|
| 72 |
+
)
|
| 73 |
+
dataset = minari.load_dataset("unity/crawler/expert-v0")
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## What we publish
|
| 77 |
+
|
| 78 |
+
| Repo | What it is |
|
| 79 |
+
|---|---|
|
| 80 |
+
| [causal-gpt-rl](https://huggingface.co/ccnets/causal-gpt-rl) | Policy bundles for six MuJoCo continuous-control tasks |
|
| 81 |
+
| [causal-gpt-rl-unity](https://huggingface.co/ccnets/causal-gpt-rl-unity) | ONNX policies for Unity goal games (Pyramids, PushBlock) |
|
| 82 |
+
| [causal-gpt-rl-unity-datasets](https://huggingface.co/datasets/ccnets/causal-gpt-rl-unity-datasets) | 24 offline-RL datasets β 8 Unity environments Γ 3 quality tiers, Minari format |
|
| 83 |
+
| [causal-gpt-rl-unity-envs](https://huggingface.co/datasets/ccnets/causal-gpt-rl-unity-envs) | The matching model-removed Unity builds and stock ONNX policies |
|
| 84 |
+
|
| 85 |
+
## Environments
|
| 86 |
+
|
| 87 |
+
**MuJoCo** (continuous) β Ant-v5, HalfCheetah-v5, Hopper-v5, Walker2d-v5,
|
| 88 |
+
Humanoid-v5, HumanoidStandup-v5. The shipped bundles are *expert-free*: trained on
|
| 89 |
+
`simple` and `medium` Minari trajectories only.
|
| 90 |
+
|
| 91 |
+
**Unity ML-Agents `release_23`** β eight environments spanning continuous and
|
| 92 |
+
discrete action spaces, single-agent through multi-agent:
|
| 93 |
+
|
| 94 |
+
- *continuous* β Crawler `Box(20)`, Walker `Box(39)`, Worm `Box(9)`, 3DBallHard `Box(2)`
|
| 95 |
+
- *discrete* β PushBlock `Discrete(7)`, Pyramids `Discrete(5)`
|
| 96 |
+
- *cooperative multi-agent* β DungeonEscape, three agents per group, ego-agent schema
|
| 97 |
+
- *competitive self-play* β SoccerTwos, `MultiDiscrete([3, 3, 3])`
|
| 98 |
+
|
| 99 |
+
Every Unity environment ships a full **quality ladder** β `expert` plus calibrated
|
| 100 |
+
`medium` and `simple` tiers synthesized by degrading the stock policy, keyed to
|
| 101 |
+
Minari-normalized skill (targets `simple` 0.60 / `medium` 0.80 / `expert` 1.0). The
|
| 102 |
+
degradation is drawn per episode from a calibrated range rather than held constant,
|
| 103 |
+
so each tier spans a continuous band of skill instead of a single point β the
|
| 104 |
+
distribution a spread of early training checkpoints would have produced.
|
| 105 |
+
|
| 106 |
+
## Licensing
|
| 107 |
+
|
| 108 |
+
Three different terms apply, by artifact type:
|
| 109 |
+
|
| 110 |
+
- **Models and code** β PolyForm Noncommercial 1.0.0
|
| 111 |
+
- **Trajectory data** (`causal-gpt-rl-unity-datasets`) β CC-BY-4.0. Please credit
|
| 112 |
+
*ccnets β Causal GPT-RL* and note the Unity ML-Agents source environment.
|
| 113 |
+
- **Unity builds and stock policies** (`causal-gpt-rl-unity-envs`) β Apache-2.0,
|
| 114 |
+
as derivatives of Unity ML-Agents material.
|
| 115 |
|
| 116 |
+
## Links
|
|
|
|
|
|
|
| 117 |
|
| 118 |
+
- Website: [ccnets.org](https://ccnets.org)
|
| 119 |
+
- GitHub: [ccnets-team/causal-gpt-rl](https://github.com/ccnets-team/causal-gpt-rl)
|