← back to catalog · registered 2026-09-09 13:55

leonsarmiento/Huihui-gemma-4-26B-A4B-it-abliterated-3bit-XL-mlx

leonsarmiento Gemma 25B MoE multimodal second-order
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/leonsarmiento%2FHuihui-gemma-4-26B-A4B-it-abliterated-3bit-XL-mlx"
Response includes
  • classification m1
  • files 12
  • hub_downloads_all_time 496
  • author_summary 8 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · lifetime
496
Likes
0
Model age
6w ago
created 2026-09-09
Downloads over time
Now912→from0↑0%
03346691K0 on Sep 9912 on Oct 24SepOct
Sep 9 → Oct 24 · 46 snapshots · spans 45 days

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

Tags
mlx safetensors gemma4 mlx-vlm moe multimodal vision gemma abliterated uncensored basequant-xl image-text-to-text

Related

Total size
13.2 GB
Files
12
Quantizations
1
Registered
2026-09-09 13:55
Last updated on HF
2026-09-09 15:17

Files by quantization

Auxiliary files 12 files 13.2 GB
model-00001-of-00003.safetensors 4.99 GB 820a855e download
model-00002-of-00003.safetensors 4.95 GB 3c901cf4 download
model-00003-of-00003.safetensors 3.28 GB 48a249fe download
tokenizer.json 30.7 MB cc8d3a0c download
model.safetensors.index.json 150 KB b3ef5ed3 download
config.json 57.8 KB e939d63b download
tokenizer_config.json 21.3 KB d498b0a6 download
chat_template.jinja 18.2 KB 222609f6 download
README.md 4.40 KB 513ee0ed download
.gitattributes 1.53 KB 52373fe2 download
processor_config.json 1.31 KB bb6dee0c download
generation_config.json 208 B e605bb45 download

README current version from Hugging Face


library_name: mlx
base_model: huihui-ai/Huihui-gemma-4-26B-A4B-it-abliterated
tags:

  • mlx
  • mlx-vlm
  • moe
  • multimodal
  • vision
  • gemma
  • abliterated
  • uncensored
  • basequant-xl
    pipeline_tag: image-text-to-text

leonsarmiento/Huihui-gemma-4-26B-A4B-it-abliterated-3bit-XL-mlx

This model was converted to MLX format from huihui-ai/Huihui-gemma-4-26B-A4B-it-abliterated using BaseQuant_XL 3-bit mixed quantization — the compact XL variant built for RAM-constrained Macs. The vision encoder is preserved (full multimodal). The unquantized BF16 base was used as the source.

This is an abliterated (uncensored) variant of Gemma-4-26B-A4B: the refusal mechanism has been removed via directional ablation, otherwise identical to the vanilla model — 25.2B-parameter MoE with 128 experts per layer (avg. 3.8B active per token) and a vision encoder.

BaseQuant_XL keeps the most routing-critical layers in full bf16 precision — the MoE router.proj (gate) and the mlp (shared/dense expert that processes all tokens) — while applying 8-bit quantization to embeddings and attention. Only the routed experts (experts.switch_glu), the bulk of the parameters, are pushed down to 3-bit. This is the same layer assignment as the 6-bit XL abliterated and the vanilla 3-bit XL variants — only the routed-expert bit depth differs.

Note: tie_word_embeddings=True means there is no separate lm_head (tied to embed_tokens).

Use with mlx

pip install -U mlx-vlm
python -m mlx_vlm.generate --model leonsarmiento/Huihui-gemma-4-26B-A4B-it-abliterated-3bit-XL-mlx --max-tokens 256 --temperature 1.0 --top-p 1.0 --prompt "Hello"

BaseQuant_XL Quantization Strategy

Bit Depth Layers Rationale
bf16 (unquantized) router.proj (gate), mlp (shared/dense expert), vision tower Routing decisions and the dense expert that processes every token — errors here cascade through all tokens
8-bit embed_tokens, self_attn Near-lossless for the attention path — the sensitive non-expert weights stay protected
3-bit experts.switch_glu (routed experts) The bulk of parameters (only ~4B of 26B active per token) — 3-bit keeps the footprint small

Quantization Details

Layer Bits Group Size
router.proj (gate) bf16 —
mlp (shared/dense expert) bf16 —
Vision tower (full) bf16 —
embed_tokens 8 64
self_attn 8 64
experts.switch_glu (routed experts) 3 64
Default fallback 8 64
  • Quantization type: BaseQuant_XL mixed (multimodal, vision preserved)
  • Bits per weight: 4.404
  • Total size: ~13 GB (3 shards)
  • Group size: 64
  • Method: Custom quant_predicate via mlx_vlm
  • Note: tie_word_embeddings=True — no separate lm_head

Thinking Mode (LM Studio setup)

Thinking is enabled by default in this repo — the flags enable_thinking = true and preserve_thinking = true are baked into the chat template (both chat_template.jinja and tokenizer_config.json), so servers that don't pass template kwargs (LM Studio, oMLX) get thinking out of the box. Passing an explicit enable_thinking=false from a server that supports template kwargs still overrides the default.

The chat template is the canonical Google upstream version (pulled from google/gemma-4-26B-A4B-it at build time — not the fork's copy).

For LM Studio to render the reasoning trace correctly, set the model's Reasoning Parser (in the model settings) to custom strings:

Setting Value
Reasoning parser start string <|channel>thought
Reasoning parser end string <channel|>

The model opens each reasoning block with <|channel>thought and closes it with <channel|> before emitting the final answer — without these parser strings, LM Studio will show the raw channel markers inline with the response.

Recommended Inference Parameters

Parameter Value
temperature 1.0
top_p 1.0
top_k 64
min_p 0.01
repeat_penalty 1.1

README history 2 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-09-09Upload README.md with huggingface_hub33efa685.3 KB
    Loading...
  2. 2026-09-09Upload folder using huggingface_hub7f10c764.4 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration