GigaChat 4 37B-A4B

Technical Report · Blog · Model Collection · SGLang Cookbook · GitHub

GigaChat 4 37B-A4B is a compact hybrid model in the GigaChat 4 family. It combines a Mixture-of-Experts (MoE) architecture with DeepSeek Sparse Attention (DSA) and Gated DeltaNet (GDN) with 37B total parameters and 4B active parameters per token. The model supports multilingual conversation, multi-step agentic tasks, tool calling, structured outputs, mathematical reasoning, coding, and question answering over long documents.

Unlike GigaChat 3.5, which offered separate instant and reasoning checkpoints, GigaChat 4 supports both modes within a single model, selectable per request. It features a one-million-token context window and supports speculative decoding with either a recurrent MTP drafter or a separate DFlash2 drafter.

This repository contains GGUF versions of the final instruction-tuned model. Choose a weight format from the repository's Files and versions tab to match your available RAM and VRAM.

Model variants

Repository Weights Training stage
GigaChat4-37B-A4B FP8 Instruction-tuned
GigaChat4-37B-A4B-GGUF GGUF Instruction-tuned
GigaChat4-37B-A4B-bf16 BF16 Instruction-tuned
GigaChat4-37B-A4B-base BF16 Base
GigaChat4-37B-A4B-checkpoints BF16 Base, intermediate checkpoints

Model architecture

GigaChat 4 extends the hybrid backbone of GigaChat 3.5 by adding DSA to its multi-head latent attention (MLA) layers.

Property Value
Total / active parameters per token 37B / 4B
Decoder layers / hidden size 32 / 2,560
Linear-attention / sparse-attention layers 24 / 8
Routed experts / active routed experts / shared experts 192 / 8 / 1
Initial decoder layers with dense FFNs 1
Maximum context length 1,048,576 tokens
DSA tokens selected per query 2,048
Built-in MTP layers 1, reused recurrently

Mixture-of-Experts (MoE)

This model has 37B total parameters, with 4B active per token. Each MoE layer combines an attention block with shared and routed experts, selecting 8 of 192 routed experts per token alongside a shared expert. GatedNorm is applied to block outputs before residual addition.

Hybrid attention

The model interleaves GatedDeltaNet and DSA layers in a 3:1 ratio. 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 from 32K to 128K and finally to 1M tokens. DSA was introduced at 128K through indexer-only training, followed by joint optimization of the indexer and backbone at 1M tokens.

Speculative decoding

GigaChat 4 supports two approaches to speculative decoding:

  • Recurrent MTP: An EAGLE-3-style drafter that reuses a single prediction layer across draft steps, reducing drafter parameters by approximately 3× compared to GigaChat 3.5's three independent MTP blocks without sacrificing draft quality.

  • DFlash2: A separate five-layer BF16 drafter that predicts tokens in parallel using blocks of eight positions: one anchor token and seven draft positions.

Both approaches accelerate autoregressive generation by allowing the target model to verify multiple draft tokens in a single forward pass.

Training and alignment

Pretraining stability

GigaChat 4 37B builds on the training techniques used for the 708B model, with additional improvements to optimizer scaling and stability:

  • Muon with μP-based scaling was used throughout pretraining and midtraining. We derived scaling rules for Muon's weight updates that account for GatedDeltaNet and gated normalization, allowing hyperparameters tuned on a 4B model to transfer to 37B. During midtraining, we increased the number of Newton–Schulz iterations per optimizer step.

  • Progressive residual warm-up (ProRes) gradually increases residual branch contributions during early training, with deeper layers warming up more slowly to prevent activation growth.

  • Projection-specific z-loss and logit softcapping control activation outliers and extreme output logits.

  • Dynamic learning-rate rescaling (DLR) adjusts learning rates for individual MoE blocks when persistent expert-load imbalance is detected, without affecting the rest of the model.

Alignment

Following supervised fine-tuning, expert models were trained using reinforcement learning on mathematics, coding, tool use, and multi-turn agent workflows.

These experts were then consolidated into a single model through multi-teacher on-policy distillation, where the student generates its own responses and receives task-specific feedback from the corresponding teachers.

The resulting model supports both instant and reasoning modes within a single checkpoint.

