DEV Community

Cover image for GigaChat 4 708B: 676 GiB of FP8 weights, a 1M-token cache of about 22 GiB, and why two 8-GPU nodes are the floor
ai maya
ai maya

Posted on

GigaChat 4 708B: 676 GiB of FP8 weights, a 1M-token cache of about 22 GiB, and why two 8-GPU nodes are the floor

TL;DR

  • GigaChat 4 (repo ai-sage/GigaChat4-708B-A41B, MIT license) has 708B total parameters and 41B active per token, 64 decoder layers, 256 routed experts with 8 active plus 1 shared, and a 1,048,576-token context window.
  • The FP8 repository holds 676.3 GiB of files (670.3 GiB of weight shards plus a 6.0 GiB speculative-decoding drafter). The BF16 repository is 1,329.0 GiB. The GGUF repository offers Q4_K_M at 400.0 GiB, Q6_K at 543.2 GiB and Q8_0 at 703.3 GiB. All sizes are summed from the Hugging Face file lists on November 29, 2026.
  • Only 16 of the 64 layers use sparse attention with a cache. The other 48 are Gated DeltaNet layers with a fixed-size state. My estimate of the latent cache at 1M tokens is 18.0 GiB in BF16 or 9.0 GiB in FP8, plus roughly 2 to 4 GiB for the sparse-attention indexer keys.
  • The model card's recipe is two nodes of eight 80 GB H100s (tensor parallel 16). That is not a convenience choice: eight 80 GB cards cannot hold the weights at all.

Everything below is arithmetic from the published config.json, the file lists and the model card. I did not run the model. Where I estimate, I say so.

What is actually in the GigaChat 4 release?

Sber's ai-sage organization published GigaChat 4 on November 20, 2026 as a family of repositories: the FP8 instruction-tuned model (the main repo), a BF16 copy, a GGUF repo, a base model and a repo of intermediate base checkpoints. The model card calls it the flagship hybrid model of the GigaChat family and documents Russian and English as its languages.

Three design choices matter for anyone who has to host it:

  1. A hybrid backbone. Layers alternate in a 3:1 ratio. Forty-eight layers are Gated DeltaNet (a linear-attention layer with a recurrent state). Sixteen layers (indices 3, 7, 11, and so on up to 63 in full_attention_layers) are multi-head latent attention with DeepSeek Sparse Attention, where each query attends to 2,048 selected earlier tokens.
  2. A sparse MoE. 256 routed experts per layer, 8 active, one shared expert, and the first 3 layers use dense feed-forward blocks. Active parameters are 41B of 708B, or 5.8 percent.
  3. One checkpoint, two modes. Reasoning and instant modes live in the same weights, selected per request with chat_template_kwargs.reasoning.

The previous generation shipped separate instant and reasoning checkpoints, so this removes a second deployment for teams that wanted both.

How much memory do the weights need?

The safetensors header in the FP8 repo reports 710,235,315,584 parameters: 700,938,911,744 stored as FP8 (E4M3) and 9,296,403,840 in BF16. The BF16 part is what the quantization config leaves alone: embeddings, the output head, router gates, the shared experts, the Gated DeltaNet convolution and gate tensors, and the indexer projections.

Summing the 45 shards gives 719,715,125,808 bytes, which is 719.7 GB or 670.3 GiB. Add the 6.0 GiB dflash_draft file and the repo comes to 676.3 GiB.

Format Repository GiB
GGUF Q4_K_M GigaChat4-708B-A41B-GGUF 400.0
GGUF Q6_K same 543.2
FP8 (instruction-tuned) GigaChat4-708B-A41B 676.3
GGUF Q8_0 same 703.3
BF16 GigaChat4-708B-A41B-bf16 1,329.0

Why is Q8_0 larger than the FP8 repo? Block-scaled 8-bit GGUF stores a scale per 32 weights and keeps more tensors at higher precision, while the FP8 checkpoint uses 128 by 128 block scales and leaves a defined list of tensors in BF16. I did not verify the per-tensor breakdown, so treat that as the likely reason, not a measurement.

Does it fit on one node?

Take the card's tensor-parallel-16 recipe first. Weights per GPU are 676.3 GiB divided by 16, which is 42.3 GiB. An 80 GB H100 is 74.5 GiB, and with --gpu-memory-utilization 0.90 the budget is 67.1 GiB per GPU. That leaves about 24.8 GiB per GPU, or roughly 397 GiB across the 16 cards, for KV cache, recurrent state, activations and CUDA graphs.

