ManniX-ITA · text · mixture of experts

gemma-4-A4B-98e-v7-coderx-it

ManniX-ITA/gemma-4-A4B-98e-v7-coderx-it

gemma-4-A4B-98e-v7-coderx-it at Q4_K_M is exactly 13,239,744,800 bytes (12.33 GiB / 13.24 GB) — an effective 5.179 bits per weight, not the nominal 4. Its KV cache at 32K is 1.54 GiB, not the 7.50 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
20.5B
total, not active
Architecture
gemma4
30 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K8.22 GiB8,822,091,5523.451ManniX-ITA
Q3_K_M9.79 GiB10,512,916,5124.112ManniX-ITA
Q3_K_L10.19 GiB10,942,874,6564.281ManniX-ITA
IQ4_XS10.25 GiB11,008,234,0164.306ManniX-ITA
IQ4_NL10.63 GiB11,418,356,2564.467ManniX-ITA
Q4_K_S11.37 GiB12,209,640,7364.776ManniX-ITA
Q4_K_M12.33 GiB13,239,744,8005.179ManniX-ITA
Q4_K_L12.50 GiB13,418,527,0085.249ManniX-ITA
Q5_K_M14.04 GiB15,071,090,9765.896ManniX-ITA
Q5_K_L14.20 GiB15,249,873,1845.965ManniX-ITA
Q6_K16.58 GiB17,805,297,4406.965ManniX-ITA
Q6_K_L16.75 GiB17,984,079,6487.035ManniX-ITA
Q8_019.71 GiB21,162,527,0088.278ManniX-ITA
F1637.06 GiB39,789,691,16815.565ManniX-ITA

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.45 GiB0.94 GiB2.09×5 / 25 / 0
8,1920.61 GiB1.88 GiB3.10×5 / 25 / 0
16,3840.92 GiB3.75 GiB4.09×5 / 25 / 0
32,7681.54 GiB7.50 GiB4.86×5 / 25 / 0
65,5362.79 GiB15.00 GiB5.37×5 / 25 / 0
131,0725.29 GiB30.00 GiB5.67×5 / 25 / 0

25 of 30 layers cache only a 1,024-token window rather than the full context, on a period of . Figures assume the default configuration; --swa-full disables the saving entirely.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 10.71 GiB. The real file is 12.33 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 7.50 GiB at 32K context where the real figure is 1.54 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
30
Attention heads
16
KV heads
8
Head dim
256
Hidden size
2816
Vocab
262,144
Sliding window
1024
SWA period
MLA
no
Experts
98
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-4-A4B-98e-v7-coderx-it need?
Q4_K_M is exactly 13,239,744,800 bytes (12.33 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is gemma-4-A4B-98e-v7-coderx-it's KV cache?
1.54 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Is gemma-4-A4B-98e-v7-coderx-it a mixture-of-experts model?
Yes — 98 experts, null routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of gemma-4-A4B-98e-v7-coderx-it should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.