/ Модель

Характеристики

Контекст
1 048 576 токенов
Параметры
3,2 млрд
Размер весов
76,5 ГБ
Лицензия
Своя лицензия
Архитектура
gigachat4 · dense
Базовая модель
GigaChat4-37B-A4B-base
Опубликована
20 ноя 2026

GigaChat4-37B-A4B-bf16

Генерация текстаТекст → текст15 профессий

Инструкционно-донастроенная модель GigaChat 4 для русско- и англоязычных диалогов, программирования, рассуждений и работы с длинным контекстом.

547скачиваний за 30 дней14лайковвеса обновлены27 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

GigaChat 4 37B-A4B-bf16 — инструкция-донастроенная текстовая модель семейства GigaChat 4 в формате BF16. В README указаны 37 млрд параметров всего и 4 млрд активных параметров на токен; метаданные каталога приводят 3,2 млрд параметров. Архитектура сочетает Mixture-of-Experts, Gated DeltaNet и разреженное внимание DeepSeek Sparse Attention. Модель поддерживает контекст до 1 048 576 токенов и русский и английский языки.

Модель предназначена для диалогов, рассуждений, программирования, математических задач, ответов по длинным документам и агентных сценариев с вызовом инструментов и структурированным выводом. В одном чекпойнте доступны режимы быстрого ответа и рассуждения; также заявлена поддержка спекулятивного декодирования. Указанный в метаданных pipeline — text-generation.

В README приведены результаты тестов по программированию, общим задачам и STEM, однако качество может различаться в зависимости от запроса и сценария. Репозиторий содержит веса BF16; лицензия в метаданных обозначена как other, поэтому условия использования следует сверить с лицензией и материалами карточки модели.

Сценарии применения

  • ответы на вопросы по длинным документам
  • генерация и исправление программного кода
  • решение математических задач с рассуждениями
  • диалоговый помощник на русском и английском
  • вызов инструментов в агентных сценариях
  • формирование ответов по заданной JSON-схеме

Ограничения

Лицензия указана как other, поэтому перед использованием необходимо проверить её конкретные условия. Несмотря на заявленный контекст до миллиона токенов, качество ответов и извлечения информации из длинных документов может зависеть от задачи.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

GigaChat 4 37B-A4B

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 the final BF16 instruction-tuned model, which supports both instant and reasoning modes.

Model variants

RepositoryWeightsTraining stage
GigaChat4-37B-A4BFP8Instruction-tuned
GigaChat4-37B-A4B-GGUFGGUFInstruction-tuned
GigaChat4-37B-A4B-bf16BF16Instruction-tuned
GigaChat4-37B-A4B-baseBF16Base
GigaChat4-37B-A4B-checkpointsBF16Base, 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.

PropertyValue
Total / active parameters per token37B / 4B
Decoder layers / hidden size32 / 2,560
Linear-attention / sparse-attention layers24 / 8
Routed experts / active routed experts / shared experts192 / 8 / 1
Initial decoder layers with dense FFNs1
Maximum context length1,048,576 tokens
DSA tokens selected per query2,048
Built-in MTP layers1, 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

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
LiveCodeBench v685.0064.0069.0065.0085.40
SWE-bench Verified70.8032.4060.6067.8064.70
SWE-bench Multilingual61.6726.0057.3060.70—
NL2Repo (mean score / pass rate)14.89 / 25.033.20 / 3.4011.40 / 5.7030.30 / 17.705.00 / —
Terminal-Bench 2.038.2022.5033.7048.3030.30
Terminal-Bench 2.139.3322.5034.8049.40—

General

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
IFBench (prompt-level loose)75.0061.0064.3058.0077.00
JSONSchemaBench96.0087.0094.2042.0093.01
StructEval Text86.0075.0078.9085.6085.00
POLLUX—73.0068.6071.0075.50
GraphWalks63.0013.0060.5046.0038.00
Natural Plan92.0051.0075.2076.0080.19
NIH Complex99.0094.0096.9067.0099.16
AA-LCR54.0018.7066.0060.7025.00

