Run this model with HF Jobs

Run orcarouter/GigaChat4-37B-A4B-abliterated on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/orcarouter/GigaChat4-37B-A4B-abliterated. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/orcarouter/GigaChat4-37B-A4B-abliterated on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/orcarouter/GigaChat4-37B-A4B-abliterated. Ask me which benchmark to run, then save the scores and the per-example results to a new private dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/orcarouter/GigaChat4-37B-A4B-abliterated. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

OrcaRouter

GigaChat4-37B-A4B-abliterated

🧰 New from Orca — OrcaPod

Run AI pentesting harnesses without installing them. 16 pentesting & red-team harnesses (Strix, PentAGI, PentestGPT, HexStrike AI, RedAmon and more) and 6 coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Goose, Hermes) each run on an isolated cloud worker, in a browser terminal, browser VS Code or their own web UI, pointed at 15 OrcaCyber models from your plan. Verified-domain targets only.

OrcaPod: 16 pentesting harnesses, 6 coding agents and 15 OrcaCyber models

Launch a harness

🛡️ New from Orca — OrcaCyber Zero 1.5

Post-trained for cybersecurity: vulnerability analysis, vulnerability reproduction, red teaming & offensive-security research. 98.01% pass@1 on CyberGym Level 1 · 1M context · function calling · OpenAI-compatible API.

Try it on OrcaRouter

🔓 All hosted cyber and abliterated models as API

Skip the download: OrcaRouter serves its cybersecurity and abliterated models behind one OpenAI-compatible API key.

Browse cyber and abliterated models

ai-sage's GigaChat 4 37B-A4B with its refusal direction removed: a 37B hybrid MoE (about 4B active) with Gated DeltaNet and sparse MLA attention.

~77 GB in bf16 · one 80 GB GPU or two smaller · SGLang (main) or Transformers with the shipped code · noncommercial license

OrcaRouter AI Gateway · X · Discord · GitHub · All Models


GigaChat 4 37B-A4B with the refusal direction removed.

This is the abliterated (refusal-reduced) build of ai-sage/GigaChat4-37B-A4B, made from its BF16 release ai-sage/GigaChat4-37B-A4B-bf16: 38.3B parameters with the MTP drafter (about 37.5B in the decoder), about 4B active per token. Its 32 layers mix Gated DeltaNet (24 layers) with multi-head latent attention and a DSA sparse-attention indexer (layers 3, 7, …, 31); layer 0 is dense and layers 1–31 are MoE with 192 routed experts (8 active) and a shared expert.

One refusal direction (diff-of-means at layer 19 of 32) was removed from every matrix that writes the residual stream: the token embedding, the 8 attention o_proj, the 24 Gated DeltaNet out_proj, the dense layer's down_proj, the 31 shared experts' and all 5,952 routed experts' down_proj. Every sublayer output passes through a gated post-norm before it joins the residual stream, so the edit removes, from each writer, the span of the direction as the post-norm's gain and gate shape it (calibrated on 256 prompts; rank 1–3 per norm).

Refusal is nearly gone and capability holds. Harmful-prompt refusal falls from 93.0% to 6.4% on average (rule-based classifier); MMLU, MMLU-Pro, GSM8K and CMMLU move by +0.3 / −0.8 / −3.3 / −1.2 points.

License: noncommercial, for individuals. These weights inherit the base model's "Noncommercial License for individuals 1.0" (LICENSE.txt): use, modification and redistribution for noncommercial purposes only.


⚠️ Disclaimer — read before use

This model is abliterated: its safety alignment has been substantially reduced. It will comply with many harmful, unethical, offensive, or illegal requests that the original GigaChat4-37B-A4B would refuse.

  • Released strictly for legitimate, noncommercial research: interpretability, AI-safety and refusal-mechanism study, red-teaming, and robustness evaluation.
  • You assume full responsibility for how you use it and for everything it generates. Add your own safety, moderation, and abuse-prevention layers before any deployment.
  • Use must comply with the Noncommercial License for individuals 1.0 inherited from the base model, which forbids commercial use (including commercial use of outputs), and with all applicable law.
  • The authors accept no liability for misuse. Its outputs do not reflect the views of the uploaders or of ai-sage.

