gemma-4-26B-A4B-it-8bit

8-bit MLX build of Google's Gemma-4 26B (A4B-it) target model, intended for speculative decoding (MTP) paired with the matching 8-bit drafter: shdennlin/gemma-4-26B-A4B-it-assistant-8bit.

Lineage

google/gemma-4-26B-A4B-it
  ↓
mlx-community/gemma-4-26B-A4B-it-bf16     (bf16 MLX conversion)
  ↓
shdennlin/gemma-4-26B-A4B-it-8bit         ← this model (affine 8-bit)

Quantization Details

Field Value
Method MLX affine PTQ (no calibration data)
Bits 8
Group size 64
Mode affine
Average 8.674 bits/weight
Tool mlx-vlm @ cbbc56f97861 (≡ 0.5.0)
Hardware Apple M4 Pro, 64GB unified memory

Why 8-bit instead of bf16

The bf16 target (52GB) exceeds the unified memory budget of a 64GB Mac when combined with the drafter, KV cache, and Metal overhead. The 8-bit build fits comfortably (26GB) while preserving MTP draft/target hidden-state compatibility when paired with a matching 8-bit drafter.

Usage (mlx-vlm speculative decoding)

mlx_vlm.server \
  --model shdennlin/gemma-4-26B-A4B-it-8bit \
  --draft-model shdennlin/gemma-4-26B-A4B-it-assistant-8bit \
  --draft-kind mtp \
  --draft-block-size 6 \
  --port 8006

Caveats

  • Dtype matching matters. MTP's hidden-state comparison can degrade when drafter and target dtypes diverge. This 8-bit target is intended to be paired with the matching 8-bit drafter above.
  • Acceptance rate must be empirically verified. PTQ at 8-bit is usually lossless enough for greedy parity, but always measure on your workload.

License

Gemma Terms of Use — same as the upstream Google release.

Downloads last month
5
Safetensors
Model size
8B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support