Gemma 3 27B IT (IQ4_XS) (IQ4_XS) : VRAM exacte, KV-Cache & Tenseurs
Gemma 3 27B allégé en IQ4_XS (~13,9 Go) pour compenser son KV-cache dense (496 Mio/1k) sur cartes 24 Go.
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/google_gemma-3-27b-it-GGUF |
|---|---|
| Fichier inspecté | google_gemma-3-27b-it-IQ4_XS.gguf (13,75 Gio) |
| Commit HuggingFace | 4a05c54413bd |
| Date de lecture | 2026-12-01 15:05:09 UTC |
| En-tête analysé | 6 561 407 octets (SHA-256 46d1f48151cf87d857cb…) |
2. Architecture & dimensions GQA
| Architecture GGUF | gemma3 (Dense) |
|---|---|
| Couches Transformer | 62 couches (~209,3 Mio / couche) |
| Dimensions (d_model / FFN) | 5376 / 21504 |
| Têtes d’attention (Q / KV) | 32 Q / 16 KV (GQA 2,0:1, dim 128) |
| 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 | 434 | 12,67 Gio | 92,1 % | |
Q6_K | 1 | 1,08 Gio | 7,8 % | |
F32 | 373 | 0,01 Gio | 0,0 % |
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,97 Gio | 0,51 Gio | 0,27 Gio | 15,47 Gio | 15,01 Gio |
| 4k (4 096) | 1,94 Gio | 1,03 Gio | 0,54 Gio | 16,44 Gio | 15,53 Gio |
| 8k (8 192) | 3,88 Gio | 2,06 Gio | 1,09 Gio | 18,38 Gio | 16,56 Gio |
| 16k (16 384) | 7,75 Gio | 4,12 Gio | 2,18 Gio | 22,25 Gio | 18,62 Gio |
| 32k (32 768) | 15,50 Gio | 8,23 Gio | 4,36 Gio | 30,00 Gio | 22,73 Gio |
| 64k (65 536) | 31,00 Gio | 16,47 Gio | 8,72 Gio | 45,50 Gio | 30,97 Gio |
| 128k (131 072) | 62,00 Gio | 32,94 Gio | 17,44 Gio | 76,50 Gio | 47,44 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 | 22 / 62 | 7,22 Gio | 10,67 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 12 / 62 | 7,08 Gio | 22,72 Gio | Mémoire insuffisante |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 16 / 62 | 7,02 Gio | 15,51 Gio | Mémoire insuffisante |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 36 / 62 | 10,96 Gio | 6,94 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 21 / 62 | 11,17 Gio | 18,63 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 28 / 62 | 11,06 Gio | 11,46 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 51 / 62 | 14,96 Gio | 2,94 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 29 / 62 | 14,80 Gio | 14,99 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 39 / 62 | 14,77 Gio | 7,75 Gio | Débordement RAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 62 / 62 | 17,89 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 46 / 62 | 22,52 Gio | 7,27 Gio | Débordement RAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 62 / 62 | 22,53 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 62 / 62 | 17,89 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 62 / 62 | 29,79 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 62 / 62 | 22,53 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 62 / 62 | 17,89 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 62 / 62 | 29,79 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 62 / 62 | 22,53 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 62 / 62 | 17,89 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 62 / 62 | 29,79 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 62 / 62 | 22,53 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :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-… !