/ Модель

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

Контекст
1 048 576 токенов
Параметры
39,4 млрд
Лицензия
MIT
Архитектура
gigachat4 · dense
Базовая модель
GigaChat4-708B-A41B-base
Опубликована
20 ноя 2026

GigaChat4-708B-A41B-bf16

Генерация текстаТекст → текст15 профессий
400скачиваний за 30 дней7лайковвеса обновлены27 ноя 2026

Описание модели

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

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

GigaChat 4 708B A41B BF16 — многоязычная инструктивно дообученная языковая модель семейства GigaChat от разработчиков GigaChat. Она предназначена для диалогов, следования инструкциям, пошаговых рассуждений, программирования, математических задач, вызова инструментов, структурированного вывода и ответов по длинным документам. Модель поддерживает режимы быстрого ответа и рассуждения в одном чекпойнте.

Архитектура — гибридная MoE-модель с 708 млрд параметров всего и 41 млрд активных параметров на токен. Она сочетает слои Gated DeltaNet и DeepSeek Sparse Attention; контекстное окно — до 1 048 576 токенов. Репозиторий содержит веса BF16 в формате safetensors. Заявлена поддержка русского и английского языков.

Модель подходит для сложных диалоговых и агентных сценариев, генерации и анализа кода, структурированных ответов и работы с длинным контекстом. Её крупный размер предъявляет высокие требования к вычислительным ресурсам; пропускная способность и качество зависят от аппаратного обеспечения и настроек запуска. Лицензия — MIT.

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

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

Ограничения

Модель содержит 708 млрд параметров, поэтому для её запуска требуются значительные вычислительные ресурсы. Заявленные возможности и результаты бенчмарков приведены в карточке модели и могут отличаться в конкретных сценариях использования.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

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

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

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

Открыть на Hugging Face

GigaChat 4

GigaChat 4 is the flagship hybrid model of the GigaChat family. It combines a Mixture-of-Experts (MoE) architecture with DeepSeek Sparse Attention (DSA) and Gated DeltaNet (GDN) with 708B total parameters and 41B 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-708B-A41BFP8Instruction-tuned
GigaChat4-708B-A41B-GGUFGGUFInstruction-tuned
GigaChat4-708B-A41B-bf16BF16Instruction-tuned
GigaChat4-708B-A41B-baseBF16Base
GigaChat4-708B-A41B-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 token708B / 41B
Decoder layers / hidden size64 / 7,168
Linear-attention / sparse-attention layers48 / 16
Routed experts / active routed experts / shared experts256 / 8 / 1
Initial decoder layers with dense FFNs3
Maximum context length1,048,576 tokens
DSA tokens selected per query2,048
Built-in MTP layers1, reused recurrently

Mixture-of-Experts (MoE)

GigaChat 4 has 708B total parameters, with 41B active per token. Each MoE layer combines an attention block with shared and routed experts, selecting 8 of 256 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

Several techniques were introduced to improve training stability at scale:

  • 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.

Muon was used for optimization during this stage. The resulting model supports both instant and reasoning modes within a single checkpoint.

For more details on the model architecture, training methodology, and alignment, see the GigaChat 4 technical report.

Evaluation Results

The following tables summarize GigaChat 4'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 708BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731GLM-5.3DeepSeek 4.1 1017Qwen 3.5 397BMistral 4 Large
LiveCodeBench v688.8285.4090.0082.6790.1486.6484.64
SWE-bench Verified (7-hour timeout)80.8964.7081.8086.6779.4073.0079.60
SWE-bench Multilingual (7-hour timeout)77.00—73.0080.3379.3366.3381.67
DeepSWE (7-hour timeout)35.40—53.1067.2674.343.5461.95
NL2Repo (Cheating adjusted) (7-hour timeout)30.895.0033.1328.695.9018.5927.88
Terminal-Bench 2.0 (7-hour timeout)71.2630.3055.0171.6761.8056.1877.78
Terminal-Bench 2.1 (7-hour timeout)69.66—78.6588.7087.6457.3083.33