STEM

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
GPQA Diamond70.0066.0085.0080.0082.30
HMMT (pass@8)95.0086.7087.0083.0093.00
HMMT (mean@8)87.0061.5074.0070.00—
AIME 2025 (pass@8)93.0080.0093.0093.0093.00
AIME 2025 (mean@8)88.0073.0088.0092.0089.00
AIME 2026 (pass@8)93.0093.0097.0097.0097.00
AIME 2026 (mean@8)92.0078.0088.0087.0091.00
IMO-AnswerBench76.0060.0074.0076.0073.00
HLE (text only)9.006.0019.0020.0013.00

Agentic

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
BFCL (overall accuracy)72.0063.0069.0067.0058.59
τ³-Bench (mean@3)57.0041.2053.6063.3047.80
τ²-Bench (mean@3)73.0053.4069.4080.0061.58
τ³-Bench Banking (mean@3)9.004.806.208.608.93
CoworkBench (Pi)59.485.8039.0057.0025.00
Toolathlon39.0018.9040.0042.001.41
SkillsBench (without skills)8.621.209.0014.00—
SkillsBench (with skills)23.803.7025.0035.00—
JobBench23.282.509.1017.10—

Instant

Code

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
LiveCodeBench v652.0049.0057.6346.4556.20
SWE-bench Verified70.8034.0057.8063.4039.70
SWE-bench Multilingual61.677.0054.3059.7021.60
Terminal-Bench 2.038.205.60*36.0044.90*12.94
Terminal-Bench 2.139.337.9046.1046.10*—

General

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
IFBench (prompt-level loose)48.0035.0041.3037.3043.66
JSONSchemaBench86.0085.0091.0092.1083.94
StructEval Text87.0072.0083.8082.4074.35
POLLUX—70.0065.10—74.25
GraphWalks26.007.0056.2055.6019.99
Natural Plan45.0021.0044.1044.6066.42
NIH Complex92.0082.0096.6099.9997.11
AA-LCR54.0010.7052.7052.3027.60

STEM

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
GPQA Diamond55.0058.0078.3081.8061.11
HMMT (pass@8)67.0073.3071.7080.0055.00
HMMT (mean@8)—46.9049.8056.70—
AIME 2025 (pass@8)73.0067.0093.3090.0093.00
AIME 2025 (mean@8)39.0050.0076.3072.5068.00
AIME 2026 (pass@8)80.0077.0093.3093.3083.00
AIME 2026 (mean@8)57.0055.0071.3076.3067.00
IMO-AnswerBench35.0044.0059.2056.0032.00
HLE (text only)4.004.0012.2012.904.00

Agentic

BenchmarkGigaChat 4 37BGigaChat 3.5 37BQwen3.5-35B-A3BQwen3.6-35B-A3BGigaChat 3.5 Ultra 432B
BFCL (overall accuracy)49.0037.0057.8055.0051.57
τ³-Bench (mean@3)47.3040.8060.2059.4050.04
τ²-Bench (mean@3)60.0054.0078.5078.0068.71
τ³-Bench Banking (mean@3)10.002.10*5.503.805.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

SGLang

GigaChat 4 is natively supported in SGLang, including recurrent MTP and DFlash2 speculative decoding, per-request instant/reasoning mode selection, and tool calling.

For detailed deployment instructions, hardware configurations, API examples, and performance benchmarks, see the GigaChat 4 SGLang cookbook.

The deployment recipe below was tested on SGLang commit ff14289793.

Installation

python3 -m pip install \
  "sglang @ git+https://github.com/sgl-project/sglang.git@ff142897935ec6ede004dea8439d6111110bd446#subdirectory=python"

Deployment

The BF16 model can be deployed on a single node with two H100 80GB GPUs (TP2). The model weights require approximately 76.5 GB of GPU memory, with additional memory needed for attention caches, recurrent states, and activations.

sglang serve \
  --model-path ai-sage/GigaChat4-37B-A4B-bf16 \
  --tp 2 \
  --mem-fraction-static 0.8 \
  --max-running-requests 64 \
  --cuda-graph-max-bs-decode 64 \
  --reasoning-parser auto \
  --tool-call-parser auto \
  --speculative-algorithm EAGLE \
  --speculative-num-steps 3 \
  --speculative-eagle-topk 1 \
  --speculative-num-draft-tokens 4 \
  --host 0.0.0.0 \
  --port 30000

This configuration enables recurrent MTP speculative decoding using the built-in draft head. For DFlash2 deployment and alternative serving configurations, refer to the cookbook.