One node of eight 80 GB cards has 596 GiB of raw memory, below the 676.3 GiB of weights. It cannot work, which is why the model card specifies two nodes.

My arithmetic for other hardware (not tested):

  • Eight 141 GB cards (about 131 GiB each, 1,050 GiB total): at 0.90 utilization the budget is about 945 GiB. After 676.3 GiB of weights, about 269 GiB remains. That fits one node.
  • A 512 GB unified-memory machine (about 477 GiB): Q4_K_M at 400.0 GiB leaves about 77 GiB. Whether a given llama.cpp build supports the Gated DeltaNet plus sparse-attention architecture is something I did not check.
# weights per GPU for the card's TP16 recipe
weights_gib = 676.3
per_gpu = weights_gib / 16                 # 42.3 GiB
budget = 80e9 / 2**30 * 0.90               # 67.1 GiB at 0.90 utilization
print(round(per_gpu, 1), round(budget - per_gpu, 1))   # 42.3 24.8
Enter fullscreen mode Exit fullscreen mode

How big is the KV cache at one million tokens?

KV cache at 1M tokens

This is where the hybrid layout pays off. In a standard transformer every layer keeps a cache that grows with context. Here only 16 layers do.

For multi-head latent attention, the cache per token per layer is the compressed latent plus the rotary key part. From config.json: kv_lora_rank is 512 and qk_rope_head_dim is 64, so 576 values per token per layer.

  • BF16: 16 layers x 576 x 2 bytes = 18,432 bytes per token. At 1,048,576 tokens that is 18.0 GiB. At 131,072 tokens it is 2.25 GiB.
  • FP8: half of that, 9.0 GiB at 1M tokens.
  • For contrast, a hypothetical model with the same latent size but all 64 layers caching would need 72.0 GiB in BF16 at 1M tokens. That model does not exist here, but it shows the 4x saving from the layer mix.

Sparse attention adds an indexer that scores earlier tokens. Its config is index_head_dim 128 and 64 indexer heads. If the indexer keeps one 128-wide key per token per layer, that is 2.0 GiB (FP8) to 4.0 GiB (BF16) across 16 layers at 1M tokens. I am assuming that layout; the real figure depends on the serving engine.

What about the 48 linear-attention layers?

Gated DeltaNet keeps a matrix state per layer that does not grow with context. With 64 value heads and key and value dimensions of 128, one layer holds 64 x 128 x 128 = 1,048,576 values. Across 48 layers that is 50,331,648 values: 96 MiB in BF16 or 192 MiB in FP32, per sequence. There is also a small convolution state (kernel width 4). So the recurrent part costs a fixed few hundred MiB per concurrent request, no matter how long the prompt is.

G = 2**30
mla_per_tok = 16 * (512 + 64) * 2          # BF16 bytes
print(mla_per_tok * 1_048_576 / G)          # 18.0 GiB at 1M tokens
gdn_state = 48 * 64 * 128 * 128             # values per sequence
print(gdn_state * 4 / 2**20)                # 192.0 MiB in FP32
Enter fullscreen mode Exit fullscreen mode

Total per 1M-token sequence in BF16: roughly 18 GiB of latent cache, 2 to 4 GiB of indexer keys and about 0.2 GiB of recurrent state, so about 20 to 22 GiB. Against the roughly 397 GiB left over on the card's 16-GPU recipe, that suggests a handful of full-length sequences at once, and many more at typical lengths. The card caps --max-running-requests at 64 in SGLang and --max-num-seqs at 16 in vLLM, which is consistent with this being a memory-bound setup.

Is decoding fast, or just small on paper?

Memory capacity and decode speed are separate questions. A decode step must read the active weights. With 41B active parameters at roughly one byte each in FP8, that is about 41 GB per token at batch size 1. Across 16 H100 SXM cards at 3.35 TB/s each (53.6 TB/s aggregate, from the public spec), the pure bandwidth ceiling is about 0.76 ms per token, or around 1,300 tokens per second per stream.

That number is an upper bound, not a prediction. It ignores expert-parallel all-to-all traffic, which crosses a node boundary in this recipe, and it ignores attention and the shared tensors. The model card pairs the model with two speculative-decoding paths, a recurrent MTP head (a single prediction layer reused across draft steps, about one third the drafter parameters of the earlier three-block design) and a separate five-layer BF16 DFlash2 drafter that proposes blocks of eight positions. Both exist because a 41B-active model at batch size 1 is bandwidth-bound, and speculation turns several draft tokens into one verification pass.

