Hybrid-Recast: Converting Qwen3 to a GQA-Mamba2 Hybrid

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.

Authors

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Hybrid-Recast: Converting Qwen3 to a GQA-Mamba2 Hybrid

Peixiang Tan, Meiqing Zhang, Yihua Yu, Chaoquan Lin
arXiv
Topic Modeling
preprint

Hybrid-Recast: Converting Qwen3 to a GQA-Mamba2 Hybrid

Peixiang Tan, Meiqing Zhang, Yihua Yu, Chaoquan Lin
preprint en

Abstract

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.

arXiv
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon