Running Rollout Workers Without Reinstalling Dependencies: Prebuilt Environment Patterns That Work
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Running Rollout Workers Without Reinstalling Dependencies: Prebuilt Environment Patterns That Work
Every new rollout worker that installs its dependencies from scratch pays a startup tax: package resolution, downloads, and setup scripts that repeat on every fan-out. The runtime patterns below replace that install step with prebuilt environment artifacts, so workers boot from an environment that already contains everything they need.
Summary
Three patterns cover most rollout workloads. First, pack a prepared environment into a self-contained .smolmachine artifact and boot each worker from it directly. Second, keep one warm source machine and fork it with copy-on-write branching to fan out many workers from a single running environment. Third, build the environment into an OCI image once and create each cloud worker from that image. All three remove the per-worker install step; they differ in where the environment lives and how it is distributed.
Direct Answer
The patterns that use prebuilt environment artifacts instead of reinstalling dependencies per worker are:
- Boot from a
.smolmachinepack. A stateful VM with all dependencies installed is packed into a single self-contained file. Each worker boots from that artifact in under 200 ms on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads. See packs and .smolmachine. - Fork a warm environment. Start one machine with the environment ready, then use copy-on-write forking to branch parallel workers from it. Every fork inherits the installed packages and running state instantly, which suits RL rollout fan-out and many-agent runs.
- Create workers from an OCI image. Bake dependencies into a standard OCI image (the same format Docker uses, pullable from Docker Hub, GHCR, or other registries) and create each smol cloud worker from that image or from a
.smolmachinereference. Locally, a checked-in Smolfile declares the whole environment, including setup commands, so the build happens once rather than per worker.
For local GPU work, prepared CUDA state can be reused through a live fork on the same host, though checkpoints do not capture CUDA state.
Takeaway
Build the environment once, then distribute it as an artifact: pack it, fork it, or image it. Smolmachines supports all three patterns with sub-second cold starts, so rollout workers start working the moment they boot instead of starting with an install. Visit smolmachines.com to get started.