Eight isolated rollouts in 1.6 seconds, then two forks proving the same seed gives the same trajectory.
What the primitives give you
- Isolation per rollout. Each fork is a hardware-isolated microVM with its own kernel, disk, and network identity. Nothing leaks between workers.
- Byte-identical starts. Every fork of the same source continues from the same instruction, with the same processes, memory, and files.
- Real-time branching. A fork copies live memory directly, machine to machine, with no snapshot written to disk first. When rollouts branch on the fly, forking skips the save-and-restore round-trip, which keeps your GPUs busy instead of waiting on environment resets.
- Stateful resets. A checkpoint rewinds one machine to a saved moment in place, so episode N+1 starts exactly where episode N did.
- A durable baseline. A snapshot turns the prepared environment into a named, versioned image that outlives the machine and stays comparable across a whole training run.
Prepare one warm baseline
Set the environment up once, on one machine:Fork per rollout
Each rollout forks the baseline, runs its episode, reports its result, and disappears. The Python and TypeScript SDKs drive this from your training loop:- Python
- TypeScript
Verify reproducibility
The check is two forks with the same seed:Reset between episodes
To reuse one machine across episodes instead of forking per rollout, save a checkpoint at the starting state and rewind to it:A baseline that outlives the machine
A checkpoint belongs to its machine and disappears with it. When a baseline needs to survive, or a teammate needs the same starting point, save a snapshot:env-v3 still means the same environment a month later. This is how a result stays reproducible after the original machine is gone.
Scaling out
Rollouts are independent, so they scale sideways. Idle machines suspend and hibernate on their own, which keeps a pool affordable between batches, and a suspended worker wakes in under a millisecond when the next batch starts. Accounts start at 50 concurrent machines, extendable on request for fleet-sized runs. See Resources and limits. When a policy executes untrusted or generated code, create the workers with--isolated so a rollout can reach nothing beyond its own machine. See Sandboxes.