Qwen3.6-35B-A3B-DFlux
Qwen3.6-35B-A3B-DFlux is a DFlux speculative draft model for Qwen/Qwen3.6-35B-A3B, trained with LEGOSpec (LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training).
DFlux is a balanced general-purpose speculative draft architecture that combines:
- SWA–GQA Hybrid Backbone with Block-Local Convolution: 5 Sliding-Window Attention layers followed by 1 dense GQA full-attention layer, each equipped with a block-local grouped convolution to preserve within-block dependencies across both short and long contexts while bounding historical KV cache growth.
- Residual Corrector (R-Corrector): Computes parallel predecessor–successor residual corrections over the top-16 candidates while retaining full-vocabulary base logits, preserving the exact target distribution under rejection sampling.
- Hierarchical Supervision: Jointly trains the backbone with forward KL for candidate coverage and the final output with D-PAL loss to directly optimize block-level acceptance length.
Training Data & Setup
- Dataset (1.4M samples total):
- 900K samples from Open-PerfectBlend
- 300K samples from Nemotron-Post-Training-Dataset-v2
- 200K samples from WildChat
- Supervision: Prompts are retained and responses are regenerated by
Qwen/Qwen3.6-35B-A3BatT = 1. - Optimization: Trained on 16 NVIDIA H800 GPUs with global batch size 128, Adam (
lr = 6e-4) and Muon (lr = 0.01).
Evaluation Results
Mean Acceptance Length (τ) at T = 1
Evaluated with block size 8, maximum generation length 1,024 tokens, and rejection sampling, averaged over 5 random seeds. Long-context benchmarks (LongBench-v2 MD-QA, L-ICL, SD-QA, and SWE-bench) use 32K–64K-token inputs.
| Method | Alpaca | MT-Bench | GSM8K | MATH-500 | MBPP | LCB | MD-QA | L-ICL | SD-QA | SWE |
|---|---|---|---|---|---|---|---|---|---|---|
| DFlash | 3.26 | 3.82 | 5.77 | 5.82 | 5.66 | 4.55 | 3.25 | 3.65 | 3.09 | 3.15 |
| DFlash2 | 3.45 | 4.00 | 6.06 | 5.99 | 5.88 | 4.66 | 3.48 | 4.05 | 3.34 | 3.62 |
| DSpark | 3.39 | 3.75 | 5.66 | 5.85 | 4.97 | 4.11 | 3.14 | 3.76 | 3.17 | 2.84 |
| DFlux (Ours) | 4.13 | 4.59 | 6.89 | 6.54 | 6.24 | 5.09 | 3.60 | 4.16 | 3.58 | 3.98 |
High-Concurrency Throughput with SGLang (T = 0)
Throughput reported as TPS / Speedup over AR across batch sizes 1, 8, 32, and 64, along with mean acceptance length (Avg. τ).
| Task | Method | BS = 1 | BS = 8 | BS = 32 | BS = 64 | Avg. τ |
|---|---|---|---|---|---|---|
| Alpaca | AR | 131 / 1.00× | 1033 / 1.00× | 3740 / 1.00× | 6113 / 1.00× | — |
| DFlash2 | 298 / 2.27× | 2001 / 1.94× | 5817 / 1.56× | 7820 / 1.28× | 3.37 | |
| DSpark | 303 / 2.30× | 2005 / 1.94× | 5137 / 1.37× | 7193 / 1.18× | 3.26 | |
| DFlux (Ours) | 353 / 2.69× | 2336 / 2.26× | 7125 / 1.91× | 9712 / 1.59× | 3.85 | |
| GSM8K | AR | 132 / 1.00× | 1033 / 1.00× | 3740 / 1.00× | 5988 / 1.00× | — |
| DFlash2 | 517 / 3.92× | 3497 / 3.38× | 10127 / 2.71× | 13281 / 2.22× | 5.96 | |
| DSpark | 504 / 3.82× | 3349 / 3.24× | 8552 / 2.29× | 11611 / 1.94× | 5.52 | |
| DFlux (Ours) | 602 / 4.57× | 3994 / 3.86× | 12058 / 3.22× | 16013 / 2.67× | 6.66 | |
| MBPP | AR | 132 / 1.00× | 1033 / 1.00× | 3565 / 1.00× | 5677 / 1.00× | — |
| DFlash2 | 500 / 3.80× | 3374 / 3.27× | 9255 / 2.60× | 11938 / 2.10× | 5.73 | |
| DSpark | 440 / 3.34× | 2916 / 2.82× | 7118 / 2.00× | 9443 / 1.66× | 4.77 | |
| DFlux (Ours) | 532 / 4.04× | 3533 / 3.42× | 10136 / 2.84× | 13120 / 2.31× | 5.88 |
Usage
This checkpoint is a speculative draft model and requires its matching target model (Qwen/Qwen3.6-35B-A3B) for shared embeddings, output head, and verification.
Install LEGOSpec and load the draft checkpoint:
import torch
from legospec import LegoSpecConfig, LegoSpecModel
checkpoint = "SJTU-DAI-Sys/Qwen3.6-35B-A3B-DFlux"
config = LegoSpecConfig.from_pretrained(checkpoint)
draft = LegoSpecModel.from_pretrained(
checkpoint, config=config, dtype=torch.bfloat16
).cuda().eval()
See the LEGOSpec repository for SGLang serving and evaluation scripts.
Citation
@article{wang2026legospec,
title={LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training},
author={Wang, Hanzhen and Xu, Jiaming and Dai, Guohao},
journal={arXiv preprint arXiv:2611.33004},
year={2026}
}