Laminar: Scalable RL Through Full Decoupling, Fine-grained Asynchrony, and Fault Tolerance
Laminar scales RL post-training for LLMs and long-horizon agents with full decoupling, fine-grained asynchrony, and fault tolerance. To our knowledge, it is the first open-source framework to enable efficient version-consistent rollout.

We are releasing Laminar, an open-source reinforcement learning (RL) post-training framework for large language models (LLMs) and long-horizon agents, accompanying our EuroSys ’26 paper, Laminar: A Scalable Asynchronous RL Post-Training Framework.
Laminar supports flexible rollout execution across large GPU clusters—becoming, to our knowledge, the first open-source framework to enable efficient version-consistent rollout alongside version-mixed partial rollout, while also enabling concurrent multi-checkpoint evaluation.
To scale RL post-training reliably across long-horizon reasoning and agent workloads, Laminar is built around three core system principles:
- Full decoupling: Separating rollout, experience buffering, training, and weight transfer into independent loops across dedicated data and weight planes.
- Fine-grained asynchrony: Allowing individual trajectories and individual inference replicas to execute, complete, and update weights independently without batch-level or cluster-wide barriers.
- Fault tolerance: Isolating local component faults and recovering cleanly so single-replica or single-node errors do not stall the entire RL system.
For example, on our SWE agent training recipe with Qwen3-Coder-30B-A3B-Instruct, Laminar improves the SWE-bench Verified resolve rate from 46.6% to 52.2%, surpassing the 51.4% baseline peak while using 33% fewer trained samples and 64% fewer GPU-hours.
Efficient Version-Consistent Rollout
To accommodate weight synchronization boundaries without waiting for long-running trajectories to finish, existing asynchronous RL systems adopt version-mixed partial rollout—interrupting all in-flight trajectories at each weight update and resuming generation under the newly broadcast policy. Because their weight paths rely on cluster-wide broadcasts that force every replica onto a single latest policy version, maintaining version consistency across trajectories was previously impractical without severe GPU idling.
Laminar removes this constraint by allowing inference replicas to hold and update policy versions on independent schedules rather than behind a global weight-switch barrier. A scalable RL system no longer needs to dictate a single rollout semantics: alongside native support for version-mixed partial rollout, Laminar enables efficient version-consistent rollout—completing each trajectory entirely under a single policy version at high cluster utilization.
Why Explore Version-Consistent Rollout?
Compared with switching weights mid-episode, keeping each trajectory on a single consistent policy version offers distinct algorithmic and system advantages:
- Algorithmic clarity and exploration: Each trajectory is sampled from a single well-defined behavior policy rather than a mixture of policy versions, fitting cleanly into standard off-policy importance sampling formulations and avoiding mid-episode behavioral shifts. Supporting both version-mixed and version-consistent rollout within the same runtime allows controlled empirical comparisons between the two.
- Eliminating weight-switch re-prefill: Switching weights mid-trajectory invalidates cached KV states and forces the new policy to re-prefill the entire accumulated context—an overhead that scales cubically with sequence length under frequent updates. Routing all steps of a trajectory to a replica serving its assigned version preserves its prefix KV cache from start to finish, prefilling only newly appended context.
Overcoming the Old-Version Tail with Repack
The central system challenge of version-consistent rollout under asynchronous updates is tail under-utilization: once newer weights \(v_{k+1}\) become available, replicas still serving a few slow \(v_k\) stragglers cannot overwrite their weights without breaking version consistency, leaving those GPUs under-utilized on stale weights.
Laminar resolves this tail bottleneck through Repack. By continuously monitoring replica KV-cache occupancy, Laminar consolidates remaining trajectories from lightly loaded \(v_k\) replicas onto fewer destination replicas running the same version \(v_k\) (retaining already-generated token prefixes on interrupted steps), freeing drained replicas to load \(v_{k+1}\) immediately and return to full utilization.
Fully Utilizing GPUs in Multi-Checkpoint Evaluation
Multi-version replica scheduling and Repack also power standalone checkpoint evaluation via laminar.eval. Sequential evaluation of long-horizon benchmarks suffers from severe tail idle bubbles at the end of every checkpoint. laminar.eval evaluates multiple checkpoints concurrently across resident inference replicas, consolidates each checkpoint’s long tail onto fewer GPUs via Repack, and reloads new checkpoints in place—supporting both offline batch evaluation and online streaming evaluation alongside active training runs.
Building for Scalability
Supporting flexible rollout strategies is part of Laminar’s broader architectural direction: scaling RL post-training reliably across large clusters as reasoning horizons and agent environments grow in complexity. While recent LLM RL systems have mitigated synchronous batch bubbles through partial rollout and disaggregated experience buffers, scaling further still encounters three systemic bottlenecks: synchronization on the weight path from coordinated trainer-to-rollout broadcasts, coarse-grained lockstep across batches or replica pools, and cluster-wide failure blast radii when trainer ranks and inference replicas share collective groups or global barriers.
To provide a general, extensible foundation for large-scale post-training, Laminar is built around three system design principles: full decoupling, fine-grained asynchrony, and fault tolerance.
Full Decoupling
Prior asynchronous RL systems typically disaggregate rollout and training onto separate GPU pools and buffer the data path, yet keep the weight path coupled through direct, cluster-wide trainer-to-rollout broadcasts. Laminar achieves full decoupling across both the data plane and the weight plane, separating the pipeline into four independently operating components so rollout and training progress without blocking each other:
- Rollout Loop: Continuously drives agent interactions through an agent runtime and serves generation across inference replicas.
- Experience Buffer (Data Plane): Decouples trajectory production from training consumption, ingesting completed trajectories asynchronously and serving ready batches on demand.
- Training Loop: Continuously samples batches from the buffer, computes advantages and off-policy corrections, updates parameters on distributed training backends, and periodically publishes weights.
- Weight Relay (Weight Plane): Decouples weight publication from weight loading. The trainer stages updated parameters into per-node shared CPU memory and proceeds immediately to the next optimization step, while inference replicas pull local updates asynchronously when ready.
Fine-grained Asynchrony
Even with fully decoupled training and rollout loops, coarse-grained batch waves or cluster-wide weight switches still leave GPUs waiting on stragglers. Laminar schedules execution with fine-grained asynchrony—operating at the granularity of individual trajectories and independent replicas rather than synchronous batches.
Each trajectory advances through generation steps and environment calls independently. As soon as a short trajectory finishes, its experience enters the Experience Buffer and its concurrency slot is immediately released to admit new prompts under KV-cache utilization control. Long-tail trajectories continue executing in the background without delaying other replicas and join subsequent training batches upon completion.
Fault Tolerance
At cluster scale, hardware and runtime failures are inevitable; what matters is preventing a local fault from becoming a global interruption. Conventional fault tolerance focuses on whole-job recoverability—restarting an entire run from a checkpoint after failure—which still wastes substantial compute and discards all in-flight trajectories whenever a single rollout server fails. Laminar achieves fault tolerance by combining strict fault isolation with targeted recovery across three failure domains:
- Rollout instance and inference replica failures: Inference replicas operate behind Laminar’s router, outside the trainer’s process group. When a replica fails, lifecycle recovery fences only the affected replica while healthy replicas, the Experience Buffer, and the Training Loop continue making progress. The isolated replica restarts in place, reloads weights from the local Weight Relay (or checkpoint storage during evaluation) without interrupting the trainer, and resumes any interrupted generation from its already-generated token prefix.
- Weight synchronization failures: Broadcasting weights over a single shared collective across trainer and rollout GPUs allows one unresponsive worker to stall the entire cluster. Laminar’s Weight Relay decouples weight transfer over point-to-point connections by default. If a replica fails while loading weights, it releases its read lock cleanly and recovers locally without blocking subsequent trainer publications; version fences ensure uncommitted weights are never exposed.
- Trainer failures: Decoupling keeps checkpoints aligned across model/optimizer state, prompt cursors, and published weight versions, allowing runs to resume cleanly from the latest saved checkpoint—and, combined with asynchronous per-step checkpointing, minimizing training progress lost upon failure.
Evaluation: SWE Agent Training
We demonstrate Laminar end-to-end on our SWE agent training recipe, post-training Qwen3-Coder-30B-A3B-Instruct on SWE-rebench and evaluating checkpoints on SWE-bench Verified under a unified greedy evaluation protocol.
| Run | Cluster | Trajectory Version | Global Batch | Mini Batch | Weight Sync | Trained Samples | GPU-Hours | SWE-bench Verified |
|---|---|---|---|---|---|---|---|---|
| Base Model | — | — | — | — | — | 0 | — | 46.6% (233/500) |
| Baseline (Step 150, peak) | 64×H100 | Mixed | 512 | 128 | 1 step (512 traj.) | 76.4k | 5,085 | 51.4% (257/500) |
| Laminar (Step 320, match) | 64×H800 | Consistent | 128 | 128 | 4 steps (512 traj.) | 41.0k (−46%) | 1,450 (−71%) | 51.4% (257/500) |
| Laminar (Step 400, peak) | 64×H800 | Consistent | 128 | 128 | 4 steps (512 traj.) | 51.2k (−33%) | 1,843 (−64%) | 52.2% (261/500, +5.6%) |
Comparing the two end-to-end configurations, Laminar improves the resolve rate on SWE-bench Verified from 46.6% to 52.2%, surpassing the 51.4% baseline peak while requiring 33% fewer trained samples (51.2k vs. 76.4k) and 64% fewer GPU-hours (1,843 vs. 5,085). Controlled component ablations and microbenchmarks are reported in our paper.
Getting Started
Laminar serves as the asynchronous system layer within a modular RL post-training stack:
- Compute Backends (verl): Distributed model training and inference engines.
- Agent Runtime (Uni-Agent): Agent execution, tool calling, and sandbox integration.
- Scalable RL Orchestration (Laminar): Cluster-scale orchestration with full decoupling across data and weight planes, fine-grained asynchrony, and fault-tolerant, version-aware execution for both training and evaluation.
Visit the Laminar GitHub repository for setup instructions, training and evaluation recipes, and contribution guidelines!