阿里巴巴Qwen推出QwenGyre:針對超長時程智能體的彈性強化學習框架

2026年10月12日 21:41
站內 AI 整理稿

Alibaba’s Qwen team has introduced QwenGyre, an elastic reinforcement learning RL framework for extreme-long-horizon agent training.QwenGyre is an online reinforcement learning system from Alibaba that trains coding agents through unmodified, black-box harnesses.

It targets rollouts that run for hours and process close to 1M tokens.The QwenGyre elastic RL framework was used on Qwen’s flagship Qwen 3.8 2.4T model.It rests on 2 core ideas.It moves idle GPUs between rollout and training.It also turns branching agent histories into bounded training samples.

TL;DR Size: A training framework, not a model.Tested on Qwen 3.6 122B and Qwen 3.8 2.4T (A95B per Qwen), with ~700K tokens per rollout.Runs on: Multi-node GPU clusters.The 122B runs used 24 to 32 nodes; the 2.4T run used 192 nodes (4 cells of 48).GPU model not disclosed.

Megatron trains, SGLang serves rollouts.Performance: 1.38x to 1.78x faster than Async, 1.21x to 1.85x faster than Colocate, at matched scores.Best: 1.85x end-to-end speedup over Colocate on TerminalBench.Worst: Only 1.21x over Colocate on the 2.4T model, where many queries ran near the timeout.

Bottom line: Best: NL2RepoBench rises from 52.5% to 58.5% in 48 steps.Worst: the paper links no public code release.What problem does QwenGyre solve?The research team defines ‘XLong-horizon’ tasks as agent runs spanning hours and hundreds of model and tool interactions.

Examples include generating full repositories from specs, as in NL2Repo-Bench.Two problems appear at this scale: First, rollouts have long tails.In a Colocate setup, training waits for the slowest execution while GPUs idle.In an Async setup, fixed GPU pools cannot lend spare capacity to each other.

Second, harnesses like Claude Code compact context, spawn sub-agents and retry.One execution becomes a branching tree, not a single trajectory.Expanding every path duplicates shared prefixes and inflates training cost.How does the Elastic Scheduler work?

QwenGyre splits GPUs into cells that share a training layout.Each cell can serve rollouts or host a full training replica.A core cell owns the authoritative weights and optimizer state.Satellite cells join training later.The scheduler tracks a rollout waterlevel: queued and running executions.

As executions finish, cells switch to training once the remaining cells can still serve all live work.Model calls are rerouted through a proxy, so the harness keeps running.Key mechanics: KV-cache blocks migrate over RDMA during rerouting, reducing prefix recomputation.

Satellites pull core weights through Mooncake’s Transfer Engine and join an ongoing batch.Streaming training lets cells claim micro-steps as data becomes ready.Average role switches took 8.52 s (rollout to training) and 3.46 s (training to rollout).

How does the Trajectory Processor build training samples?A proxy records exact token IDs and behavior log-probabilities using token-in, token-out (TITO).Calls are stored as prefix-shared trajectory trees.Partial scoring: Timed-out executions are still scored on their preserved workspace.

Evaluator failures are excluded, never treated as a zero reward.Bounded sampling: At most 5 trajectories per execution are kept, ranked main > main-summary > sub-agent > sub-agent-summary.Deduplication: Shared targets count once, and only policy-generated tokens are trained.

Fair weighting: Losses average within each execution, so extra branches do not inflate its weight.A cap of 5 matched uncapped training scores while cutting forward-backward time by 25.2%.Training uses an adapted GSPO with 16 rollouts per group.How fast is QwenGyre?

Benchmark results All runs used Claude Code 2.1.220 as the harness, with equal GPU budgets and matched staleness.Workload (model)vs Asyncvs ColocateNL2RepoBench (Qwen 3.6 122B, 48 steps)1.42x to 1.53x1.36x to 1.47xDeepSWE (Qwen 3.6 122B, 24 steps)1.569x to 1.572x1.610x to 1.

824xTerminalBench (Qwen 3.6 122B, 24 steps)1.383x to 1.430x1.809x to 1.849xNL2RepoBench (Qwen 3.8 2.4T, 48 steps)1.78x1.21x On the 2.4T model, QwenGyre finished 48 steps in 75.42 hours.Async took 134.55 hours and Colocate took 91.47 hours.Evaluation pass rate rose from 52.48% to 58.54%.

(function(){var f=document.getElementById("qgx-frame");window.addEventListener("message",function(e){if(!f||e.source!==f.contentWindow)return;var d=e.data;if(d&&typeof d.qgxHeight==="number"&&d.qgxHeight>200){f.style.height=d.

qgxHeight+"px";}});})(); How does QwenGyre compare with other agentic RL frameworks?FeatureQwenGyreveRLAReaLAgent LightningDeveloperAlibaba QwenByteDance Seed + communityTsinghua IIIS + Ant GroupMicrosoftLicenseNot disclosedApache-2.0Apache-2.

0MITGPU placementElastic cells, switch mid-rolloutFlexible device mapping, HybridEngine reshardingFully asynchronousNot disclosedBlack-box harnessYes, via proxyNot disclosedYes, via base_url swapYes, near-zero code changeTraining / rolloutMegatron / SGLangFSDP, Megatron / vLLM, SGLangMegatron, FSDP, Archon / vLLM, SGLangNot disclosedLargest stated scaleQwen 3.

8 2.4T671B modelsNot disclosedNot disclosedHeadline speedupUp to 1.85x vs ColocateNot disclosed2.77x vs synchronous (v0.3)Not disclosedPublic codeNot disclosedYesYesYes Speedups come from each project’s own setup and are not directly comparable.

