MXFP4 MLX bundle converted from google/gemma-4-31B-it-qat-q4_0-unquantized. Decoder linears are quantized with MLX mxfp4 at group size 32; embeddings, norms, and Gemma 4 early-fusion media embedders are preserved as fp16 passthrough.
| Field | Value |
|---|---|
| Source | google/gemma-4-31B-it-qat-q4_0-unquantized |
| Architecture | gemma4 / Gemma4ForConditionalGeneration |
| Text layers | 60 total (10 full attention, 50 sliding attention) |
| Hidden size | 5376 |
| Quantization | mxfp4, bits=4, group_size=32 |
| Quantized weights | 410 tensors with matching .scales sidecars |
| Shards | 18 safetensors shards |
| Indexed weight bytes | 18.19 GiB |
| Processor | processor_class=Gemma4Processor, image_seq_length=280, audio_seq_length=750, audio_ms_per_token=40, video_processor=present |
| Path | Status |
|---|---|
| Text | Preserved |
| Vision | model_type=gemma4_vision, num_hidden_layers=27, hidden_size=1152, patch_size=16 |
| Audio | absent |
| Video | no video_config |
audio_config is present in the source config and is preserved in this bundle; audio runtime support depends on the active Gemma 4 processor path.
No video_config is present in the source config; the processor file includes a video processor block, but this card does not claim a verified video runtime path.
| Field | Value |
|---|---|
| BOS token/id | <bos> / 2 |
| EOS token/id | <eos> / [1, 106, 50] |
| PAD token/id | <pad> / 0 |
| Suppress tokens | null |
| Chat template | chat_template.jinja, also folded into tokenizer_config.json |
| Tool parser metadata | gemma4 |
| Reasoning parser metadata | gemma4 |
The chat template keeps Gemma 4 turn/channel formatting and includes the required-tool-choice compatibility stanza used by vMLX/Osaurus runtimes. The empty no-thinking thought-channel prefill is removed so non-thinking turns start in visible assistant content.
config.jsonjang_config.jsonmodel.safetensors.index.jsonmodel-*.safetensors shardstokenizer.jsontokenizer_config.jsonprocessor_config.jsongeneration_config.jsonchat_template.jinjaUse an MLX/vMLX runtime with Gemma 4 MXFP4 support. This bundle is not GGUF and should not be loaded with GGUF runtimes.
from mlx_vlm import load, generate
model, processor = load("OsaurusAI/gemma-4-31B-it-qat-MXFP4")
This is a quantized derivative of Google's Gemma 4 QAT release. License and use restrictions follow the upstream Gemma terms. Packaged for Apple Silicon MLX/vMLX use. Contact: eric@osaurus.ai.
This bundle metadata is source-derived: text=true, vision=true, audio=false, video=false. No video runtime path is claimed unless video_config is present.
model-00001-of-00018.safetensors 2.6 GiBmodel-00016-of-00018.safetensors 988 MiBmodel-00015-of-00018.safetensors 982 MiBmodel-00017-of-00018.safetensors 980 MiBmodel-00007-of-00018.safetensors 980 MiBmodel-00012-of-00018.safetensors 980 MiBmodel-00004-of-00018.safetensors 971 MiBmodel-00008-of-00018.safetensors 971 MiBmodel-00003-of-00018.safetensors 971 MiBmodel-00005-of-00018.safetensors 971 MiBmodel-00010-of-00018.safetensors 971 MiBmodel-00009-of-00018.safetensors 971 MiBmodel-00011-of-00018.safetensors 970 MiBmodel-00006-of-00018.safetensors 970 MiBmodel-00002-of-00018.safetensors 967 MiBmodel-00014-of-00018.safetensors 955 MiBmodel-00013-of-00018.safetensors 954 MiBmodel-00018-of-00018.safetensors 376 MiBgoogle/gemma-4-31B-it-qat-q4_0-unquantized