Causal GPT-RL — Unity ML-Agents environments
Public materials for running Causal GPT-RL policies in Unity ML-Agents. Each environment is a model-removed Unity build — the engine binary with no baked-in policy; the policy is supplied at run time. PushBlock, Pyramids, Worm, Walker, 3DBallHard, and SoccerTwos are paired with their stock built-in policies; DungeonEscape is build-only.
Environments
| Environment | Build | Stock policy | Agents | Observation | Action |
|---|---|---|---|---|---|
| 3DBallHard | 3DBallHard/ |
3DBallHard.onnx |
12 | 45 (27 + 18) |
Box(2) continuous |
| PushBlock | PushBlock/ |
PushBlock.onnx |
32 | 210 (105 + 105) |
Discrete(7) |
| DungeonEscape | DungeonEscape/ |
— (build-only) | 36 | 371 |
Discrete(7) |
| SoccerTwos | SoccerTwos/ |
SoccerTwos.onnx |
32 | 336 (264 + 72) |
MultiDiscrete([3,3,3]) |
| Pyramids | Pyramids/ |
Pyramids.onnx |
16 | 172 (56 + 56 + 56 + 4) |
Discrete(5) |
| Worm | Worm/ |
Worm.onnx |
10 | 64 |
Box(9) continuous |
| Walker | Walker/ |
Walker.onnx |
10 | 243 |
Box(39) continuous |
Companion repos
- Policy (ONNX): ccnets/causal-gpt-rl-unity
- Recorded trajectories + reproduction recipe: ccnets/causal-gpt-rl-unity-datasets
Reproduce — record trajectories from these builds with the collection & measurement recipe: examples/unity_collection.
Layout
3DBallHard/ # model-removed Unity build
3DBallHard.exe
UnityPlayer.dll
UnityCrashHandler64.exe
3DBallHard_Data/
MonoBleedingEdge/
3DBallHard.onnx # stock built-in policy (ml-agents-release_23)
DungeonEscape/ # release-23 model-removed Unity build
UnityEnvironment.exe
UnityPlayer.dll
UnityCrashHandler64.exe
UnityEnvironment_Data/
MonoBleedingEdge/
SoccerTwos/ # release-23 model-removed Unity build
UnityEnvironment.exe
UnityPlayer.dll
UnityCrashHandler64.exe
UnityEnvironment_Data/
MonoBleedingEdge/
SoccerTwos.onnx # release-23 stock policy, ORT-compatible outputs
PushBlock/ # release-23 model-removed Unity build
PushBlock.exe
UnityPlayer.dll
UnityCrashHandler64.exe
PushBlock_Data/
MonoBleedingEdge/
PushBlock.onnx # stock built-in policy (ml-agents-release_23)
Pyramids/ # release-23 model-removed Unity build
Pyramids.exe
Pyramids_Data/
Pyramids.onnx # release-23 stock policy
Worm/ # release-23 model-removed Unity build
Worm.exe
Worm_Data/
Worm.onnx # release-23 stock policy
Walker/ # release-23 model-removed Unity build
Walker.exe
Walker_Data/
Walker.onnx # release-23 stock policy
LICENSE # Apache-2.0
NOTICE # attributions + modification notice
README.md
Each build is model-removed: no policy is baked in — supply one at run time (the stock policy here, or the Causal GPT-RL policy from the model repo). All launch headless.
3DBallHard
- Scene: 12 agents, observation 45-d (sensor channels
27 + 18), actionBox(2)continuous, behavior3DBallHard?team=0. - Built from the customized ML-Agents release-23 project with the baked model
removed.
3DBallHard.onnxis the unmodified release-23 stock policy used as the collection driver; SHA-256380aed53f8bcfd3b42a7eb758923c2eb7a98abe91c44b44ba2288924e65de701. - Its single
vector_observation [45]input receives the two live build sensor channels concatenated in spec order (27 + 18).
PushBlock
- Scene: 32 agents, observation 210-d (two sensors
105 + 105), action a singleDiscrete(7)branch (0 = no-op; 1–6 = move/turn), behaviorPushBlock?team=0. In the companion dataset the observation is stored asTuple(Box(105), Box(105)). - Built from the customized ML-Agents release-23 project with the baked model
removed.
PushBlock.onnxis the unmodified release-23 stock policy used as the collection driver; SHA-2561c8230f87d3067343f8b8b8ebf0839843c855d4d7912111546a7522e30e4bfbe. - The stock ONNX emits
Discrete(7)actions for external Python control of the model-removed build.
DungeonEscape
- Scene: 36 agents arranged as 12 arenas x 3 cooperative agents,
observation 371-d, action a single
Discrete(7)branch. - Build-only: this is a model-removed build; no policy is baked in and no stock policy is redistributed. Drive it with the DungeonEscape policy from the model repo.
- Built from the customized ML-Agents release-23 project. The three agents in each arena share a cooperative objective while each policy invocation receives its own ego observation.
- Evaluation tutorial: examples/unity.
SoccerTwos
- Scene: 32 agents arranged as eight 2-vs-2 fields, observation channels
264 + 72 = 336, actionMultiDiscrete([3,3,3]); behaviors areSoccerTwos?team=0andSoccerTwos?team=1with 16 agents each. - Built from the customized ML-Agents release-23 project with the baked model
removed.
SoccerTwos.onnxis the release-23 stock policy used as the public opponent and collection driver. - The stock graph is computation-equivalent to the release-23 source policy; only dangling output declarations that reference no graph values were removed so current ONNX Runtime versions can load it.
- Causal-vs-stock tutorial: examples/unity.
Pyramids
- Scene: 16 agents, observation channels
56 + 56 + 56 + 4 = 172, actionDiscrete(5). The stock release-23 policy is redistributed unmodified; SHA-2560ab9ec55f788018cd0b01ebe28b198b4714e85f27f48710d1ebc27fd455a0e07.
Worm
- Scene: 10 agents, one
64-d observation sensor and continuousBox(9)action. The stock release-23 policy is redistributed unmodified; SHA-256a5dd14742d9e3d1d1ca4840bca600b669b37d630977091ee10286ed7a833411f.
Walker
- Scene: 10 agents, one
243-d observation sensor and continuousBox(39)action. The stock release-23 policy is redistributed unmodified; SHA-25628f675937108a850e5c3ea2894a78552f51290c0d6220ebf3ee2c223d016c434.
Running an unsigned build (Windows)
These builds are not code-signed, so Windows SmartScreen may warn on first launch ("Windows protected your PC" → More info → Run anyway). Verify the download before running.
Provenance & scope
- The builds were produced from customized ML-Agents projects. PushBlock, Pyramids, Worm, Walker, DungeonEscape, and SoccerTwos
derive from
ml-agents-release_23. The distributed stock policies match their respective build contracts. Other example scenes are not included. - Not source-rebuildable from stock ML-Agents: the project changes live in the compiled binaries. The builds are provided as-is.
- Excluded from each build: its
*_BurstDebugInformation_DoNotShip/folder (Burst debug symbols, not for shipping).
License
The Unity builds and the stock policies (PushBlock.onnx, Pyramids.onnx, Worm.onnx,
Walker.onnx, 3DBallHard.onnx, SoccerTwos.onnx) are
Apache-2.0 (Unity ML-Agents). See LICENSE and
NOTICE. The builds are modified derivatives — the modifications are described in
NOTICE. The Unity runtime components (UnityPlayer.dll, UnityCrashHandler64.exe,
MonoBleedingEdge/) are redistributed as part of a built player, subject to Unity
Technologies' software terms.
- Downloads last month
- 554