Researchers from The University of Hong Kong and ByteDance Seed have open-sourced Laminar. Laminar is an reinforcement learning RL post-training framework for LLMs and long-horizon agents. The core idea is simple: stop forcing every trajectory and every GPU to wait for the slowest one. For teams training coding agents with long, skewed rollouts, that is where most GPU time goes.
TL;DR
- What: A framework. Tested on Qwen3-Coder-30B-A3B-Instruct (30.5B total, 3.3B active) and Qwen2.5 at 7B, 32B and 72B.
- Runs on: Multi-node NVIDIA GPU clusters with Ray and CUDA. Tested on 64x H800 and up to 1024 H800 GPUs. vLLM for inference, Megatron-LM or FSDP2 for training.
- Performance: Strong end-to-end gains on SWE agent RL and up to 5.48x throughput in the paper.
- Best: 52.2% on SWE-bench Verified, up from 46.6% for the base model.
- Worst: Early repo (1 commit at launch), vLLM is the only listed inference backend, and per-step async checkpointing is still in progress.
- Bottom line: Best: fewer samples and GPU-hours to a higher SWE-bench score. Worst: the headline comparison mixes H800 and H100 hardware.
What is Laminar?
Laminar is an asynchronous RL post-training framework that decouples rollout, buffering, training and weight transfer into independent loops. It is built on verl and Uni-Agent and released under Apache-2.0.
The launch blog splits the stack into 3 layers. verl provides training and inference compute backends. Uni-Agent handles agent execution, tool calls and sandboxes. Laminar handles cluster-scale orchestration.
How does Laminar’s architecture work?
The design rests on 3 principles: full decoupling, fine-grained asynchrony and fault tolerance.
- Rollout loop: Drives agent interactions and serves generation across inference replicas.
- Experience buffer (data plane): Separates trajectory production from training and serves ready batches on demand.
- Training loop: Samples batches, computes advantages and off-policy corrections, and publishes weights.
- Weight Relay (weight plane): The trainer stages weights into per-node shared CPU memory and keeps going. Replicas pull updates on their own schedule.
In the research paper, relays are CPU processes, 1 per rollout machine. They broadcast weights along a pipelined RDMA chain. A 72B model reaches 127 other relays in under 1.6 seconds.
What is version-consistent rollout?
Most async systems use version-mixed partial rollout. They interrupt in-flight trajectories at each weight update and resume under the new policy. That forces repeated re-prefill.
Laminar also supports a version-consistent mode. Each trajectory finishes under 1 policy version. Replicas update independently, without a global weight-switch barrier. The blog states that this keeps the prefix KV cache intact. It argues re-prefill cost scales cubically with sequence length under frequent updates.
Repack handles the tail. Once new weights exist, leftover old-version trajectories are consolidated onto fewer replicas. Drained replicas then load the new version immediately.
‘});document.getElementById(id).innerHTML=h}
mk(‘lam-l1’);mk(‘lam-l2’);
function play(){var a=document.querySelectorAll(‘#lam-l1 .row’),b=document.querySelectorAll(‘#lam-l2 .row’);
[a,b].forEach(function(s){s.forEach(function(r){var br=r.querySelector(‘.bar’),id=r.querySelector(‘.idle’);br.style.transition=’none’;id.style.transition=’none’;br.style.width=”0″;id.style.width=”0″})});
setTimeout(function(){lens.forEach(function(l,i){
var b1=a[i].querySelector(‘.bar’),i1=a[i].querySelector(‘.idle’);b1.style.transition=’width ‘+(l/40)+’s linear’;b1.style.width=l+’%’;
i1.style.transition=’width .4s ease ‘+(l/40)+’s’;i1.style.width=(100-l)+’%’;
var b2=b[i].querySelector(‘.bar’);b2.classList.add(‘c’);b2.style.transition=’width 2.5s linear’;b2.style.width=”100%”;
})},60)}
document.getElementById(‘lam-play’).addEventListener(‘click’,play);setTimeout(play,400);
/* tab 2 */
var steps=[‘Rollout loop. Drives agent interactions through the agent runtime (Uni-Agent) and serves generation across vLLM inference replicas. A global request router sits outside the trainer process group.’,
‘Experience buffer. Finished trajectories land here as soon as they complete. It decouples production from consumption and serves ready batches on demand, so short trajectories never wait for long ones.’,
‘Training loop. Samples batches, computes advantages and off-policy corrections, updates parameters, then publishes weights without waiting for rollouts to switch.’,
‘Weight Relay. The trainer stages weights into per-node shared CPU memory and moves on. Replicas pull updates on their own schedule over point-to-point links. In the paper, a 72B model reaches 127 relays in under 1.6 s.’];
var cur=0,nodes=R.querySelectorAll(‘.node’);
function show(i){cur=(i+4)%4;nodes.forEach(function(n,k){n.classList.toggle(‘on’,k===cur)});document.getElementById(‘lam-info’).innerHTML=steps[cur];post()}
nodes.forEach(function(n,k){n.addEventListener(‘click’,function(){show(k)})});
document.getElementById(‘lam-next’).addEventListener(‘click’,function(){show(cur+1)});
document.getElementById(‘lam-prev’).addEventListener(‘click’,function(){show(cur-1)});show(0);
/* tab 3 */
var mode=”mixed”,upd=false;
var mtext={mixed:’Version-mixed partial rollout. Every in-flight trajectory is interrupted at the weight update and resumed under the new policy. The prefix KV cache must be rebuilt, causing repeated re-prefill.’,
cons:’Version-consistent rollout. Each trajectory finishes under 1 policy version, keeping its prefix KV cache. Repack consolidates leftover v1 trajectories onto fewer replicas, and drained replicas load v2 immediately.’};
function reps(){var h=””;for(var r=0;r<4;r++){var lab=’v1′;
if(upd){lab=(mode===’mixed’)?’v2′:(r<2?’v1 (repacked)’:’v2′)}
h+=’
Replica ‘+(r+1)+’‘+lab+’
‘;
for(var t=0;t<3;t++){var w=[60,85,40,95,30,70,55,90,45,75,65,35][r*3+t],bg=’#f59e0b’,re=””;
if(upd&&mode===’mixed’){bg=’#22d3ee’;re=”‘}
if(upd&&mode===’cons’){if(r<2){bg=’#f59e0b’;w=Math.min(100,w+15)}else{bg=’#22d3ee’;w=Math.round(w*0.5)}}
h+=’
‘+re+’
‘}
h+=’
‘}
document.getElementById(‘lam-reps’).innerHTML=h;document.getElementById(‘lam-minfo’).innerHTML=mtext[mode];post()}
R.querySelectorAll(‘.seg button’).forEach(function(b){b.addEventListener(‘click’,function(){mode=b.getAttribute(‘data-m’);upd=false;R.querySelectorAll(‘.seg button’).forEach(function(x){x.classList.toggle(‘on’,x===b)});reps()})});
document.getElementById(‘lam-upd’).addEventListener(‘click’,function(){upd=true;reps()});
document.getElementById(‘lam-rst’).addEventListener(‘click’,function(){upd=false;reps()});reps();
/* tab 4 */
var m1=[[‘Base model’,46.6,’46.6%’,’#4b5b7a’],[‘Baseline peak’,51.4,’51.4%’,’#f59e0b’],[‘Laminar peak’,52.2,’52.2%’,’#22d3ee’]];
var m2=[[‘Baseline samples’,76.4,’76.4k’,’#f59e0b’,76.4],[‘Laminar samples’,51.2,’51.2k (-33%)’,’#22d3ee’,76.4],[‘Baseline GPU-h’,5085,’5,085′,’#f59e0b’,5085],[‘Laminar GPU-h’,1843,’1,843 (-64%)’,’#22d3ee’,5085]];
function row(a,mx){return ”}
document.getElementById(‘lam-m1’).innerHTML=m1.map(function(a){return row(a,60)}).join(”);
document.getElementById(‘lam-m2’).innerHTML=m2.map(function(a){return row(a,a[4])}).join(”);
function bars(){var is=R.querySelectorAll(‘.mtrk i’);is.forEach(function(i){i.style.transition=’none’;i.style.width=”0″});
setTimeout(function(){is.forEach(function(i){i.style.transition=”;i.style.width=i.getAttribute(‘data-w’)+’%’})},50)}
document.getElementById(‘lam-replay’).addEventListener(‘click’,bars);
/* tab 5 */
R.querySelectorAll(‘.fc’).forEach(function(c){c.addEventListener(‘click’,function(){c.classList.toggle(‘on’);setTimeout(post,420)})});
window.addEventListener(‘load’,post);window.addEventListener(‘resize’,post);setTimeout(post,300);
})();