For more details on the GigaChat 4 architecture and training methodology, see the GigaChat 4 technical report. A dedicated technical report for GigaChat 4 37B will be published later.

Evaluation Results

The following tables summarize GigaChat 4 37B's performance across a broad range of benchmarks. All scores are reported as percentages unless otherwise specified. A dash indicates an unreported result.

Reasoning

Code

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
LiveCodeBench v6 85.00 64.00 69.00 65.00 85.40
SWE-bench Verified 70.80 32.40 60.60 67.80 64.70
SWE-bench Multilingual 61.67 26.00 57.30 60.70 —
NL2Repo (mean score / pass rate) 14.89 / 25.03 3.20 / 3.40 11.40 / 5.70 30.30 / 17.70 5.00 / —
Terminal-Bench 2.0 38.20 22.50 33.70 48.30 30.30
Terminal-Bench 2.1 39.33 22.50 34.80 49.40 —

General

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
IFBench (prompt-level loose) 75.00 61.00 64.30 58.00 77.00
JSONSchemaBench 96.00 87.00 94.20 42.00 93.01
StructEval Text 86.00 75.00 78.90 85.60 85.00
POLLUX — 73.00 68.60 71.00 75.50
GraphWalks 63.00 13.00 60.50 46.00 38.00
Natural Plan 92.00 51.00 75.20 76.00 80.19
NIH Complex 99.00 94.00 96.90 67.00 99.16
AA-LCR 54.00 18.70 66.00 60.70 25.00

STEM

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
GPQA Diamond 70.00 66.00 85.00 80.00 82.30
HMMT (pass@8) 95.00 86.70 87.00 83.00 93.00
HMMT (mean@8) 87.00 61.50 74.00 70.00 —
AIME 2025 (pass@8) 93.00 80.00 93.00 93.00 93.00
AIME 2025 (mean@8) 88.00 73.00 88.00 92.00 89.00
AIME 2026 (pass@8) 93.00 93.00 97.00 97.00 97.00
AIME 2026 (mean@8) 92.00 78.00 88.00 87.00 91.00
IMO-AnswerBench 76.00 60.00 74.00 76.00 73.00
HLE (text only) 9.00 6.00 19.00 20.00 13.00

Agentic

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
BFCL (overall accuracy) 72.00 63.00 69.00 67.00 58.59
τ³-Bench (mean@3) 57.00 41.20 53.60 63.30 47.80
τ²-Bench (mean@3) 73.00 53.40 69.40 80.00 61.58
τ³-Bench Banking (mean@3) 9.00 4.80 6.20 8.60 8.93
CoworkBench (Pi) 59.48 5.80 39.00 57.00 25.00
Toolathlon 39.00 18.90 40.00 42.00 1.41
SkillsBench (without skills) 8.62 1.20 9.00 14.00 —
SkillsBench (with skills) 23.80 3.70 25.00 35.00 —
JobBench 23.28 2.50 9.10 17.10 —

Instant

Code

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
LiveCodeBench v6 52.00 49.00 57.63 46.45 56.20
SWE-bench Verified 70.80 34.00 57.80 63.40 39.70
SWE-bench Multilingual 61.67 7.00 54.30 59.70 21.60
Terminal-Bench 2.0 38.20 5.60* 36.00 44.90* 12.94
Terminal-Bench 2.1 39.33 7.90 46.10 46.10* —

General

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
IFBench (prompt-level loose) 48.00 35.00 41.30 37.30 43.66
JSONSchemaBench 86.00 85.00 91.00 92.10 83.94
StructEval Text 87.00 72.00 83.80 82.40 74.35
POLLUX — 70.00 65.10 — 74.25
GraphWalks 26.00 7.00 56.20 55.60 19.99
Natural Plan 45.00 21.00 44.10 44.60 66.42
NIH Complex 92.00 82.00 96.60 99.99 97.11
AA-LCR 54.00 10.70 52.70 52.30 27.60

STEM

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
GPQA Diamond 55.00 58.00 78.30 81.80 61.11
HMMT (pass@8) 67.00 73.30 71.70 80.00 55.00
HMMT (mean@8) — 46.90 49.80 56.70 —
AIME 2025 (pass@8) 73.00 67.00 93.30 90.00 93.00
AIME 2025 (mean@8) 39.00 50.00 76.30 72.50 68.00
AIME 2026 (pass@8) 80.00 77.00 93.30 93.30 83.00
AIME 2026 (mean@8) 57.00 55.00 71.30 76.30 67.00
IMO-AnswerBench 35.00 44.00 59.20 56.00 32.00
HLE (text only) 4.00 4.00 12.20 12.90 4.00

