Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq

by Quoc-Bao Nguyen quocbao747/gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq

gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq is a model for text generation from Quoc-Bao Nguyen, released under Apache License 2.0 (access requested at publisher). It has 25.2B parameters. At 16-bit it needs about 60.6 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

An MLX (Apple silicon) build of the abliterated Gemma-4-26B-A4B-it MoE (128 experts, top-8, ~4B active). It uses Google's QAT int4 lattice weights wherever they are exact.

Parameters25.2B
Context—
Weights16.0 GB
Licenseapache-2.0
AccessAccess requested at publisher
Monthly Downloads—

Runs On

What it takes to serve gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq (25.2B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 50.5 GB 60.6 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 25.2 GB 30.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 12.6 GB 15.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq on every accelerator the SAVRN Index prices, at every precision

Model Card

By Quoc-Bao Nguyen, published under apache-2.0, revision 94d41e5491d8.

An MLX (Apple silicon) build of the abliterated Gemma-4-26B-A4B-it MoE (128 experts, top-8, ~4B active). It uses Google's QAT int4 lattice weights wherever they are exact. The build targets a Mac mini M4 with 24 GB serving 2 concurrent requests at 64k context. It runs through oMLX fully resident at a 21.5 GB Metal limit. At a 20 GB limit, MoE expert offload streams non-resident experts from the NVMe SSD on demand. - Quality vs the exact bf16 model: KL 0.053, top-1 agreement 92.4%. This is the same as the measured noise floor between two exact bf16 implementations (≈0.05 / ≈91%). - Refusal behaviour is identical to the bf16 abliterated model (XSTest safe prompts: 0.8%). The source is…

Read Quoc-Bao Nguyen's full model card

Gemma-4-26B-A4B-it · QAT · abliterated · MLX 4-bit

An MLX (Apple silicon) build of the abliterated Gemma-4-26B-A4B-it MoE (128 experts, top-8, ~4B active). It uses Google's QAT int4 lattice weights wherever they are exact. The build targets a Mac mini M4 with 24 GB serving 2 concurrent requests at 64k context. It runs through oMLX fully resident at a 21.5 GB Metal limit. At a 20 GB limit, MoE expert offload streams non-resident experts from the NVMe SSD on demand.

  • Size: 16.0 GB (text-only; the vision tower is not included)
  • Quality vs the exact bf16 model: KL 0.053, top-1 agreement 92.4%. This is the same as the measured noise floor between two exact bf16 implementations (≈0.05 / ≈91%).
  • Refusal behaviour is identical to the bf16 abliterated model (XSTest safe prompts: 0.8%).

Name note: the repo name says "dwq". During the project we trained a DWQ variant (scale/bias distillation: KL 0.100, top-1 88.2%). Keeping Google's exact QAT lattice for the experts beat it clearly, so this card describes the lattice build that is published here.

How it was built

Tensor group Format Why
Routed experts (gate/up/down), q/k/v, dense MLP gate/up, embeddings 4-bit affine gs32 Google QAT q4_0 values, an exact (lossless) re-encoding of the QAT int4 lattice
self_attn.o_proj, dense mlp.down_proj (all 30 layers) 8-bit affine gs64 The abliteration edit moved these tensors off the lattice
Router, norms bf16 Unquantized

The source is Google's gemma-4-26B-A4B-it-qat-q4_0-unquantized, plus the 60 abliterated tensors of huihui-ai's QAT abliteration. All other 953 tensors are bit-identical (verified).

Quality (vs exact bf16 QAT-abliterated model)

Metric This model Exact bf16 teacher
KL (T=1), 32 held-out batches, top-1024 logits 0.053 noise floor ≈0.05*
Top-1 agreement 92.4% ≈91%*
Long-context KL @1k / 16k / 32k 0.119 / 0.091 / 0.077 —
ARC-Challenge (acc_norm, 200) 0.425 0.425
HellaSwag (acc_norm, 200) 0.555 0.545
WinoGrande (acc, 200) 0.630 0.615
GSM8K (5-shot, flexible, 200) 0.945 0.950
Over-refusal, XSTest 250 safe prompts 0.8% 0.8%

* Two faithful bf16 implementations of this MoE disagree by KL ≈0.046–0.054 and top-1 ≈91%, because expert-routing near-ties flip under tiny numeric differences. Differences below that floor are noise.

Speed on Mac mini M4 (24 GB), oMLX, 2 concurrent × 64k

Setup: - The model is fully resident, with no expert offload. - Metal wired limit 21.5 GB (sudo sysctl iogpu.wired_limit_mb=22016; resets on reboot). This leaves macOS about 2.5 GB. - oMLX memory guard 22 GB, TurboQuant 4-bit KV, 64k window, max 2 concurrent requests.

Load Time to first token Decode
1 user, 1k prompt 3.5 s 31.5 tok/s
1 user, 8k prompt 22 s 29.3 tok/s
1 user, 32k prompt 102 s 23.1 tok/s
2 users × 64k prompts (cold, concurrent) 264 s / 550 s (prefills run one after another) ~8–10 tok/s each on follow-ups
Follow-up turn on a cached 64k conversation 8–11 s ~8 tok/s each (2 users)

Validated on a fresh server and again after a 20-minute 2-user soak (1.56M prompt tokens): 0 errors. Peak memory was 20–21 GB. Swap grew 0.5–0.8 GB during the 2×64k tests, which is tight.

Lower memory limit (20 GB): SSD expert offload. oMLX MoE expert offload streams non-resident experts from NVMe; it is exact, so quality is unchanged. With offload on decoder layers 10–29 at 85% residency (OMLX_MOE_OFFLOAD_LAYERS=10-29, a local oMLX patch), the reference machine measured 8 / 25 / 115 s to first token and 25.5 / 24 / 19.7 tok/s decode, and 2×64k still worked.

Usage

pip install mlx-lm
mlx_lm.generate --model quocbao747/gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq \
  --prompt "Hello" --max-tokens 200

oMLX model_settings.json entry used for the numbers above:

{"max_context_window": 65536, "turboquant_kv_enabled": true, "turboquant_kv_bits": 4,
 "enable_thinking": false, "is_pinned": true}
# 20 GB limit variant: add "moe_expert_offload_enabled": true, "moe_expert_offload_resident_fraction": 0.85
# and env OMLX_MOE_OFFLOAD_LAYERS=10-29 (local oMLX patch)

Limitations

  • This model is abliterated: refusal behaviour was removed. You are responsible for how you use it.
  • On a 24 GB Mac, oMLX's prefill memory guard ratchets its transient estimate upward during a long session. After heavy concurrent use, a brand-new cold 64k prompt can be refused. Restarting oMLX when it is idle resets this. The reference deployment does it automatically with a small watcher: restart after 90 s idle once 150k+ prompt tokens have been served. Restart takes 6 s, and the SSD KV cache survives. Validated sequence: 1. 2×64k on a fresh server 2. a 20-minute 2-user soak (1.38M prompt tokens) 3. an idle refresh 4. 4 cold 65k needle prompts, all served, single retrieval 4/4 5. 2×64k again: 0 errors, peak 20 GB, no swap
  • Two-hop retrieval at 64k is about 70% (8/11), and matches the DWQ build on identical haystacks, so it is a base-model limit. Single-needle retrieval at 64k is 100%.
  • Text only.

Credits

Google (Gemma 4 and QAT weights), huihui-ai (abliteration), Apple MLX / mlx-lm, oMLX.

Identity and Version

Repository
quocbao747/gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq
Publisher
Quoc-Bao Nguyen
Task
Text generation
Modality
Text
Library
mlx
Parameters
25.2B parameters
Languages
en
Revision
94d41e5491d89124ede32081415938bea328f460
First published
2026-10-10
Last updated
2026-10-12

Files and Weights

11 files, 16.1 GB in total. The weights are 3 files totalling 16.0 GB in safetensors.

Weights3 files · 16.0 GB
Configuration3 files · 158.6 KB
Tokenizer2 files · 32.2 MB
Documentation1 file · 5.7 KB
Other1 file · 16.9 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00003.safetensorsWeights5.3 GB —
model-00002-of-00003.safetensorsWeights5.4 GB —
model-00003-of-00003.safetensorsWeights5.4 GB —
config.jsonConfiguration25.3 KB —
generation_config.jsonConfiguration203 B —
model.safetensors.index.jsonConfiguration133.2 KB —
README.mdDocumentation5.7 KB —
chat_template.jinjaOther16.9 KB —
.gitattributesRepository1.6 KB —
tokenizer.jsonTokenizer32.2 MB —
tokenizer_config.jsonTokenizer2.8 KB —

License and Download

License
apache-2.0
Access
Access requested at publisher
Download size
16.0 GB
Request access from Quoc-Bao Nguyen

Quoc-Bao Nguyen grants access through its official repository on Hugging Face. Read the license.

Built From

  • Derived from google/gemma-4-26B-A4B-it-qat-q4_0-unquantized
  • Quantized from google/gemma-4-26B-A4B-it-qat-q4_0-unquantized

Memory Requirements

PrecisionWeights in memory
As published16.0 GB
16-bit50.5 GB
8-bit25.2 GB
4-bit12.6 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq

How much GPU memory does gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq need?

About 60.6 GB at 16-bit and 15.1 GB at 4-bit: the weights (25.2B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq commercially?

Yes. gemma-4-26B-A4B-it-qat-abliterated-mlx-4bit-dwq is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

WaifuGemma4-26b-a4b-v1

HiWaifu Research

Gemma 4 26B-A4B, post-trained with GRPO against a reward model learned from 1.2 million double-blind votes cast by HiWaifu users inside their own role-play conversations. Put back into the same arena, blind, it met GLM-5.1 in 1,430 battles and won 49.6% of the decided votes; against a 13-model field including Gemini, DeepSeek-v4 and Qwen's character models it won 54.7%. Most open role-play models are tuned on preferences that come from an LLM judge, from a handful of annotators, or from synthetic pairs. We had something rarer: a live arena where, inside ordinary chats on our platform, a user is occasionally shown two candidate replies and asked which one they want to continue with. Those…

Open weights gemma 25.8B parameters 262,144 tokens transformers

Model · Text generation

ACE-3-26B-A4B-Preview

APMIC

ACE-3-26B-A4B-Preview-260910 is a preview release of APMIC's ACE-3 model family, built for Traditional Chinese (Taiwan) enterprise scenarios and agentic workflows. The model is based on google/gemma-4-26B-A4B-it, a Mixture-of-Experts model with 26B total parameters and about 4B active parameters per token (the "A4B" in the name). APMIC has further optimized it to strengthen: - Traditional Chinese output in Taiwan usage (terminology, phrasing and orthography) The bundled generationconfig.json uses temperature=1.0, topp=0.95, topk=64. These follow the base model's recommended settings. The model can be served with any inference engine that supports Gemma 4 (for example vLLM). Because the…

Access requested at publisher gemma 25.8B parameters transformers

Model · Text generation

s1-gemma4-26b-decision

Jayasimha

s1 is an open, calibrated System One decision model. Given a state (text or JSON) and a typed question, it returns a probability for every option in one forward pass, with no text generated: It is google/gemma-4-26B-A4B-it (mixture of experts, 26B total and about 4B active parameters) fine-tuned with LoRA on about 100,000 typed decision rows, and merged. Code, data and Held-out test sets. The released snapshot was chosen on separate dev splits by a rule fixed before training. - Mean accuracy over JevBench's 11 accuracy slices; ECE with 10 bins. Raw ECE is 0.083 (Jev: 0.081). - Paired against the untuned model on the same JevBench cases: 103 answers fixed, 58 broken (McNemar p = 0.0005).…

Open weights apache-2.0 25.8B parameters 262,144 tokens transformers

This checkpoint is an AutoRound model-free MXFP8 RTN quantization of exported in llmcompressor / compressed-tensors format. Routed experts and the self-attention projections present in the source are stored as F8E4M3; sensitive/shared and multimodal weights remain BF16. Static FP8 KV scales were calibrated with AutoRound using the text dataset NeelNanda/pile-10k; the vision tower was not quantized. The accuracy comparison below uses a BF16 reference with BF16 KV cache and this MXFP8 checkpoint with FP8 KV cache. Scores are shown as percentages to two decimal places, with the four-task arithmetic mean and the MXFP8/BF16 score ratio. The runs used different parallelism and batching settings…

Open weights apache-2.0 25.8B parameters 262,144 tokens transformers

This repository contains an MXFP8-weight checkpoint derived from exported in compressed-tensors format. The checkpoint retains the source multimodal components, but the evaluation reported here covers text tasks only. The exported checkpoint contains 11,635 F8E4M3 weight tensors, 838 BF16 weight tensors, 11,635 U8 block-scale tensors, and 171 FP32 scale/metadata tensors. Routed-expert weights and source-present text self-attention projections are MXFP8; the router, shared MLP, vision tower, and embeddings remain BF16. Measured on 2026-09-30 with lm-eval 0.4.13 and vLLM 0.29.0. The tested settings were TRITONATTN, tensor parallelism 2, pipeline parallelism 1, batch size 64, maxnumseqs=64…

Open weights apache-2.0 25.8B parameters 262,144 tokens transformers

Model · Text generation

LFM2.5-24B-A2B-OptiQ-4bit

MLX Community

An OptiQ mixed-precision quant of LiquidAI/LFM2.5-24B-A2B, the largest model in the LFM2.5 family. It is 16.7 GB on disk, down from 47.9 GB at bf16, with a 128k context. LFM2.5-24B-A2B is a sparse mixture of experts on Liquid's hybrid backbone. Convolutional blocks alternate with full attention, so only 10 of its 40 layers keep a KV cache. Each token is routed to 4 of 64 experts. OptiQ measures each layer's sensitivity and assigns its bit-width from that. Most of the routed expert weights sit at 4-bit: 87 of the 114 fused expert projections. Attention, the routers and nearly all of the convolution blocks stay at 8-bit. Six-metric mean, the standard OptiQ eval, run in reasoning mode because…

Open weights other 24B parameters 131,072 tokens mlx