Views
No views yet
| Metric | Value |
|---|---|
| Base model | google/gemma-4-12b-it |
| Architecture | Gemma4Unified (48-layer dense, hybrid attention) |
| Quantization | MLP-only 8-bit, group-size=64 |
| BF16 size | ~24 GB |
| Mixed 8-bit size | ~15 GB (≈38% reduction) |
| Modalities | Text, Vision, Audio, Video |
| License | Gemma License (inherits from base model) |
gate_proj, up_proj, down_proj) in the language model are quantized to 8-bit. All other components remain in BF16:[sliding_attention × 5, full_attention × 1] × 8Gemma4UnifiedProcessor handling text, images, audio, and video<|image|>, <|audio|>, <|video|> with BOI/EOI, BOA/EOA delimiters1from mlx_vlm.utils import load
2
3model, processor = load("your-username/gemma-4-12B-it-Mixed-8bit", lazy=True)
4# Model loads in ~15 GB vs ~24 GB for BF16| File | Description |
|---|---|
model-00001.safetensors – model-00003.safetensors | Sharded model weights (~5 GB each) |
config.json | Model configuration with quantization metadata |
tokenizer.json / tokenizer_config.json | Tokenizer (262K vocab) |
chat_template.jinja | Chat template with thinking/tool support |
generation_config.json | Generation parameters |
processor_config.json | Unified processor config |
| Parameter | Value |
|---|---|
| Quantization mode | Affine (8-bit) |
| Group size | 64 |
| Layers quantized | 48 (all MLP: gate_proj, up_proj, down_proj) |
| Tensors quantized | ~144 |
| Layers protected | Attention (Q/K/V/O), Vision, Audio, Embeddings, Norms, Scalars |
| Script | quantization_scripts/mixed_quantize_gemma4_12b.py |
1# Quantize from the BF16 base model
2mlx-env/bin/python quantization_scripts/mixed_quantize_gemma4_12b.py \
3 --bits 8 --group-size 64mlx_vlm.utils.load()class_predicate filter)transformers_version: 5.10.0.dev0 — some fields may not be recognized by stable transformers releases yet