ModelBrief · GigaChat 4 · Topic Page
Last updated Nov 27, 2026

GigaChat 4 Architecture: Hybrid MoE, DSA, Dual Modes

ModelBrief · Published 2026-11-27 · Fact-check 2026-11-27 · Reference: Hugging Face model card, GitHub technical report, SGLang cookbook

GigaChat 4's architecture in one sentence: a hybrid MoE with two attention layers stacked on top — 48 Gated DeltaNet linear-attention layers to "remember cheaply", 16 DeepSeek Sparse Attention layers to "retrieve accurately", interleaved 3:1 — and instant and reasoning modes packed into a single checkpoint. Fix the numbers first, then take it apart layer by layer.

Overview: the flagship and compact in numbers

Item708B-A41B flagship37B-A4B compact
Total / active per token708B / 41B37B / ~3.8B
Decoder layers / hidden size64 / 7,16832 / 2,560
Routed experts / active per token / shared experts256 / 8 / 1192 / not in this round's research / not in this round's research
Linear-attention / sparse-attention layers48 / 16Not in this round's research
Initial dense-FFN layers3Not in this round's research
Maximum context1,048,576 tokens1,048,576 tokens (model-card figure)
DSA positions selected per query2,048Not in this round's research
Built-in MTP layers1, reused recurrentlyNot in this round's research

Note the blanks in the 37B column: the technical report covers the 708B only, so for the 37B we have just three figures — 32 layers, hidden size 2,560 and 192 routed experts — and the layer mix waits for the 37B's own report.

Hybrid MoE: 256 experts, 8+1 active

The flagship activates 41B parameters per token: each MoE layer routes a token to 8 of 256 routed experts, plus 1 shared expert. GatedNorm is applied to block outputs before residual addition. At 8 of 256, the activation ratio is about 3.1% — a sparse end of sparse MoE: 708B total parameters, but each forward pass costs roughly what a 41B model costs. The 37B uses 192 routed experts with ~3.8B active — the same "large total, small active" recipe at a smaller scale.

Hybrid attention: 48 GDN + 16 DSA layers, interleaved 3:1

GigaChat 4 adds one layer to GigaChat 3.5's hybrid backbone: DeepSeek Sparse Attention (DSA) in its multi-head latent attention (MLA) layers. Of the 64 layers, 48 are Gated DeltaNet (GDN) linear attention and 16 are DSA, one DSA layer every four layers, 3:1. The split of labour: GDN keeps a fixed-size recurrent state instead of a growing KV cache, so long context is cheap; DSA uses an indexer to select 2,048 earlier tokens per query for precise attention, so long context is accurate. The model card puts it this way: GatedDeltaNet maintains a fixed-size recurrent state for efficient processing, while DSA selectively attends to 2,048 earlier tokens per query, enabling retrieval of information from long contexts.

Context: progressively extended 32K → 128K → 1M

The context window was progressively extended during training: 32K → 128K → 1M. DSA was introduced at the 128K stage, first with indexer-only training, then with joint optimisation of the indexer and backbone at 1M. The SGLang cookbook adds the engineering detail: a configured 1M window with a YaRN factor of 32 (32K base) — but the request length a server can admit also depends on cache memory, and the startup log's context_len and max_total_num_tokens are authoritative. In other words, 1M is the configured value, not a length every request can reach.

Dual modes in one checkpoint: two of 3.5's become one

This is the biggest product change from 3.5: where 3.5 needed two checkpoints for its instant and reasoning modes, GigaChat 4 puts both modes in one checkpoint, switched per request — set chat_template_kwargs.reasoning to false for instant, true for reasoning; omitted, it defaults to reasoning. Thinking and the final answer are returned separately: message.reasoning_content and message.content in SGLang, message.reasoning and message.content in vLLM. The score gap between the modes is in our benchmark article: TB 2.0 instant 60.47 vs reasoning 71.26, SWE-bench nearly identical (80.82 vs 80.89).

Speculative decoding: recurrent MTP and DFlash2

Two speculative decoding paths:

Recurrent MTP: an EAGLE-3-style drafter that reuses the built-in single prediction layer across draft steps, with ~3× fewer drafter parameters than 3.5's three independent MTP blocks and no loss of draft quality. The SGLang cookbook's low-latency recipe uses it: three draft steps, one candidate per step, four verification positions, and a fully accepted chain commits up to four output tokens per step (including the target model's bonus token).

DFlash2: a separate 5-layer BF16 drafter that predicts tokens in parallel using 8-position blocks: 1 anchor + 7 draft positions. The draft weights live in the model repo's dflash_draft/ directory and must be downloaded first; the draft config must identify the draft model as GigaChat4DFlash2DraftModel and contain the trained dflash_config; a draft trained for a different target size is not interchangeable; and the draft must stay BF16 (--speculative-draft-model-quantization unquant) while the target can stay FP8.

Training and stability: Muon, multi-teacher distillation, and three stabilisers

Alignment runs in three stages: SFT → specialist RL (math, coding, tool use, multi-turn agent workflows, one expert model per specialty) → multi-teacher on-policy distillation into a single model — the student generates its own responses and receives task-specific feedback from the corresponding teachers; Muon was used for optimisation at this stage. Pretraining stability uses three techniques: ProRes progressive residual warm-up (gradually increasing residual-branch contributions in early training, deeper layers warming up more slowly, to prevent activation growth), projection-specific z-loss + logit softcapping (controlling activation outliers and extreme output logits), and DLR dynamic learning-rate rescaling (adjusting learning rates for individual MoE blocks when persistent expert-load imbalance is detected, without affecting the rest of the model).

The architecture delta vs 3.5: DSA added, modes merged

Against 3.5, GigaChat 4 changes two things in architecture: first, DSA is added to the MLA layers, so the hybrid attention goes from "GDN + dense attention" to "GDN + DSA"; second, the instant and reasoning modes merge from two checkpoints into one. Parameters grow from 432B to 708B with 41B active (3.5's active count is not listed in the comparison table). The rest — SwiGLU clipping at 10, final-logit soft-capping at 30, GatedNorm, attention gates — is the existing design recorded in the model card and cookbook.

FAQ

What do DSA and GDN each do?

GDN (Gated DeltaNet) is linear attention: it keeps a fixed-size recurrent state instead of a growing KV cache, so long context is cheap. DSA (DeepSeek Sparse Attention) combines MLA with an indexer that selects 2,048 earlier tokens per query for precise attention, so long context is accurate. Of the 64 layers, 48 are GDN and 16 are DSA, interleaved 3:1.

Are instant and reasoning modes two models?

No. GigaChat 4 puts both modes in one checkpoint, switched per request (chat_template_kwargs.reasoning false/true); 3.5 needed two checkpoints. Omitted, the argument defaults to reasoning.

How do MTP and DFlash2 differ?

Both are speculative decoding: recurrent MTP reuses the built-in single prediction layer (EAGLE-3 style) and needs no extra download; DFlash2 is a separate 5-layer BF16 drafter that must be downloaded first from the model repo's dflash_draft/ directory, using 8-position blocks (1 anchor + 7 drafts). The SGLang cookbook's low-latency recipe uses MTP; the high-throughput recipe turns speculative decoding off.

Is the 37B's architecture the same as the 708B's?

Same recipe, smaller scale: 37B total, ~3.8B active, 32 layers, hidden size 2,560, 192 routed experts, the same hybrid MoE + linear-attention mix. But the technical report covers the 708B only, so the 37B's layer mix and other details wait for its own report.

ModelBrief's take: The trade-offs in this architecture are clear: GDN pushes the cost of long context down, DSA pulls the accuracy of long context back up, and the single-checkpoint dual modes cut deployment complexity in half. Nothing in the architecture is a gamble on a new idea — GDN, DSA, MoE and MTP are all established lines combined, and the bet is on whether the combination trains stably at 708B scale. The ProRes, z-loss and DLR trio shows Sber did spend effort on training stability, but the model card publishes no loss curves or incident records — the only evidence is the result itself: complete weights were delivered.

Reference: Hugging Face — ai-sage/GigaChat4-708B-A41B · GitHub technical report — salute-developers/gigachat4 · SGLang cookbook — GigaChat 4 · GigaChat 4 topic page (rewritten and organized by ModelBrief; facts per the model card and technical report)