Eight teachers, one model: how was the MIT-licensed GigaChat 4 trained?
Sber's open 708B model was trained on 20 trillion tokens, reaches a 1M context and merges separate experts through eight teachers.
Can you train separate experts for math, code, agents and chat and then fold them into one model? GigaChat 4, which Sber's GigaChat team put on Hugging Face on 20 November and documented in a technical report on 26 November, does exactly that: one model that learned from eight expert teachers and answers both instantly and with long reasoning. The large version has 708 billion parameters and is open under MIT, commercial use included.
The smaller GigaChat4-37B-A4B fits on a single H100 but comes under a non-commercial license for individuals. The 83-page technical report covers every training stage, including what did not work.
What GigaChat 4 is
GigaChat4-708B-A41B is a mixture-of-experts model that activates 41 billion of its 708 billion parameters per token. Three of every four of its 64 layers use linear-attention Gated DeltaNet; the fourth uses MLA with DeepSeek Sparse Attention, which picks the 2,048 most relevant past tokens for each query and lets context reach 1 million tokens. Each token goes to 8 of 256 experts plus a shared one. GigaChat 3.5 had 432 billion parameters, 40 layers and 262K context. Instant and reasoning modes now live in one checkpoint, chosen per request, with reasoning as default. For speed it carries a recurrent MTP head and a separate 5-layer DFlash2 drafter.
How the model was trained
Data. About 15.35 trillion unique tokens were sampled with per-source repetition up to a 20-trillion-token run: web 57%, code 17%, OCR'd PDF documents 13%, math 6%, the rest multilingual web and reference sources. Web pages were converted to Markdown by a language model, filtered first by fastText and then an LLM classifier, deduplicated with MinHash and decontaminated. Code spans more than 400 programming languages.
Recipe. Settings were tested on dense 3B and 7B models, a 120B MoE and two new 10B and 37B MoE proxies. Pretraining used AdamW with a 1.4e-4 peak and a warmup-stable-decay schedule, about 75.5 million tokens per step, and sequence length ramped from 768 to 4,096 over 13,000 steps. Stability measures included a 15,000-step residual warm-up from 0.1, a logit cap at 30, automatic per-block learning-rate cuts when expert imbalance grew, and a projection-specific z-loss added at step 44,625, after which the largest singular value of layer 62 fell from 1,072 to 862.
Long context. The last 1 trillion tokens raised context from 4K to 32K with more verified synthetic math and code. Then came three stages: dense attention at 128K for about 336 billion tokens, the sparse-attention indexer trained alone with the trunk frozen, and both together at 1M for about 400 billion tokens. Retrieval reached 0.990 at 128K and 0.926 at 1M.
Post-training. The SFT mix was 34.3% agents and software engineering, 21.8% math and 21% code, trained at 512K context for 10,000 steps, in Russian and English only. Separate RL experts were trained for STEM, competitive programming, agent harnesses, software engineering, tool use and chat, with 32 rollouts per prompt, GRPO advantages combined with CISPO and M2PO masking, and the sparse indexer removed. Finally eight teachers, reasoning and instant versions for STEM, competitive programming and chat plus reasoning teachers for tool use and software engineering, were distilled on-policy into one model across 26 domains in just 240 Muon updates. GPU counts and cost are not disclosed.
What did not work
SFT learning rates above 2e-4 diverged, a 3,000-step schedule failed and larger batches did worse. Online expert rebalancing in RL cut imbalance from 7.07 to 2.50 but dropped reward from 0.439 to 0.374. Unstable RL runs that collapsed around step 150 lasted to about 600 with M2PO masking and an Adam change. A separate 32K sparse stage added 5.4 points but needed about 80% more tokens, so it was dropped. AdamW matched Muon on most benchmarks, but Muon was chosen for the merge because AdamW produced more format failures (2.3% vs 0.1%).
What the results say
All figures are the team's own. In reasoning mode, the 708B scores 80.89 on SWE-bench Verified and 71.26 on Terminal-Bench 2.0, where GigaChat 3.5 Ultra had 30.30. It leads DeepSeek V4 Flash, GLM-5.3 and Mistral 4 Large on BFCL v4 (79.55) and IFBench (80.33), and trails on knowledge-heavy tests: 82.83 on GPQA Diamond against 90.40 for GLM-5.3, and 23.91 on HLE against 39.62. The 37B beats Qwen3.6-35B-A3B on SWE-bench Verified (70.80 vs 67.80) and trails on GPQA (70 vs 80).
How to run it
The 708B FP8 model needs two nodes with 16 H100s in total via SGLang or vLLM, with ready commands on the card. The 37B FP8 model is about 40 GB and fits on one H100 80 GB, and a 23.3 GB Q4_K_M file in the GGUF repo runs with llama.cpp. Intermediate training checkpoints are published too. Mind the licenses: all 708B forms are MIT, while the 37B forms are non-commercial and for individuals only. At short contexts the sparse-attention overhead can outweigh its savings; the report measures 14.5% slower at 10K tokens.
Sources: 708B model card, 37B model card, Technical report, GitHub, GigaChat blog