LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget
Summary
LongStraw is an architecture-aware execution stack for million-token RL post-training under a fixed GPU budget, demonstrating execution capacity up to 2.1M positions on Qwen and GLM models.
View Cached Full Text
Cached at: 07/20/26, 09:42 AM
Paper page - LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget
Source: https://huggingface.co/papers/2607.14952 Published on Jul 16
#1 Paper of the day Authors:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
Abstract
AgrowinggapseparatesinferencecontextlengthsfromRLpost-training:inferencesystemsareapproachingmillion-tokencontexts,whilepost-trainingworkloadsoftenremainat256Ktokensorbelowandrelyonlengthgeneralizationatdeployment.ThegapisespeciallyimportantforAIagents,whoseobservations,tooloutputs,documents,andpriordecisionsaccumulateoverlongtrajectories.LongStrawisanarchitecture-awareexecutionstackformillion-tokenRLpost-trainingunderafixedGPUbudget,instantiatedwithGroupRelativePolicyOptimization(GRPO).Itevaluatesthesharedpromptwithoutautograd,retainsonlymodel-specificstateneededbylatertokens,andreplaysshortresponsebranchesoneatatime,reducingthelivetraininggraphatthecostofadditionalreplaytime.Weimplementitforthehybridrecurrentandfull-attentionQwen3.6-27Bandthecompressed-attentionmixture-of-expertsGLM-5.2.OneightH20GPUs,LongStrawcompletesgroupedQwenscoringandresponsebackwardat2.1Mpositionsforgroupsof2and8;increasingthegroupsizeaddsonly0.21GBofpeakallocatedmemory,whileaseparatestresstestreaches4.46Mpositions.On32H20GPUs,wevalidatetheend-to-endLongStrawexecutionpathfora2.1M-tokenpromptacrossall78layersofGLM-5.2.Theseexperimentsestablishexecutioncapacityratherthancompletetrainingcorrectnessbecausethecapturedpromptstateisdetachedandsomedistributedforwardandgradientcompositionpathsremainincomplete.
View arXiv pageView PDFGitHub10Add to collection
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2607.14952 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2607.14952 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2607.14952 in a Space README.md to link it from this page.
Collections including this paper4
Similar Articles
Qwen3.6 35B MoE on 8GB VRAM — working llama-server config + a max_tokens / thinking trap I ran into
Author shares a working llama-server config to run the 35B-MoE Qwen3.6 model on an 8GB RTX 4060, highlighting a max_tokens trap caused by unconstrained internal reasoning and the fix using per-request thinking_budget_tokens.
GoLongRL: Capability-Oriented Long Context Reinforcement Learning with Multitask Alignment
GoLongRL presents an open-source approach for long-context reinforcement learning with diverse reward optimization through capability-oriented data construction and TMN-Reweight methodology.
Miles: A PyTorch-Native Stack for Large-Scale LLM RL Post-Training (14 minute read)
Miles is an open-source PyTorch-native framework from RadixArk for large-scale LLM reinforcement learning post-training, integrating SGLang, Megatron-LM, and Ray for high-throughput rollout and distributed training.
Jet-Long: Efficient Long-Context Extension with Dynamic Bifocal RoPE
Jet-Long introduces a tuning-free zero-shot method for extending LLM context length by dynamically adjusting RoPE scaling, achieving strong performance on benchmarks up to 128K context with minimal inference overhead.
@tom_doerr: Runs 70B LLMs on single 4GB GPU https://github.com/lyogavin/airllm
AirLLM is an open-source tool that optimizes inference memory usage, enabling 70B LLMs to run on a single 4GB GPU without quantization, and supports 405B models on 8GB VRAM.