计算机科学 > 计算与语言
[提交于 2026年12月3日]
标题:Hybrid-Recast: Converting Qwen3 to a GQA-Mamba2 Hybrid
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:Hybrid-Recast converts a pretrained Transformer into a hybrid attention and state-space model. Starting from Qwen3-8B, we replace grouped-query attention (GQA) with Mamba2 in 17 of its 36 decoder layers and retain GQA in the other 19. We transfer pretrained weights and train the resulting Qwen3-Hybrid-Mamba2-8B model in four stages to recover performance after conversion. The four stages use approximately 15 billion tokens in total, equivalent to 0.042% of the 36 trillion pretraining tokens reported for Qwen3. The hybrid model scores 93.48 on GSM8K and 90.70 on MMLU-Redux under our evaluation protocol, retaining 97.5% and 97.7% of the corresponding Qwen3-8B scores. Including the fixed Mamba2 states, the hybrid model requires 35.0% less cache memory per request at 1,024 cached tokens and 45.7% less at 8,192, calculated from BF16 tensor sizes. We also reduce communication during distillation by transferring teacher hidden states and applying the teacher's output projection on the student side. At the same global batch size and sequence length, this change reduces the measured time per distillation step from 394.8 s to 9.3 s.
提交历史
来自:Chao-Quan Lin[v1] 2026年12月3日 星期四 01:57:05 UTC (2,419 KB)