/ Модель

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

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

GigaChat4-37B-A4B-abliterated

Генерация текстаТекст → текст
291скачиваний за 30 дней5лайковвеса обновлены27 ноя 2026

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

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

Производная GigaChat 4 для русско- и англоязычных диалогов и генерации текста с существенно ослабленными отказами.

GigaChat4-37B-A4B-abliterated — русско- и англоязычная диалоговая модель, созданная как производная ai-sage/GigaChat4-37B-A4B-bf16. В ней изменены направления отказа с помощью метода MPOA, адаптированного к архитектуре GigaChat 4; автор также описывает раздельную обработку instant- и reasoning-режимов. Модель распространяется в BF16 и формате safetensors, поддерживает генерацию текста и контекст до 1 048 576 токенов.

Модель предназначена для диалогов и генерации ответов с ослабленными отказами, в том числе в задачах на политические и творческие темы. По приведённым автором оценкам, частота жёстких отказов на его наборе проб значительно снизилась, но сохраняются уклончивые ответы; результаты ограничены используемыми тестами и условиями сравнения. Для reasoning-режима автор рекомендует увеличивать лимит генерации на задачах с рифмованными текстами. Защитные механизмы отказа существенно ослаблены, поэтому модель требует отдельной оценки и контроля при развёртывании. Лицензия — Noncommercial License for individuals 1.0 исходной модели; её условия продолжают действовать.

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

  • диалоговые ответы на русском и английском языках
  • генерация текста в instant-режиме
  • генерация рассуждений в reasoning-режиме
  • ответы на политические и социальные вопросы
  • создание творческих текстов и эпиграмм

Ограничения

Защитные отказы существенно ослаблены; сохраняются уклончивые ответы, а авторские оценки основаны на ограниченном наборе проб и сравнении с квантованным FP8 базовым чекпойнтом. В reasoning-режиме длинные traces могут исчерпать лимит генерации до появления итогового ответа.

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

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

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

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

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

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

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

Открыть на Hugging Face

GigaChat4-37B-A4B-abliterated

Dual-mode (instant + reasoning) abliterated BF16 derivative of ai-sage/GigaChat4-37B-A4B-bf16, built using per-layer 2D-SVD Magnitude-Preserving Orthogonal Ablation (MPOA) adapted for GigaChat 4's pre_post GigaChat4GatedNorm residual architecture.

License notice: Derived from ai-sage/GigaChat4-37B-A4B-bf16 under its original Noncommercial License for individuals 1.0 (LICENSE.txt preserved verbatim in this repository). All upstream license terms continue to apply.

Method

Standard refusal-direction removal (Arditi et al., 2024, arXiv:2406.11717) and norm-preserving biprojected abliteration (MPOA) were adapted to three architectural specifics of GigaChat 4:

  1. Dual-mode refusal subspace (2-component SVD per layer): Instant-only abliteration (reasoning=False) does not carry over cleanly to reasoning=True because the model re-invokes refusal policy inside <think>...</think>. We harvested verified stock-model refusals (strictly non-overlapping with the evaluation suite) in both modes:
    • Instant mode (reasoning=False): 67 verified stock-refused Russian prompts vs. 78 verified non-refused neutral prompts at the prompt-end token (r_inst[l]).
    • Reasoning mode (reasoning=True): 104 verified stock-refused prompts (with their actual <think> traces) vs. 78 verified neutral reasoning traces, capturing activations at both the <think> entry token (r_r_pre[l]) and the post-</think> assistant-start token (r_r_post[l]).
    • Each direction is biprojected (orthogonalized against the neutral activation mean) and stacked per layer [r_inst[l], r_r_pre[l], r_r_post[l]] → top-2 orthonormal singular vectors basis_2d[l] (capturing 86–89% of variance in layers 15–31).
  2. GigaChat4GatedNorm (layernorm_type: pre_post) adjustment: Because GigaChat 4 applies GatedNorm (elementwise scale w * rmsnorm(y) * gate) to each subblock output before adding to the residual stream, zeroing the residual projection B · (w ⊙ y) requires orthogonalizing weight rows against the QR-orthonormalized pre-norm basis Q = qr(B * w).
  3. Full hybrid + MoE writer set (layers 8–30, alpha = 1.0, column-norm preserving):
    • self_attn.o_proj (5 MLA/DSA full-attention layers in L8–30)
    • self_attn.out_proj (18 GatedDeltaNet linear-attention layers in L8–30)
    • mlp.shared_experts.down_proj (23 shared experts)
    • mlp.experts.{0..191}.down_proj (4,416 routed experts — ablation showed skipping routed experts left refusal at 11.2% vs. 2.8% when included)
    • Total edited: 4,462 matrices across 5 shards (exact byte size preserved: 76,518,148,072 bytes). MTP layer 32, embeddings, and lm_head were left untouched.