Instant and reasoning modes

Both modes are available through the same OpenAI-compatible API. Set chat_template_kwargs.reasoning to false for instant mode or true for reasoning mode.

curl http://localhost:30000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "ai-sage/GigaChat4-37B-A4B-bf16",
    "messages": [
      {"role": "user", "content": "What is 17 times 24?"}
    ],
    "temperature": 1.0,
    "top_p": 1.0,
    "repetition_penalty": 1.0,
    "max_tokens": 4096,
    "chat_template_kwargs": {"reasoning": false}
  }'

The chat template enables reasoning by default when the argument is omitted. With the reasoning parser enabled, the response separates thinking into message.reasoning_content and the final answer into message.content.

For tool calling, multi-turn conversations, streaming, and advanced inference settings, see the SGLang cookbook.

vLLM

GigaChat 4 supports inference with vLLM, including recurrent MTP and DFlash2 speculative decoding, per-request instant/reasoning mode selection, and tool calling.

The following example uses vLLM commit c0c9083 from the GigaChat 4 integration PR.

Installation

git clone https://github.com/vllm-project/vllm.git
cd vllm
git fetch origin c0c90837262bf3059b3d7b20bf120ffbe197a785
git checkout --detach c0c90837262bf3059b3d7b20bf120ffbe197a785

python3 -m pip install --upgrade pip
VLLM_USE_PRECOMPILED=1 python3 -m pip install -e .

Deployment

The example below uses a single node with two H100 80GB GPUs (TP2) and recurrent MTP speculative decoding enabled.

vllm serve ai-sage/GigaChat4-37B-A4B-bf16 \
  --tensor-parallel-size 2 \
  --enable-expert-parallel \
  --no-numa-bind \
  --gpu-memory-utilization 0.90 \
  --max-num-seqs 64 \
  --compilation-config '{"max_decode_cudagraph_capture_requests": 64}' \
  --tool-call-parser gigachat4 \
  --enable-auto-tool-choice \
  --reasoning-parser gigachat4 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":3}' \
  --host 0.0.0.0 \
  --port 8000

Instant and reasoning modes

Both modes are available through the same OpenAI-compatible API. Set chat_template_kwargs.reasoning to false for instant mode or true for reasoning mode.

curl http://localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "ai-sage/GigaChat4-37B-A4B-bf16",
    "messages": [
      {"role": "user", "content": "Prove that the sum of the first n odd positive integers is n**2. Write a proof in the style of Eminem’s lyrics."}
    ],
    "max_tokens": 8192,
    "temperature": 1.0,
    "top_p": 1.0,
    "chat_template_kwargs": {"reasoning": true}
  }'

The chat template enables reasoning by default when the argument is omitted. With the reasoning parser enabled, the response separates thinking into message.reasoning and the final answer into message.content. The max_tokens limit covers both.

Tool calling

The following example demonstrates tool calling in reasoning mode using the OpenAI-compatible Chat Completions API.

curl http://localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "ai-sage/GigaChat4-37B-A4B-bf16",
    "messages": [
      {"role": "user", "content": "What is the weather in London right now?"}
    ],
    "tools": [
      {
        "type": "function",
        "function": {
          "name": "get_weather",
          "description": "Get the current weather in a city",
          "parameters": {
            "type": "object",
            "properties": {
              "city": {"type": "string"}
            },
            "required": ["city"]
          }
        }
      }
    ],
    "tool_choice": "auto",
    "max_tokens": 2000,
    "temperature": 0.6,
    "chat_template_kwargs": {"reasoning": true}
  }'

When the model requests a tool, the response contains the function name and arguments in message.tool_calls. Execute the function in your application, append the assistant message and a tool message with the matching tool_call_id, then request the final answer.

Recommended agent harnesses

We recommend Pi for agentic tasks with GigaChat 4 37B-A4B. Codex CLI and DeepSeek Harness are alternatives for interactive terminal work. You can use each harness’s standard prompts and tools without fine-tuning the checkpoint for that harness.

We verified interactive shell tool calls on an internal checkpoint with Pi 1.6.0, Codex CLI 0.171.0, and DeepSeek Harness 0.2.2-rc.5. Pi and DeepSeek Harness connected directly through Chat Completions. Codex used a Responses-to-Chat-Completions gateway.

