Explore the research collection
2 entries · Follow this search
- Paper
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
Standard FA2 packs N same-prompt rollouts as N(P+R) tokens, recomputing the prompt N times. DualKV repacks to P+NR and splits attention into one prompt self-attention plus a fused kernel that reads shared KV once and accumulates N-way dK/dV with fp32 atomics; mathematically equivalent, no approximation. On Qwen3-8B GRPO (8xH100, N=32, 8K-context) policy-update is 1.63–2.09x faster, MFU 36%→76%; DAPO 2.47x / 77% MFU. At 30B MoE on 16xH100, 3.82x policy-update and 3.38x step vs FA2 that needs 4-way Ulysses SP. Also supports Gemma-4 hybrid d=512 / sliding-window at 64K. Code https://github.com/amazon-science/dualkv-flash-attn-for-rl.
- Code
rLLM / DeepScaleR: Agentic RL framework (Agentica)
agentica-project/deepscaler redirected to rllm-org/rllm. Original DeepScaleR work (Feb 2025 blog) scaled RL on DeepSeek-R1-Distill-Qwen-1.5B using ~40k unique math Q-A pairs (AIME 1984-2023, AMC pre-2023, Omni-MATH, Still). Current rLLM is a general agentic RL stack: GRPO/REINFORCE/RLOO/SFT/on-policy distillation; backends verl, tinker, fireworks; 60+ evals. Later Agentica results include DeepCoder-14B and DeepSWE-32B. Discord posted the old deepscaler/verl tree.