CoolFace
Modelpublic

OsaurusAI/gemma-4-12B-it-MXFP8

sourceHugging Facegemmaupdated 4mo agoView on Hugging Face
2likes460downloads
Model Card

<p align="center"> <a href="https://osaurus.ai"><img src="./osaurus-x-banner.png" alt="Osaurus AI"></a> </p>

<h3 align="center">Gemma 4 12B-it - MXFP8 (MLX)</h3> <p align="center">Apple Silicon MLX bundle for Osaurus and compatible vMLX runtimes.</p>

<p align="center"> <a href="https://osaurus.ai"><img src="https://img.shields.io/badge/Web-osaurus.ai-blue" alt="Website"></a>&nbsp; <a href="https://huggingface.co/OsaurusAI"><img src="https://img.shields.io/badge/HF-OsaurusAI-yellow?logo=huggingface" alt="OsaurusAI"></a>&nbsp; <a href="https://github.com/jjang-ai/jangq"><img src="https://img.shields.io/badge/GitHub-JANG_Source-blue?logo=github" alt="JANG source"></a> </p>


Important update (2026-06-03 4:06 PM PDT): These weights were rebuilt with the verified Gemma 4 12B fix. If you downloaded this repository before 2026-06-03 4:06 PM PDT, delete the local copy and re-download.


Model Details

PropertyValue
Base model`google/gemma-4-12B-it`
ArchitectureGemma 4 unified dense 12B, text + image/audio/video-capable metadata
FormatMLX safetensors
QuantizationOCP MXFP8, group size 32; tied embedding and multimodal embedders fp16 passthrough
Tied token embeddingfp16 passthrough (embed_tokens.weight is not quantized)
Multimodal embeddersfp16 passthrough
Package size13.39 GB
Shards13 safetensors shards
Chat templateGemma 4 tool-aware template, no default no-thinking thought-channel tail

Runtime Notes

These rebuilt bundles preserve the tied token embedding in fp16 while keeping the main projection weights quantized. This fixes the bad prior artifact where embed_tokens.weight was packed and scaled like a normal linear weight.

The bundle includes generation_config.json, chat_template.jinja, tokenizer_config.json, and processor_config.json for Osaurus/vMLX loading.

Loading

Use Osaurus for local Apple Silicon chat and multimodal workflows, or load the bundle in a compatible MLX runtime:

python
from mlx_lm import load, generate

model, tokenizer = load("OsaurusAI/gemma-4-12B-it-MXFP8")
print(generate(model, tokenizer, "Hello", max_tokens=128))

Verification

Local release check for this rebuild:

CheckStatus
embed_tokens.weight dtypefp16
embed_tokens.scales / embed_tokens.biasesabsent
Quantized attention projectionspacked uint32
README front mattervalid Hugging Face YAML first
Re-download noticepresent after YAML