Laminar lets a long-running AI agent finish a trajectory on one policy version while other inference replicas load newer weights. The open-source reinforcement-learning framework, released November 20, separates those updates so training can advance without forcing every unfinished run through a mid-episode model switch.
That matters for agents whose work spans repeated generation, tool calls and environment responses. A trajectory is that sequence of interactions; the policy is the model governing its choices. Switching weights partway through can change the agent’s behavior before the task ends.
It also carries a compute penalty. The authors explain that a weight switch invalidates the cached attention state for the accumulated context, requiring the new model to process that context again—a step called re-prefill. Keeping the trajectory on its assigned version avoids re-prefill caused by weight switches and gives it one well-defined behavior policy.
Keeping old work moving
The catch is the old-version tail. Once newer weights are available, a replica still handling a few slow trajectories cannot overwrite its model without breaking that consistency. Much of its GPU capacity can sit unused while the stragglers finish.
Laminar’s Repack monitors KV-cache occupancy and consolidates those remaining trajectories onto fewer replicas running the same policy version. It preserves already-generated token prefixes when interrupting steps for the move. Drained replicas can then load newer weights. Repack does not move an unfinished trajectory onto a different policy to clear the queue.
Two separate paths support this scheduling. The ExperienceBuffer accepts completed trajectories and supplies training batches on demand, decoupling experience production from consumption. Short runs can finish and release their slots while longer ones continue.
Weight Relay handles the other direction. The trainer stages updated parameters in per-node shared CPU memory; inference replicas pull updates when ready. Publishing a model update and loading it onto a replica become separate operations rather than one cluster-wide weight switch.
This preserves consistency within a trajectory, not freshness relative to the trainer. Completed experience may still come from an older policy, and the training loop still applies off-policy corrections.
A cluster recipe, with a qualified result
In the authors’ SWE agent recipe, Qwen3-Coder-30B-A3B-Instruct trains on SWE-rebench and is evaluated on all 500 SWE-bench Verified instances with greedy decoding, n=1. They report 52.2% resolved, against 46.6% for the base model and a 51.4% baseline peak. This is an end-to-end comparison: Laminar used 64 H800 GPUs, the baseline 64 H100 GPUs, with different batch sizes and weight-sync settings. It does not isolate one component’s contribution.
The public software is Apache-2.0 licensed, but the supplied recipe calls for eight nodes of eight GPUs, shared environment and checkout paths, persistent storage and configured agent sandboxes. Actual cluster cost is unknown. Laminar fits teams already operating distributed agent-training infrastructure, especially where long, uneven task durations make policy switches and old-version stragglers expensive; this is not a laptop-training recipe.
Image: Yuxuan Tong, Guangming Sheng and Wang Zhang / verl-project.

