Views
No views yet
| Original (BF16) | UD-Q8_K_XL (this model) | |
|---|---|---|
| Size | ~49 GB | 27 GB |
| Format | SafeTensors | SafeTensors |
| Precision | BF16 uniform | 8-bit affine + BF16 |
| FFN group size | — | 64 |
| Biases | — | yes |
| Repo | Bit budget | Size | Decode (tok/s) |
|---|---|---|---|
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-Q3_K_XL-mlx | 3-bit base | 14 GB | 60.6 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-MXFP4_K_XL-mlx | mxfp4 | 16 GB | 58.4 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-Q4_K_XL-mlx | 4-bit base | 17 GB | 58.6 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-NVFP4_K_XL-mlx | nvfp4 | 17 GB | 57.9 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-Q5_K_XL-mlx | 5-bit base | 20 GB | 50.3 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-Q6_K_XL-mlx | 6-bit base | 23 GB | 51.9 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-MXFP8_K_XL-mlx | mxfp8 | 26 GB | 49.8 |
| Brooooooklyn/Gemma-4-26B-A4B-IT-UD-Q8_K_XL-mlx (this model) | 8-bit base | 27 GB | 49.8 |
examples/lm.ts (best decode tok/s across turns 2–4, steady-state, capitals chat with reasoningEffort: 'low').unsloth and mixed_2_6 recipes produced gibberish at Q2 on this model.examples/lm.ts capitals chat with reasoningEffort: 'low'). Decode is memory-bandwidth bound on Apple Silicon — fewer bytes per token directly translates to higher throughput. The MoE architecture activates only top-K of 128 experts per token (~4B active out of ~26B total), and the compiled C++ forward graph fuses the per-layer dispatch.| Weight | Mode | Bits | Group | Rationale |
|---|---|---|---|---|
mlp.gate_proj | 8-bit affine | 8 | 64 | Shared dense MLP (top-level default) |
mlp.up_proj | 8-bit affine | 8 | 64 | Shared dense MLP (top-level default) |
experts.switch_glu.gate_proj | 8-bit affine | 8 | 64 | MoE expert gate (per-expert across all 128); base bits (top-level default) |
experts.switch_glu.up_proj | 8-bit affine | 8 | 64 | MoE expert up (per-expert across all 128); base bits (top-level default) |
self_attn.o_proj | bf16 | — | — | NOT AWQ-correctable; kept full-precision |
--q-bits 8 the unsloth recipe assigns the base bits to MLP gate/up projections (the bulk of the parameter budget), base+1 to down_proj (slightly more sensitive), base+2 (snapped to a valid bit width) + AWQ pre-scaling to attention q/k/v projections, base+2 to embed_tokens, base+3 (capped/snapped) to the routing-critical paths, and keeps self_attn.o_proj as bf16 (AWQ-uncorrectable — its inputs come from the attention compute, not from a norm layer). The MoE router (router.proj) is forced to 8-bit affine to preserve top-K expert selection accuracy.| Parameter | Value |
|---|---|
| Total parameters | ~26B (~4B active per token) |
| Hidden size | 2,816 |
| Layers | 30 (sliding-window attention) |
| Attention heads | 16 (8 KV heads, GQA 2:1) |
| Head dimension | 256 |
| Experts | 128 per MoE layer |
| MoE intermediate size | 704 |
| Vocab size | 262,144 |
| Max context | 262,144 tokens |
| Vision | yes (Gemma4ForConditionalGeneration) |
1import { loadSession } from '@mlx-node/lm';
2
3const session = await loadSession('./Gemma-4-26B-A4B-IT-UD-Q8_K_XL-mlx');
4
5for await (const event of session.sendStream('Explain the MoE architecture in Gemma-4.', {
6 config: { maxNewTokens: 2048, temperature: 0.6, reasoningEffort: 'low' },
7})) {
8 if (!event.done) process.stdout.write(event.text);
9}1mlx convert \
2 -i gemma-4-26b-a4b-it \
3 -o Gemma-4-26B-A4B-IT-UD-Q8_K_XL-mlx \
4 -q --q-bits 8 --q-recipe unsloth \
5 --imatrix-path imatrix_unsloth.gguf