General

BenchmarkGigaChat 4 708BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731GLM-5.3DeepSeek 4.1 1017Qwen 3.5 397BMistral 4 Large
IFBench (prompt-level loose)80.3377.0063.0055.6775.6774.3371.00
JSONSchemaBench99.2893.0194.0091.6499.3196.2697.38
StructEval Text87.6485.0088.0085.3685.3685.4886.10
POLLUX81.4675.5070.0077.9678.6474.1673.18
GraphWalks74.9238.0072.7078.3579.0961.0178.45
Natural Plan94.5380.1991.0380.0093.7392.2594.39
NIH Complex100.0099.16—96.8996.5398.7499.75
AA-LCR70.3325.00—66.70—68.0073.67

STEM

BenchmarkGigaChat 4 708BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731GLM-5.3DeepSeek 4.1 1017Qwen 3.5 397BMistral 4 Large
GPQA Diamond82.8382.3091.0090.4090.9185.3587.37
HMMT (pass@8)98.3393.00100.00100.00100.0098.33100.00
HMMT (mean@8)93.75—98.7592.0897.9282.7199.58
AIME 2025 (pass@8)96.6793.0096.67100.00100.0096.67100.00a
AIME 2025 (mean@8)93.3389.0090.0093.12597.6093.7597.08a
AIME 2026 (pass@8)96.6797.00100.00100.00100.00—100.00a
AIME 2026 (mean@8)95.0091.0095.0095.10498.23—99.17a
IMO-AnswerBench82.6973.0089.8088.5092.6983.2278.20
HLE (text only, without tools)23.9113.1637.8039.6243.4228.3630.40

a Evaluated without tools.

Agentic

BenchmarkGigaChat 4 708BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731GLM-5.3DeepSeek 4.1 1017Qwen 3.5 397BMistral 4 Large
BFCL v479.5558.5973.1268.2972.1869.1070.68
τ²-Bench (mean@3)83.3161.5883.3078.7079.4378.8380.60
τ³-Bench Banking (mean@3)18.038.9320.9056.0021.6512.0324.74
CoworkBench83.0025.007873.7977.8264.1159.27
SkillsBench (no skills)33.08—29.8945.4745.4742.0637.00
SkillsBench (skills)58.24—59.8161.54—42.0646.90
HealthAdminBench (success rate / mean)40.74 / 88.27—25.92 / 78.3645.93 / 88.37—41.48 / 86.12—

Instant

Code

BenchmarkGigaChat 4 708BGigaChat 3.1 Ultra 702BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731Qwen 3.5 397B
LiveCodeBench v678.7757.0056.2071.1861.52
SWE-bench Verified (7-hour timeout)80.829.0039.7078.8068.60
SWE-bench Multilingual (7-hour timeout)70.673.3321.6072.3365.00
DeepSWE (7-hour timeout)19.470.000.0028.320.88
NL2Repo (Full score) (7-hour timeout)37.567.90—30.3730.28
Terminal-Bench 2.0 (7-hour timeout)60.479.0012.94—49.44
Terminal-Bench 2.1 (7-hour timeout)66.296.74—70.7756.18

General

BenchmarkGigaChat 4 708BGigaChat 3.1 Ultra 702BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731Qwen 3.5 397B
IFBench (prompt-level loose)50.3329.0043.6640.0053.00
JSONSchemaBench88.3193.9683.9493.7093.45
StructEval Text89.1284.9874.3585.6483.62
POLLUX79.6563.2874.2572.2274.29
GraphWalks48.0215.1619.9951.1656.49
Natural Plan52.1732.0066.4241.5845.72
NIH Complex95.7174.2297.1132.2199.24
AA-LCR48.00—27.60—60.00

STEM