The examples below use the SGLang base URL http://127.0.0.1:30000/v1 and the BF16 model ID ai-sage/GigaChat4-37B-A4B-bf16. For the vLLM deployment above, the base URL is http://127.0.0.1:8000/v1. If you set a custom served name, use the model ID returned by GET /v1/models.

HarnessAPI used by the harnessRequired endpoint
PiOpenAI Chat CompletionsPOST /v1/chat/completions
Codex CLIOpenAI ResponsesPOST /v1/responses
DeepSeek HarnessOpenAI Chat CompletionsPOST /v1/chat/completions

Pi

Add gigachat to the providers object in ~/.pi/agent/models.json.

{
  "providers": {
    "gigachat": {
      "baseUrl": "http://127.0.0.1:30000/v1",
      "api": "openai-completions",
      "apiKey": "$GIGACHAT_API_KEY",
      "models": [
        { "id": "ai-sage/GigaChat4-37B-A4B-bf16" }
      ]
    }
  }
}

Pi reads GIGACHAT_API_KEY from the environment. Export your endpoint’s key, or use export GIGACHAT_API_KEY=local for an unauthenticated local server. Run pi from your project directory and select GigaChat 4 37B-A4B with /model.

Codex CLI

Codex requires a Responses API endpoint that can stream tool calls and accept tool results on subsequent requests. Connect directly if your deployment supports the tool types sent by your Codex version. If it serves only Chat Completions or rejects those tool types, set base_url to the API root of a compatible Responses-to-Chat-Completions gateway.

For Codex CLI 0.134.0 and later, save this profile as ~/.codex/gigachat.config.toml.

model = "ai-sage/GigaChat4-37B-A4B-bf16"
model_provider = "gigachat"

[model_providers.gigachat]
name = "GigaChat 4"
base_url = "http://127.0.0.1:30000/v1"
wire_api = "responses"

For an authenticated endpoint, add env_key = "GIGACHAT_API_KEY" under [model_providers.gigachat] and export the key. If your gateway rejects the built-in web_search tool, add web_search = "disabled" at the top level, above [model_providers.gigachat]. We used this setting with our gateway.

Put both sections in ~/.codex/config.toml.

[model_providers.gigachat]
name = "GigaChat 4"
base_url = "http://127.0.0.1:30000/v1"
wire_api = "responses"

[profiles.gigachat]
model = "ai-sage/GigaChat4-37B-A4B-bf16"
model_provider = "gigachat"

When upgrading, move the profile settings into ~/.codex/gigachat.config.toml, then remove the old [profiles.gigachat] section and any top-level profile = "gigachat" setting from the base file.

Start an interactive session from your project directory.

codex --profile gigachat

DeepSeek Harness

For the interactive terminal UI, install the tested launcher and plugin versions.

npm install -g @deepseek-ai/dsh@0.2.2-rc.5
dsh plugin --profile tui add @deepseek-harness-tui/dsh-tui@0.20.2

Save the following as gigachat-dsh.yml. The interactive TUI and the headless CLI use the same configuration.

- id: llm-pi-ai
  config:
    providers:
      gigachat:
        api: openai-completions
        baseURL: http://127.0.0.1:30000/v1
        apiKeyEnv: GIGACHAT_API_KEY
        models:
          - id: ai-sage/GigaChat4-37B-A4B-bf16

- id: agent-default-model
  config:
    provider: gigachat
    model: ai-sage/GigaChat4-37B-A4B-bf16

Export GIGACHAT_API_KEY with your endpoint’s key, or set it to local for an unauthenticated server. Launch the TUI from the directory containing the configuration.

dsh --profile tui --patch ./gigachat-dsh.yml

Verify the connection and tool calling

To check that the harness can reach the model, execute a tool, and return its output to the model, ask this question in an interactive session:

How much RAM is available on this machine right now?

The model chooses how to inspect memory. Look for a shell tool call in the session and check that the answer matches the available RAM in the command output.

You can run the same check from a script with the DeepSeek Harness headless CLI.

dsh --profile headless --patch ./gigachat-dsh.yml \
  'How much RAM is available on this machine right now?'

License

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

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

vLLM

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
GigaChat4ForCausalLM
Ревизия весов
c1b1643

0 моделей