What do the vendor benchmarks say about the two modes?

The numbers below come from the model card, which compares against GigaChat 3.5 Ultra, DeepSeek V4 Flash 0731, GLM-5.3, DeepSeek 4.1 1017, Qwen 3.5 397B and Mistral 4 Large. They are the vendor's own runs, with agentic suites on seven-hour timeouts, so read them as the vendor's reported figures and not an independent evaluation.

Reasoning vs instant mode

Reasoning mode scores 82.83 on GPQA Diamond, 95.00 on AIME 2026 (mean over 8), 93.75 on HMMT (mean over 8), 88.82 on LiveCodeBench v6 and 80.89 on SWE-bench Verified. Instant mode scores 70.20, 80.83, 63.75, 78.77 and 80.82 on the same five. The pattern is clear: the gap is large on math and science, small on SWE-bench Verified, where instant mode comes within 0.07 points.

Other reported reasoning-mode scores that stand out: 99.28 on JSONSchemaBench, 100.00 on NIH Complex, 94.53 on Natural Plan, 83.31 on tau2-Bench and 79.55 on BFCL v4, the highest BFCL v4 figure in that table. For anyone building tool-calling or structured-output pipelines, those are the rows to reproduce on your own data first.

For a cost-sensitive deployment, the practical reading is that instant mode is the cheaper default for code-repair style work, while reasoning mode earns its extra output tokens on math, science and long multi-step planning. Output length is the hidden bill, so measure tokens per task in both modes before you pick a default.

How do you serve it?

The card documents both SGLang and vLLM. The vLLM route uses a specific commit from an integration pull request rather than a release, so pin it:

vllm serve ai-sage/GigaChat4-708B-A41B \
  --tensor-parallel-size 16 --enable-expert-parallel \
  --nnodes 2 --node-rank "$NODE_RANK" \
  --master-addr "$HEAD_IP" --master-port 20000 \
  --gpu-memory-utilization 0.90 --max-num-seqs 16 \
  --tool-call-parser gigachat4 --enable-auto-tool-choice \
  --reasoning-parser gigachat4 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":3}'
Enter fullscreen mode Exit fullscreen mode

Per-request mode selection uses the chat template argument:

curl http://localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model":"ai-sage/GigaChat4-708B-A41B",
       "messages":[{"role":"user","content":"What is 17 times 24?"}],
       "chat_template_kwargs":{"reasoning":false}}'
Enter fullscreen mode Exit fullscreen mode

Omit the argument and the template defaults to reasoning, so an unconfigured client pays for thinking tokens.

What should a platform team check before adopting it?

  1. Memory plan. 676.3 GiB of FP8 files means two 80 GB nodes or one node of 141 GB-class cards. Decide before ordering hardware, not after.
  2. Cache plan. Budget about 20 to 22 GiB per 1M-token sequence in BF16 and size max-num-seqs from what remains after weights.
  3. Engine version. The recipes pin a development commit. Expect that to change as support lands in releases.
  4. License. The card states MIT, and the repo carries a LICENSE.txt.
  5. Language fit. The card documents Russian and English. Test your own languages before assuming coverage.
  6. Mode default. Set reasoning explicitly per route.

FAQ

How many parameters does GigaChat 4 have?
708B total and 41B active per token, from 256 routed experts (8 active) plus one shared expert.

How much memory do the GigaChat 4 weights need?
676.3 GiB for the FP8 repo, 1,329.0 GiB for BF16, and 400.0 GiB for the smallest GGUF (Q4_K_M), summed from the Hugging Face file lists.

Can GigaChat 4 run on eight H100 80GB GPUs?
Not in FP8. Eight 80 GB cards total about 596 GiB, below the 676.3 GiB of weights. The model card uses two nodes with tensor parallel 16.

Why is the KV cache small for a 1M-token context?
Only 16 of 64 layers keep a growing cache, and those use latent compression (576 values per token per layer). The other 48 layers keep a fixed-size state. My estimate is 18.0 GiB in BF16 for the latent cache at 1M tokens.

Is the license permissive?
The model card lists MIT.

Are the benchmark numbers independent?
No. They are from the vendor's model card and technical report. Reproduce the ones that matter for your workload.

Further reading

Sources

Top comments (0)