BenchmarkGigaChat 4 708BGigaChat 3.1 Ultra 702BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731Qwen 3.5 397B
GPQA Diamond70.2056.5761.1174.7583.33
HMMT (pass@8)86.6745.0055.0070.0078.33
HMMT (mean@8)63.75——44.3863.33
AIME 2025 (pass@8)93.3373.3393.3086.6793.33
AIME 2025 (mean@8)68.7537.0868.0048.2380.00
AIME 2026 (pass@8)96.6766.6783.3093.3393.333
AIME 2026 (mean@8)80.8339.1767.0060.4286.250
IMO-AnswerBench60.0928.7532.0041.9172.38
Humanity's Last Exam (text only, without tools)8.204.003.9410.4319.83

Agentic

BenchmarkGigaChat 4 708BGigaChat 3.1 Ultra 702BGigaChat 3.5 Ultra 432BDeepSeek V4 Flash 0731Qwen 3.5 397B
BFCL v463.62--51.5765.81—
τ²-Bench (mean@3)66.7533.0068.7177.1378.73
τ³-Bench Banking (mean@3)15.005.505.15—12.71
CoworkBench (Pi)75.00—19.7654.8463.31
SkillsBench (without skills)33.930.51—27.87—
SkillsBench (with skills)54.241.23—54.32—
HealthAdminBench (success rate / mean)40.74 / 86.99——23.73 / 70.1433.33 / —
JobBench33.59——29.6416.85

Evaluation Notes

Agentic benchmarks were evaluated using Harbor-based runners (SWE-bench, Terminal-Bench, NL2Repo, SkillsBench, HealthAdminBench, CoworkBench, and JobBench), except DeepSWE, which used Pier. Runs with a seven-hour timeout are marked in the tables.

NL2Repo reports cheating-adjusted scores, counting cheating attempts as zero. StructEval uses the text subset with rule-based scoring, while HLE includes only text-based questions without tools. HealthAdminBench reports success rate / mean.

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 requires approximately 1.4 TB of GPU memory for weights alone, with additional memory needed for attention caches, recurrent states, and activations. The example below uses four nodes with eight H100 80GB GPUs each (TP32). Download the same model revision on all nodes, set HEAD_IP to the head node's IP address, and set NODE_RANK to 0, 1, 2, or 3 on the respective nodes.

sglang serve \
  --model-path ai-sage/GigaChat4-708B-A41B-bf16 \
  --tp 32 \
  --nnodes 4 \
  --node-rank "$NODE_RANK" \
  --dist-init-addr "${HEAD_IP}:20000" \
  --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-708B-A41B-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 four nodes with eight H100 80GB GPUs each (TP32) and recurrent MTP speculative decoding enabled.

# Set HEAD_IP to the head node's IP address and NODE_RANK to 0, 1, 2 or 3
# Run on both nodes; add --headless on the worker node (NODE_RANK=1, 2 or 3)

vllm serve ai-sage/GigaChat4-708B-A41B-bf16 \
  --tensor-parallel-size 32 \
  --enable-expert-parallel \
  --distributed-executor-backend mp \
  --nnodes 4 \
  --node-rank "$NODE_RANK" \
  --master-addr "$HEAD_IP" \
  --master-port 20000 \
  --no-numa-bind \
  --gpu-memory-utilization 0.90 \
  --max-num-seqs 16 \
  --max-num-batched-tokens 4096 \
  --compilation-config '{"max_cudagraph_capture_size":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-708B-A41B-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-708B-A41B-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. 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. For Codex, we used a Responses-to-Chat-Completions gateway.

Start SGLang as shown above. The examples use the API base URL http://127.0.0.1:30000/v1 and the model ID ai-sage/GigaChat4-708B-A41B-bf16. If you set a custom served name, use the 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-708B-A41B-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 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 SGLang 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-708B-A41B-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-708B-A41B-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-708B-A41B-bf16

- id: agent-default-model
  config:
    provider: gigachat
    model: ai-sage/GigaChat4-708B-A41B-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 is released under the MIT License.

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

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

GPU в ailist

vLLM

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

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

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

0 моделей