Evaluation

The base and abliterated checkpoints were scored with identical prompts, splits and seed, under the same code revision, both served by SGLang (main, commit ff14289) in instant mode (chat_template_kwargs: {"reasoning": false}), greedy.

  • Replies to the refusal sets are capped at 64 new tokens; MMLU-Pro and GSM8K reason step by step in up to 2,048 tokens; MMLU and CMMLU answer with a letter.
  • Refusal is read by a rule-based classifier on the reply's opening; caveat counts replies that refuse or add a warning or disclaimer. No model judge was run.

Safety: harmful-prompt refusal (lower = more uncensored). Average 6.4%, against 93.0% for the base model. Replies with a caveat fall from 95.2% to 57.3% on average.

Benchmark n Base Abliterated Δ (95% CI) Caveat: base → abliterated
AdvBench 100 100.0% 3.0% −97.0 [−100.0, −93.0] 100.0% → 79.0%
JailbreakBench (harmful) 100 98.0% 2.0% −96.0 [−99.0, −92.0] 98.0% → 51.0%
StrongREJECT 150 98.7% 4.7% −94.0 [−97.3, −90.0] 98.7% → 59.3%
HarmBench (standard) 150 91.3% 6.0% −85.3 [−90.7, −79.3] 96.0% → 48.0%
MaliciousInstruct 100 94.0% 0.0% −94.0 [−98.0, −89.0] 97.0% → 59.0%
SimpleSafetyTests 50 100.0% 24.0% −76.0 [−88.0, −64.0] 100.0% → 62.0%
ForbiddenQuestions 150 68.7% 5.3% −63.3 [−70.7, −55.3] 76.7% → 42.7%

Over-refusal: benign prompts wrongly refused (lower = better). No induced over-refusal.

Benchmark n Base Abliterated Δ (95% CI)
XSTest-safe 250 10.8% 0.4% −10.4 [−14.4, −6.8]
JailbreakBench (benign) 100 19.0% 0.0% −19.0 [−27.0, −12.0]

Capability retention. Every change is within noise (each 95% interval contains or touches zero).

Benchmark n Base Abliterated Δ (95% CI)
MMLU (letter) 300 68.7% 69.0% +0.3 [−3.0, +3.7]
MMLU-Pro (CoT, 2,048 tokens) 250 78.0% 77.2% −0.8 [−4.8, +3.2]
GSM8K (CoT) 150 93.3% 90.0% −3.3 [−6.7, +0.0]
CMMLU (letter) 500 67.2% 66.0% −1.2 [−3.6, +1.2]

All intervals are paired bootstraps over the shared items. All prompt sets were read from the Hugging Face Hub.

Not evaluated: reasoning mode (reasoning: true), tool calling and agentic use, long context, the MTP and DFlash2 drafters.


Usage

SGLang

GigaChat 4 is supported on SGLang's main branch (not yet in a release); these weights were evaluated with commit ff14289, the one the base model card names:

pip install "sglang @ git+https://github.com/sgl-project/sglang.git@ff142897935ec6ede004dea8439d6111110bd446#subdirectory=python"
python -m sglang.launch_server --model-path orcarouter/GigaChat4-37B-A4B-abliterated --tp 2 --port 30000

Pass "chat_template_kwargs": {"reasoning": false} for instant mode, the mode the abliteration was fitted and evaluated in (the template thinks by default). With reasoning on, add --reasoning-parser auto.

Transformers

Transformers has no gigachat4; the repo ships the release's modeling code (modeling_gigachat4.py, configuration_gigachat4.py), so loading needs trust_remote_code=True:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "orcarouter/GigaChat4-37B-A4B-abliterated"
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto",
                                             trust_remote_code=True).eval()
text = tok.apply_chat_template([{"role": "user", "content": "Write a Python function that reverses a string."}],
                               tokenize=False, add_generation_prompt=True, reasoning=False)
