Agentic RL Infra Deep Dive: Why All Three SFT Assumptions Break, via verl Source Code
青稞AI · wechat · 2026-11-02
A deep technical article from the Qingke community dissects why Agentic RL infra complexity dwarfs SFT, grounded in the verl framework's source code. Its core argument: treating Agentic RL as "multi-turn SFT with reward signals" fails on three assumptions, each failure marking an infra complexity leap.
Three broken assumptions:
- Static data — SFT reads a fixed distribution; RL trajectories are self-generated, drift over training, and stall on long-tail sandbox/tool responses, pushing systems from synchronous silos to async pipelines.
- Loss computable in-place — RL has only trajectory-level rewards that must be converted to token-level advantages via global protocols across PP/DP/CP; grader compute alone consumed 12.7% of total RL compute, making the reward box a third compute pillar alongside Rollout and Training.
- Single weight truth — RL maintains two live weight copies (training buffer vs. inference-engine VRAM) separated by expensive cross-boundary migration.
Three "translation edges" between heterogeneous engines: the inference engine (vLLM/SGLang, optimizing decode latency) and training engine (Megatron/FSDP, optimizing global throughput) share PyTorch/CUDA/NCCL but operate at different abstraction levels, creating trajectory (async long-tail), weight (parallel-semantics re-layout), and version (KV cache invalidation protocol) edges.
The article also covers verl's three trainer modes (sync/colocateasync/separateasync) with selection guidance, its registry/IoC mechanics, gradnorm anomaly triage, reward-system taxonomy, weight-sync debugging via five observable boundaries, and staleness defenses — practical material for engineers running Agentic RL training.
More from coding & agent
- Dev builds interactive fairytale scene in browser with Astra and SVG/3D Skill — FinanceYF5 · 2026-11-23
- Dev builds qorx MCP in Rust: serves Claude Code exact code lines, 975 vs 6,535 tokens — Separate_Jacket2133 · 2026-11-23
- MyClaw 3.0 Ships AI Teammates With Built-In Tools, Declaring the Agent Harness War Over — SucceededMind · 2026-11-23
- Claude vs Codex rivalry gets a meme: weird 3D blob vs human photo — willcb · 2026-11-23
- External dev's fix for i2rt teleop freeze from signal-pipe leak merged — eigenron · 2026-11-23
- Alibaba open-sources its internal code reviewer: 352K tokens vs Claude Code's 2,062K with higher F1 — victor_explore · 2026-11-23