Key Takeaways QwenGyre moves GPUs between rollout and training without stopping live agents.Trajectory trees cap samples at 5 per execution and train shared prefixes once.Timed-out runs still get scored on their partial work.Up to 1.85x faster than Colocate and 1.78x faster than Async.Qwen 3.8 2.

4T NL2RepoBench improved from 52.5% to 58.5% in 48 steps.Check out the full QwenGyre paper on arXiv and Qwen’s announcement post.All credit goes to the researcher of this project.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.

Wait!are you on telegram?now you can join us on telegram as well.The post Alibaba Qwen Introduces QwenGyre: Elastic Reinforcement Learning RL for XLong-Horizon Agents appeared first on MarkTechPost.

Related

相關文章

MarkTechPost AI模型更新

Google 開源 Harness²:遞迴代理程式框架,無需新模型也能提升效能

Google Cloud AI Research 開源了 Harness²,這是一個遞迴代理程式框架,透過改良凍結模型周圍的程式碼與檔案來增強效能。對開發者而言,重點很簡單:你的代理程式無需更強大的模型也能進步。重點摘要:規模為框架而非模型,訓練參數為0,包含8個可編輯的框架元件,版本0.1.0。執行環境為Linux、Python 3.12或3.13搭配uv,模型呼叫則透過Vertex AI。GPU需求未公開。效能方面:一次改良步驟即可在3個基準測試中,提升所有4個模型與框架組合的表現。最佳成果:GLM-5搭配OpenCode在WorkBuddy-Bench上從64.2提升至75.7(+11.5點);最差表現:GLM-5搭配Codex在JobBench上僅提升1.2點(23.6至24.8)。什麼是Harness²?它是Google研究推出的即插即用框架。

15 小時前
MarkTechPost AI模型更新

認識 Kyutai REKI:2.4B VLA 模型為機器人操控帶來高效記憶

Kyutai 與 Inria 及 École des Ponts 合作,推出了 REKI——一個用於機器人操控的 2.4B 參數視覺-語言-動作模型(VLA)。該模型僅使用公開數據進行預訓練,並配備了輕量級的近期記憶功能。在三個分佈外基準測試中,僅有規模約為其兩倍的模型能超越它。所有模型權重已於今日在 Hugging Face 上公開。核心資訊:規模:2.4B 參數(2.2B Qwen3.5-2B VLM + 0.2B 流匹配動作專家)。記憶涵蓋最近 3 幀,間隔 1 秒。運行環境:在 1 張 NVIDIA H100 上進行基準測試。從兩個 256×256 攝像頭輸入,編譯後每個動作區塊耗時 21.8 毫秒。權重以 BF16 格式提供,暫無量化版本。性能:在 LIBERO-Plus 和 RoboTwin Clean2Rand 基準測試中,為公開數據預訓練的 VLA 模型中最優;在 LIBERO-Plus 上達到 90.4% 的最高分。

1 天前
MarkTechPost AI模型更新

DeepSeek 發布 V4.1-Flash-1017,DeepSWE 得分 77.0,並開放搜尋 API

DeepSeek 剛發布 DeepSeek-V4.1-Flash-1017,這是其 V4.1-Flash 模型的新檢查點,現已在 DeepSeek 網站、應用程式及 API 上線。DeepSeek 宣稱該版本在性能、任務完成速度與輸出簡潔度上均優於 9 月發布的 V4.1-Flash,並稱之為性能與成本的帕累託改進。同時,DeepSeek 也向所有開發者開放了搜尋與擷取 API。對代理建構者而言,這意味著更便宜的編碼模型加上單一 API 金鑰即可使用的第一方網路層。重點摘要:骨架參數 552B,另加 196B 的 Engram 參數;預填充階段每 token 啟用 8B 參數,解碼階段啟用 16B 參數;上下文長度達 1M tokens,最大輸出 384K tokens。運行於 DeepSeek API 的 deepseek-flash 模型。9 月版的 V4.1-Flash 權重(763B 參數,FP8)採 MIT 授權。

1 天前
MarkTechPost AI模型更新

2026年20款Jev替代方案:挑戰TypeSafe的決策模型

TypeSafe於2026年9月15日推出Jev,這是一款決策模型而非聊天機器人。使用者可定義允許的答案,Jev將回傳標籤、分數或是否的機率。約4週內,至少20款Jev替代方案相繼問世,來自Cloudflare、OpenAI、Perplexity、Liquid AI、AWS的Strands Labs及獨立開發者。本指南比較各方案在規模、授權、硬體、價格、Jev API相容性及已發布基準測試的表現。重點摘要:規模範圍從287M(GLiNER2.5-multi-Decide)到35B-A3B(Mapika Decider),Jev規模未公開。執行環境:Von和Laya等編碼器可在CPU上運行,4B適配器適用24 GB GPU或32 GB Mac。效能:多數開源模型在困難推理上落後Jev,但在狹窄分類任務上數款與之匹敵或超越。最佳表現:Cloudflare Clef在BANKING7取得94.20分。

1 天前
雷峰網模型更新

長鑫科技市值兩月內跌去1萬億;阿里加碼AI硬件品牌,天貓、速賣通聯動;國行版蘋果AI有望12月上線,百度、阿里參與合作丨雷峰早報

要聞提示1.長鑫科技市值兩月內跌去1萬億2.年內已至少18次故障!DeepSeek發放宕機補償,有人拿到3000元3.阿里加碼AI硬件品牌,天貓、速賣通聯動4.國行版蘋果AI有望12月上線,百度、阿里參與合作5.可靈AI新一代模型Kling 4.

2 天前