Downloads · 30 days
15
20% of all-time downloads
RiverRider/gemma-4-31B-it-nf4
gemma-4-31B-it-nf4 is a image-text-to-text model from RiverRider. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
google/gemma-4-31B-it quantised to 4-bit NF4 with bitsandbytes, double quantisation on, bfloat16 compute. Nothing else is changed. Use of this model is governed by the Gemma Terms of Use.
Downloads · 30 days
15
20% of all-time downloads
All-time downloads
76
Public
Parameters
31.3B
18.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.3 GB · 100%
How the weights are stored.
U829.8B · 95%
From the Hugging Face model README
google/gemma-4-31B-it quantised to 4-bit NF4 with bitsandbytes, double
quantisation on, bfloat16 compute. Nothing else is changed. Use of this model
is governed by the Gemma Terms of Use.
It exists so that a Space can load the host in about 17 GB instead of pulling 62 GB and quantising at startup.
We read the layer-47 hidden state out of this model and hand it to a separate 0.6B decoder and a linear retrieval head, both of which were fitted on bf16 states. So the question is whether quantisation moves the state out of the distribution they expect. We measured it on 100 COCO val2017 images.
Anisotropy on this backbone is 0.9874, so raw cosine is not usable: matched bf16/NF4 pairs read 0.9986 while mismatched pairs, different pictures across the two precisions, read 0.9867. Centered on the pool mean, matched pairs are 0.9631 (worst 0.9056) against a mismatched floor of 0.0237.
| bf16 | NF4 | |
|---|---|---|
| distance to the reader's training mean | 13.43 | 14.51 |
| self-retrieval into the 2000-image bf16 index, r@1 | 1.000 | 1.000 |
| top-10 neighbour agreement with bf16 | 1.000 | 0.704 |
Retrieval survives: an NF4 query lands on its own image at rank 1 in 100 of 100 cases. Deeper ranking does move, so the two indices are not interchangeable. Verbalisation is content-stable but not token-stable: 8 of 8 sampled pairs name the same subject and 2 of 8 are identical strings, so any quoted example sentence should say which precision produced it.
AWQ and GGUF builds of this model exist and are probably fine, but they were not the ones we measured.