Gemma 3 12B IT (IQ4_XS) (IQ4_XS) : VRAM exacte, KV-Cache & Tenseurs
Gemma 3 12B allégé en IQ4_XS (~6,1 Go) pour absorber son KV-cache gourmand (384 Mio/1k) sur GPU 12 Go.
⚡ Simuler sur votre GPU dans l’onglet (WASM)
Mesurer & signer Ed25519 dans Local Cockpit 0.4.0
Voir le fichier sur HuggingFace
VRAM min (8k · KV FP16)9,84 Gio32k en KV Q8_0 : 13,42 Gio
Poids binaires .GGUF6,09 Gio4,45 bits/poids effectifs
Paramètres (Actifs / Totaux)11,77 / 11,77 Md626 tenseurs analysés
Coût du Cache KV384,0 Mio/1kEn Q8_0 : 204,0 Mio / 1 000 tok
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/google_gemma-3-12b-it-GGUF |
|---|---|
| Fichier inspecté | google_gemma-3-12b-it-IQ4_XS.gguf (6,10 Gio) |
| Commit HuggingFace | 648e3a36a77c |
| Date de lecture | 2026-12-01 15:04:55 UTC |
| En-tête analysé | 6 550 543 octets (SHA-256 fd0eee4d85d0a28671ad…) |
2. Architecture & dimensions GQA
| Architecture GGUF | gemma3 (Dense) |
|---|---|
| Couches Transformer | 48 couches (~113,6 Mio / couche) |
| Dimensions (d_model / FFN) | 3840 / 15360 |
| Têtes d’attention (Q / KV) | 16 Q / 8 KV (GQA 2,0:1, dim 256) |
| Contexte natif & Vocabulaire | 131 072 tokens · vocab 262 144 |
3. Distribution réelle des types de quantification GGML dans ce fichier
Contrairement à une quantification uniforme, un fichier IQ4_XS conserve certains tenseurs critiques dans une précision supérieure :
| Type GGML | Nombre de tenseurs | Volume | Part du poids | Répartition |
|---|---|---|---|---|
IQ4_XS | 336 | 5,32 Gio | 87,3 % | |
Q6_K | 1 | 0,77 Gio | 12,6 % | |
F32 | 289 | 0,00 Gio | 0,1 % |
4. Falaise du Cache KV de 2k à 128k tokens (FP16 vs Q8_0 vs Q4_0)
Activer Flash Attention et un cache KV en Q8_0 divise presque par deux la mémoire de contexte sans modifier les poids du modèle :
| Longueur de contexte | KV seul (FP16) | KV seul (Q8_0) | KV seul (Q4_0) | VRAM totale (FP16) | VRAM totale (Q8_0) |
|---|---|---|---|---|---|
| 2k (2 048) | 0,75 Gio | 0,40 Gio | 0,21 Gio | 7,59 Gio | 7,24 Gio |
| 4k (4 096) | 1,50 Gio | 0,80 Gio | 0,42 Gio | 8,34 Gio | 7,64 Gio |
| 8k (8 192) | 3,00 Gio | 1,59 Gio | 0,84 Gio | 9,84 Gio | 8,43 Gio |
| 16k (16 384) | 6,00 Gio | 3,19 Gio | 1,69 Gio | 12,84 Gio | 10,03 Gio |
| 32k (32 768) | 12,00 Gio | 6,38 Gio | 3,38 Gio | 18,84 Gio | 13,22 Gio |
| 64k (65 536) | 24,00 Gio | 12,75 Gio | 6,75 Gio | 30,84 Gio | 19,59 Gio |
| 128k (131 072) | 48,00 Gio | 25,50 Gio | 13,50 Gio | 54,84 Gio | 32,34 Gio |
5. Matrice de placement couche par couche par configuration matérielle
Simulation déterministe incluant la réserve VRAM du système d’exploitation et les tampons d’évaluation :
| Configuration matérielle | Contexte & KV | Couches en VRAM | VRAM occupée | Débordement RAM | Verdict mémoire |
|---|---|---|---|---|---|
| GPU 8 Go + 16 Go RAM | 8k · KV FP16 | 36 / 48 | 7,26 Gio | 2,08 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 16 / 48 | 6,99 Gio | 11,55 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 25 / 48 | 7,31 Gio | 5,61 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 27 / 48 | 10,96 Gio | 7,58 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 40 / 48 | 10,96 Gio | 1,95 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 38 / 48 | 14,93 Gio | 3,61 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 48 / 48 | 12,91 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 48 / 48 | 18,54 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 48 / 48 | 12,91 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 48 / 48 | 18,54 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 48 / 48 | 12,91 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 48 / 48 | 18,54 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 48 / 48 | 12,91 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 48 / 48 | 9,34 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 48 / 48 | 18,54 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 48 / 48 | 12,91 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
Avec Ollama :
ollama run hf.co/bartowski/google_gemma-3-12b-it-GGUF:IQ4_XS
Avec
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :llama-server -m google_gemma-3-12b-it-IQ4_XS.gguf -ngl 48 -c 32768 -fa --cache-type-k q8_0 --cache-type-v q8_0
7. Bancs réels certifiés Ed25519 sur ce modèle
Aucun passeport Ed25519 certifié n’est encore enregistré pour cette variante exacte (aucun débit tok/s n’est jamais inventé). Lancez ce modèle dans Local Cockpit 0.4.0 pour publier la première mesure signée /b/lc-… !