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. All nineteen environments are
paired with their stock built-in policies, and four of the original discrete-action environments
additionally ship a logits-exposing variant under tier_policies/.
Builds are published for Windows x86-64 and, under linux/, for
Linux x86-64. No macOS builds are published.
Environments
| Environment | Build | Stock policy | Agents | Observation | Action |
|---|---|---|---|---|---|
| Crawler | Crawler/ |
Crawler.onnx |
10 | 158 (126 + 32) |
Box(20) continuous |
| 3DBallHard | 3DBallHard/ |
3DBallHard.onnx |
12 | 45 (27 + 18) |
Box(2) continuous |
| PushBlock | PushBlock/ |
PushBlock.onnx |
32 | 210 (105 + 105) |
Discrete(7) |
| DungeonEscape | DungeonEscape/ |
DungeonEscape.onnx |
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 |
| Cooperative Push Block | PushBlockCollab/ |
PushBlockCollab.onnx |
12 (4 x 3) | grid (6,20,20) + vector (10,) |
Discrete(7) |
| Food Collector | FoodCollector/ |
GridFoodCollector.onnx |
20 (4 x 5) | grid (5,40,40) |
Tuple(Box(3), Discrete(2)) |
| Strikers vs Goalie | StrikersVsGoalie/ |
Striker.onnx, Goalie.onnx |
24 (8 x 3) | striker 231 + 63; goalie 738 |
MultiDiscrete([3,3,3]) |
| Hallway | Hallway/ |
Hallway.onnx |
16 | 105 + 3, recurrent memory (1,128) |
Discrete(5) |
| Grid World | GridWorld/ |
GridWorld.onnx |
9 | camera (3,64,84) + goal (2,) |
Discrete(5) |
| Sorter | Sorter/ |
Sorter.onnx |
8 | buffer (20,23) + vectors 10 + 8 |
MultiDiscrete([3,3,3]) |
| Wall Jump | WallJump/ |
SmallWallJump.onnx, BigWallJump.onnx |
24 | 210 + 210 + 24 |
MultiDiscrete([3,3,3,2]) |
| Match3VectorObs | Match3VectorObs/ |
Match3VectorObs.onnx |
4 | 432 + 216 |
Discrete(127) |
| Basic | Basic/ |
Basic.onnx |
1 | 20 |
Discrete(3) |
| 3DBall | 3DBall/ |
3DBall.onnx |
12 | 8 |
Box(2) continuous |
| PushBlockWithInput | PushBlockWithInput/ |
PushBlockWithInput.onnx |
32 | 105 + 105 |
Tuple(Box(2), Discrete(2)) |
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.
Getting a build
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="ccnets/causal-gpt-rl-unity-envs",
repo_type="dataset",
allow_patterns=["Crawler/**", "Crawler.onnx"], # one environment, Windows
local_dir="unity-envs",
)
Build sizes vary by environment and platform.
Fetch only the environments you need. Linux builds are under
linux/, as linux/Crawler/**; the logits-exposing policy variants are under
tier_policies/.
Layout
Every environment is one folder with its stock policy beside it:
Crawler/ # model-removed build: .exe, _Data/, UnityPlayer.dll
Crawler.onnx # stock built-in policy (ml-agents-release_23)
DungeonEscape and SoccerTwos name their executable UnityEnvironment.exe
rather than <Environment>.exe. linux/ mirrors the same tree for Linux
x86-64. tier_policies/ holds logits-exposing variants of the four discrete
policies, with the calibrated temperature bands in its own README.
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.
Crawler
- Scene: 10 agents, observation 158-d (sensor channels
126 + 32), actionBox(20)continuous, behaviorCrawler?team=0. In the companion dataset the observation is stored asTuple(Box(126), Box(32)). - Built from the customized ML-Agents release-23 project with the baked model
removed.
Crawler.onnxis the unmodified release-23 stock policy used as the collection driver; size2,472,183bytes, SHA-256df5dd19f28e89678f96b794e911564c21d0039160e88d99fe04f3939442ffdd7.
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. - The ONNX takes the two sensor channels as separate inputs β
obs_0 [27]andobs_1 [18], not one concatenated[45]vector. It returnscontinuous_actions(sampled) anddeterministic_continuous_actions(greedy), bothfloat32[B, 2].
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. - Built from the customized ML-Agents release-23 project with the baked model
removed.
DungeonEscape.onnxis the release-23 built-in policy used as the collection driver; SHA-256141e3595dbaa3ea369b2c5599e6e750b53b8a9c41414a6b5c7043617860691ab. - 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.
Additional simulations (2026-10-22)
The following seven release-23 scenes are available as Windows and Linux x86-64
model-removed players, built with Unity 6000.0.40f1. Every
simulation-build.json records modelRemoved: true and packedPolicies: [].
Stock ONNX files are separate downloads at the repository root; none is embedded
in these players.
Cooperative Push Block (PushBlockCollab)
- Four arenas of three cooperating agents, 12 agents total. Behavior:
PushBlockCollab?team=0; actions:Discrete(7). - Actual ML-Agents observations: grid
(6,20,20)and vector(10,). - Agents push blocks into the goal and receive cooperative group rewards. Use
ML-Agents
group_idandgroup_rewardwhen processing trajectories. - External driver:
PushBlockCollab.onnx.
Food Collector
- Four arenas of five agents, 20 agents total. Behavior:
GridFoodCollector?team=0. - Actual ML-Agents observation: grid
(5,40,40). Hybrid actions: three continuous movement/rotation values plusDiscrete(2)for the laser. - Green food gives
+1; red food gives-1; agents can freeze others with their laser. Avoiding bad food is an avoidance task; language-levelpreventand subject/object labels are not supplied by this stock scene. - External driver:
GridFoodCollector.onnx.
Strikers vs Goalie
- Eight fields of two strikers versus one goalie, 24 agents total.
Striker?team=0: 16 agents; vector observations(231,)and(63,); drive withStriker.onnx.Goalie?team=1: 8 agents; vector observation(738,); drive withGoalie.onnx.- Both roles use
MultiDiscrete([3,3,3]). Their observation contracts differ, so each role needs its own policy and observation batch.
Hallway
- 16 agents, behavior
Hallway?team=0, vector sensors(105,)and(3,), actionsDiscrete(5). External driver:Hallway.onnx. - The stock policy requires recurrent state:
recurrent_in/recurrent_outof shape[batch,1,128]. Keep state per physical agent, advance only on its decision ticks, and clear it at every terminal/interrupted episode boundary. - The validation runner performed 361 per-agent memory resets in its 1,000-tick Windows run. Register the standard ML-Agents StatsSideChannel to consume the scene's correct/wrong-goal statistics.
Grid World (GridWorld)
- Nine agents, behavior
GridWorld?team=0, camera observation(3,64,84)plus goal vector(2,), actionsDiscrete(5)with action masks. - External driver:
GridWorld.onnx. Render the camera: use--renderfor batchmode with a graphics device, or--graphicsfor a visible player.-nographicsis not suitable for camera-based policy validation. - The Windows probe verified nonconstant camera pixels and masked actions. The goal vector selects which goal type is rewarded; do not hard-code one color as universally good when interpreting the stock scene.
Sorter
- Eight agents, behavior
Sorter?team=0, externalSorter.onnx. - Observations: variable-size buffer padded to
(20,23), plus vector sensors(10,)and(8,). Actions:MultiDiscrete([3,3,3]). - Preserve the buffer's variable-size dimension semantics and padding. This is an attention/buffer observation, not a camera image or a plain flat vector.
Wall Jump (WallJump)
- 24 physical agents, observation sensors
(210,),(210,),(24,), actionsMultiDiscrete([3,3,3,2]). - The stock controller changes wall height each episode and switches agents
between
SmallWallJump?team=0andBigWallJump?team=0. Route these behaviors toSmallWallJump.onnxandBigWallJump.onnxrespectively. Preserve physical agent identity even when the behavior name changes. - All three serialized controller model fields were cleared in the scene copy, so runtime behavior switching does not load a baked policy. Reward and reset logic remain as in the source scene.
Run and validate
Windows: all seven players passed 1,000 ML-Agents env.step() ticks driven by
the external stock policies, with finite observations/actions/rewards and live
episode endings. Linux: all seven players passed a native Ubuntu/WSL engine
startup check; policy rollouts were not tested on Linux. Build and probe evidence
is under validation/additional-simulations/.
These are simulation artifacts. Trajectories and calibrated quality tiers are managed separately in the companion datasets repository. The two grid scenes need spatial-observation support; GridWorld needs camera rendering; Hallway needs recurrent state; Sorter needs buffer semantics; Strikers vs Goalie and Wall Jump need behavior-specific policy routing. Use the included simulation runner and instructions to drive them. The vector-only collection recipe linked above does not cover these new contracts unchanged.
Four vector-only additions (2026-10-22)
Match3VectorObs, Basic, 3DBall, and PushBlockWithInput are available for
Windows and Linux x86-64. All observations are numeric vectors; Match3 includes
only its VectorObs boards. Every player has no embedded policy, with stock
ONNX drivers downloaded separately. PushBlockWithInput.onnx is a hybrid-action
driver and is different from the existing discrete PushBlock.onnx.
All four Windows players passed 1,000 stock-policy ML-Agents steps, including episode boundaries. Linux players passed engine startup checks; stock-policy rollouts were tested on Windows. See contracts and usage, the vector runner, and validation reports.
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 nineteen builds derive from customized ML-Agents release-23 projects. Cooperative Push Block, Food Collector, Strikers vs Goalie, Hallway, GridWorld, Sorter, and Wall Jump were added on 2026-10-22. The distributed stock policies match their build contracts.
- 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 (Crawler.onnx, PushBlock.onnx, Pyramids.onnx,
Worm.onnx, Walker.onnx, 3DBallHard.onnx, SoccerTwos.onnx, DungeonEscape.onnx,
PushBlockCollab.onnx, GridFoodCollector.onnx, Striker.onnx, Goalie.onnx,
Hallway.onnx, GridWorld.onnx, Sorter.onnx, SmallWallJump.onnx, BigWallJump.onnx,
Match3VectorObs.onnx, Basic.onnx, 3DBall.onnx, PushBlockWithInput.onnx) are
Apache-2.0 (Unity ML-Agents), as are the tier_policies/ exports derived from
them. 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
- 3,253