enc = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**enc, max_new_tokens=256)
print(tok.decode(out[0][enc["input_ids"].shape[1]:], skip_special_tokens=True))
  • Checked with Transformers 5.19 (the code targets 5.8.1). Set config.return_dict = True if your version returns tuples, and if flash-linear-attention is installed but its FusedRMSNormGated lacks zero_centered, the code's own PyTorch norm must be used instead (we did both in our own loader).
  • Transformers runs the MoE as a per-expert loop: correct but slow. Prefer SGLang for serving.

Abliteration recipe

Method Diff-of-means refusal direction (Arditi et al. 2024) from 256 harmful and 256 harmless training prompts, taken at layer 19 of 32; one direction (k = 1)
Edited matrices 6,017: the token embedding, attention o_proj ×8, Gated DeltaNet out_proj ×24, the dense layer-0 down_proj, the shared experts' down_proj ×31 and the routed experts' down_proj ×5,952
Through the post-norms Each sublayer output passes through a GatedNorm (RMSNorm gain × 2·sigmoid of a 16-wide bottleneck) before the residual. The bake runs 256 prompts, collects the gated direction w ⊙ s ⊙ r at every post-norm and token, and removes from each writer the smallest span holding all but 0.2% of its energy (rank 1–3 per norm)
Held-out check On 64 held-out harmful prompts, refusal fell from 98.4% to 3.1% after the bake; on 64 harmless ones, from 17.2% to 0%
Not touched Query/key/value and latent projections, Gated DeltaNet input projections, the experts' gate/up projections, routers, norms, the output head, the MTP layer and the DFlash2 drafter

The direction (refusal_direction.pt) and the full report (abliteration_report.json) are in this repo.


Model details

Base model ai-sage/GigaChat4-37B-A4B (BF16 release -bf16)
Architecture gigachat4, GigaChat4ForCausalLM. 32 layers, hidden 2,560; Gated DeltaNet in 24 layers; MLA (q-LoRA 1,536, kv-LoRA 512) with a DSA indexer (top-2,048 keys) and a sigmoid output gate in 8; pre- and post-GatedNorms; layer 0 dense, layers 1–31 MoE with 192 routed experts (intermediate 768), 8 active, plus a shared expert; one MTP layer
Parameters 38.3B with the MTP layer · about 4B active per token · Vocabulary 128,256 · Context 1,048,576 (YaRN)
Precision bf16 safetensors (~77 GB)
Runtime SGLang (main, ff14289) and Transformers 5.19 with the shipped code

What's in this repo

Path Contents
model-*.safetensors, model.safetensors.index.json the abliterated bf16 weights (MTP layer included)
config.json, generation_config.json, configuration_gigachat4.py, modeling_gigachat4.py config and the release's modeling code
tokenizer.json, tokenizer_config.json, chat_template.jinja tokenizer and chat template, as released
dflash_draft/ the release's DFlash2 drafter (config and weights), as released
refusal_direction.pt, abliteration_report.json the refusal direction and the abliteration report
LICENSE.txt the Noncommercial License for individuals 1.0

Every tensor not listed under Abliteration recipe is the release's, byte for byte.


Bias, risks, and limitations

  • Safety guardrails are substantially reduced, see the disclaimer. Explicit refusal is mostly gone (SimpleSafetyTests keeps 24%), and 43–79% of harmful-prompt replies per set still carry a caveat.
  • Refusal was read by rules, not by a judge model, on the first 64 tokens of each reply.
  • Only instant mode was measured. Reasoning mode, tool use, long context and the drafters were not evaluated after the edit.
  • Noncommercial license: no commercial use of the model or its outputs.
  • Inherits the biases and limitations of GigaChat4-37B-A4B.

License

The Noncommercial License for individuals 1.0, inherited from the base model ai-sage/GigaChat4-37B-A4B. These are modified weights: the tensors listed under Abliteration recipe were changed. See the license for its terms.


One Gateway. Every Model.

Route Smarter · Ship Safer · Spend Less

Website · Models · GitHub · Discord · X

Downloads last month
-
Safetensors
Model size
38B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for orcarouter/GigaChat4-37B-A4B-abliterated

Finetuned
(6)
this model
Quantizations
2 models