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.
| Item | 708B-A41B flagship | 37B-A4B compact |
|---|---|---|
| Total / active per token | 708B / 41B | 37B / ~3.8B |
| Decoder layers / hidden size | 64 / 7,168 | 32 / 2,560 |
| Routed experts / active per token / shared experts | 256 / 8 / 1 | 192 / not in this round's research / not in this round's research |
| Linear-attention / sparse-attention layers | 48 / 16 | Not in this round's research |
| Initial dense-FFN layers | 3 | Not in this round's research |
| Maximum context | 1,048,576 tokens | 1,048,576 tokens (model-card figure) |
| DSA positions selected per query | 2,048 | Not in this round's research |
| Built-in MTP layers | 1, reused recurrently | Not 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.
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.
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.
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.
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).
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.
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).
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.
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.
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.
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.
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.
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)