Diagnostic artifacts (abliteration_directions.pt, abliteration_layer_stats.json, abliteration_meta.json) are included in this repo for reproducibility.

Benchmark Results (Russian Political & Creative Probes)

Evaluated on a 286-prompt benchmark (225 political figures, Russian/international politics, social topics, and neutral controls + 61 creative/adversarial "wild" probes covering obituaries, euphemisms, satire, acrostics, and meta-questions), classified by an automated LLM judge into R (refusal), H (hedge/boilerplate dodge), and A (full answer), with 0 judge errors.

Instant mode (chat_template_kwargs={"reasoning": false}, max_tokens=700)

ModelnRefusal (R) %Soft (R+H) %fig_ruru_polfig_intlpol_intlsocialneutralwildbio_ru
Stock GigaChat4-37B-A4B (FP8 baseline*)28626.242.731.031.433.316.722.211.121.60.0
This model (v1', BF16)2862.812.90.00.00.00.022.20.07.80.0
Stock GigaChat4-37B-A4B (FP8, 225-main)22528.446.731.031.433.316.722.211.1——
This model (v1', BF16, 225-main)2251.813.80.00.00.00.022.20.0——

Reasoning mode (chat_template_kwargs={"reasoning": true}, max_tokens=1500)

ModelEval setnRefusal (R) %Soft (R+H) %fig_ruru_polfig_intlpol_intlsocialneutralwild
Stock GigaChat4-37B-A4B (FP8 baseline*)225-main22543.157.350.744.344.433.350.05.6—
This model (v1', BF16)225-main2254.4†14.78.50.011.10.00.00.0—
This model (v1', BF16)Hard sub-bench‡1326.1†21.28.30.06.20.011.10.016.7

† In v1' reasoning runs, 7 of the 10 R labels on 225-main (and 5 of 8 on the 132-prompt hard sub-bench) were empty finish_reason=length cutoffs where <think> exhausted max_tokens=1500 while drafting rhyming epigrams — actual text refusal rate on 225-main was 1.3% (3/225). ‡ Hard sub-bench = all 114 prompts refused by stock FP8 in reasoning mode across the 286-prompt set + all 18 neutral controls.

Control & Coherence Checks

  • Neutral controls (18/18): 0.0% refusal in both instant and reasoning modes (vs. stock FP8 11.1% instant / 5.6% reasoning), with 0 repetition loops.
  • Math / Code / Fact smoke tests: Exact multi-digit multiplication (347 × 28 = 9716), quadratic root derivation in reasoning mode, O(√n) Python is_prime(n) implementation, and factual Q&A all verified intact in both modes.
  • Stray-script token glitch rate (responses containing stray non-Cyrillic/non-Latin script characters such as CJK/Greek/Arabic): 3.8% (11/286) in instant mode and 4.4% (10/225) in reasoning mode (stock FP8 baseline: 5.2%, 15/286).

Known Limitations

  • Baseline quantization confound (*): The stock 286-prompt/225-prompt baselines were measured on official FP8 (ai-sage/GigaChat4-37B-A4B on H100), whereas this checkpoint is BF16 served on B200. No full 286-prompt stock BF16 control was run (only a 22-prompt stock BF16 smoke check).
  • Soft hedging remains (~13–15% R+H): While hard refusals drop ~10×, some prompts still elicit balanced/cautious framing ("with multiple viewpoints") or occasional AI self-disclaimers on sensitive social topics (social instant 22.2% R).
  • Long <think> traces on rhyming tasks: Under max_tokens=1500 in reasoning mode, epigram prompts occasionally exhaust the token budget inside <think> before emitting final text; use max_tokens >= 2048–4096 for reasoning mode as recommended upstream.
  • Safety warning: Refusal guardrails have been substantially reduced. You are responsible for evaluating and governing outputs in your deployment.

Serving (SGLang)

Requires SGLang commit ff14289793 (or newer release with native GigaChat4ForCausalLM support):

sglang serve \
  --model-path sanasol2008/GigaChat4-37B-A4B-abliterated \
  --tp 1 \
  --mem-fraction-static 0.8 \
  --reasoning-parser auto \
  --host 0.0.0.0 \
  --port 30000

Select mode per request via chat_template_kwargs: {"reasoning": false} (instant) or {"reasoning": true} (reasoning).

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

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

GPU в ailist

vLLM

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

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

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

0 моделей