Agentic

Benchmark GigaChat 4 37B GigaChat 3.5 37B Qwen3.5-35B-A3B Qwen3.6-35B-A3B GigaChat 3.5 Ultra 432B
BFCL (overall accuracy) 49.00 37.00 57.80 55.00 51.57
τ³-Bench (mean@3) 47.30 40.80 60.20 59.40 50.04
τ²-Bench (mean@3) 60.00 54.00 78.50 78.00 68.71
τ³-Bench Banking (mean@3) 10.00 2.10* 5.50 3.80 5.15

Evaluation Notes

IFBench uses prompt-level loose scoring. NL2Repo entries report mean score / pass rate, in that order. HLE uses the text subset.

Usage

llama.cpp

The GGUF release includes a recurrent MTP drafter for each weight format. The benchmarks below use the November 20, 2026 GGUF release and llama.cpp commit 0541e50e2f. MTP-3 allows up to three draft tokens per verification step.

GigaChat 4 support in llama.cpp

Speed

We evaluate single-stream greedy decoding using a 1,024-token prompt constructed by repeating and truncating the same 37-token ShareGPT sequence. EOS is ignored to reach the specified output length. Each configuration is warmed up and measured three times.

Decode throughput is measured from the first generated token to the end of the output stream. Draft acceptance rate is the fraction of proposed tokens accepted by the target model. Both columns report the median of three repeats. Speedup compares median throughputs for the same format and hardware.

ShareGPT dataset revision

GPU · 8 × NVIDIA H100 80 GB, one node

192 generated tokens per request, full layer offload (-sm layer -ngl 99), and a Q8_0 target KV cache.

GGUF format Config Draft acceptance rate Decode tok/s Speedup
Q4_K_M Off — 150.4 1.00×
Q4_K_M MTP-3 0.612 213.3 1.42×
Q6_K Off — 144.3 1.00×
Q6_K MTP-3 0.509 177.1 1.23×
Q8_0 Off — 139.8 1.00×
Q8_0 MTP-3 0.585 188.9 1.35×
BF16 Off — 114.4 1.00×
BF16 MTP-3 0.579 159.2 1.39×
CPU · 2 × AMD EPYC 9474F, 64 threads

128 generated tokens per request, CPU-only build, -t 64 -tb 64, and a Q8_0 target KV cache. The job had a 1.42 TiB RAM limit.

GGUF format Config Draft acceptance rate Decode tok/s Speedup
Q4_K_M Off — 16.8 1.00×
Q4_K_M MTP-3 0.596 25.0 1.49×
Q6_K Off — 17.7 1.00×
Q6_K MTP-3 0.638 26.6 1.50×
Q8_0 Off — 15.7 1.00×
Q8_0 MTP-3 0.596 24.2 1.54×
BF16 Off — 14.1 1.00×
BF16 MTP-3 0.580 19.6 1.39×
Q4_K_M batch scaling on GPU

A separate benchmark measured batch scaling on the same 8 × H100 configuration, using 1,024 input tokens and 512 generated tokens per request. Batch size 1 used a single fixed prompt, while batch size 16 used 16 distinct prompts. Decode throughput (tok/s) is aggregated across the batch and excludes prefill. Acceptance length is the average number of generated tokens per verification step.

Batch Off decode tok/s MTP-3 decode tok/s Speedup MTP-3 accept length
1 149.3 217.5 1.46× 2.96 / 4
16 676.6 635.2 0.94× 3.37 / 4

Accuracy and draft acceptance on chat tasks

Each row uses the same 200 examples with drafting off and on. GSM8K uses 5-shot chat. MMLU uses 0-shot chat stratified across 57 subjects. Both use temperature 1.0, top_p 0.95, an 8,192-token output limit, and concurrency 16 on the 8-GPU Q4_K_M configuration.

Task Mode Accuracy · Off Accuracy · MTP-3 MTP-3 draft acceptance rate
GSM8K Instant 0.920 0.920 0.684
GSM8K Reasoning 0.950 0.940 0.675
MMLU Instant 0.845 0.835 0.644
MMLU Reasoning 0.890 0.895 0.597

Usage

Get llama.cpp and the weights

Fetch the GigaChat4 PR and check out the revision used for the benchmarks. Run the download, build, and server commands in the same shell from the llama.cpp directory so the server can use the MODEL path set below.

git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
git fetch origin pull/32767/head:pr-32767
git checkout pr-32767

Q4_K_M is a single 23.3 GB (21.7 GiB) GGUF file. If the repository requires authentication, run hf auth login with an account that has access before downloading.

Hugging Face CLI documentation

python -m pip install -U huggingface_hub
hf download ai-sage/GigaChat4-37B-A4B-GGUF \
  --include "GigaChat4-37B-A4B-Q4_K_M/*.gguf" \
  --local-dir ./gguf

MODEL=./gguf/GigaChat4-37B-A4B-Q4_K_M/GigaChat4-37B-A4B-Q4_K_M.gguf
GPU server

Build with CUDA and start the server with four slots and 32,768 tokens of total context. The single-stream benchmark used -c 8192 -np 1.

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON -DLLAMA_USE_PREBUILT_UI=OFF
cmake --build build --config Release --parallel --target llama-server

./build/bin/llama-server \
  -m "$MODEL" --alias gigachat4 \
  -sm layer -ngl 99 --fit off -fa on \
  -c 32768 -np 4 -ctk q8_0 -ctv q8_0 \
  --jinja --reasoning-format deepseek \
  --spec-type draft-mtp --spec-draft-n-max 3 \
  --host 127.0.0.1 --port 8080
CPU server

Run the CPU build on a host with RAM for the weights, KV cache, and compute buffers. This example uses 64 threads and a single 8,192-token slot.

cmake -S . -B build-cpu -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=OFF -DLLAMA_USE_PREBUILT_UI=OFF
cmake --build build-cpu --config Release --parallel --target llama-server

./build-cpu/bin/llama-server \
  -m "$MODEL" --alias gigachat4 \
  -ngl 0 -t 64 -tb 64 -fa on \
  -c 8192 -np 1 -ctk q8_0 -ctv q8_0 \
  --jinja --reasoning-format deepseek \
  --spec-type draft-mtp --spec-draft-n-max 3 \
  --host 127.0.0.1 --port 8080

On Intel AMX hosts that encounter GGML_ASSERT(*cur_backend_id != -1) while loading quantized weights, add -DGGML_NATIVE=OFF to the CPU configure command and rebuild to use the portable x86 kernels.

Both commands use the MTP head included in the GGUF. For the Off configuration, replace --spec-type draft-mtp --spec-draft-n-max 3 with --spec-type none. For clients on another host, change --host 127.0.0.1 to --host 0.0.0.0.

Tool-calling request

Run this from a second terminal. The model returns a call to get_weather. Your application runs the function and sends its result back with role: "tool" and the matching tool_call_id. GigaChat4 uses chat_template_kwargs.reasoning to select instant mode (false) or reasoning mode (true).

curl -sS http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "gigachat4",
  "temperature": 0,
  "max_tokens": 256,
  "chat_template_kwargs": { "reasoning": false },
  "messages": [
    { "role": "system", "content": "To get the weather, call get_weather. Pass the city name in English." },
    { "role": "user", "content": "What is the current weather in London?" }
  ],
  "tools": [{
    "type": "function",
    "function": {
      "name": "get_weather",
      "description": "Get the current weather in a city.",
      "parameters": {
        "type": "object",
        "properties": { "city": { "type": "string" } },
        "required": ["city"],
        "additionalProperties": false
      }
    }
  }],
  "tool_choice": "auto"
}
JSON

License

GigaChat 4 37B-A4B is released under the Noncommercial License for individuals 1.0.

Downloads last month
33,384
GGUF
Model size
38B params
Architecture
gigachat4
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ai-sage/GigaChat4-37B-A4B-GGUF

Quantized
(12)
this model

Space using ai-sage/GigaChat4-37B-A4B-GGUF 1

Collection including ai-sage/GigaChat4-37B-A4B-GGUF