Gemma 3 27B IT (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs
Grand modèle dense 27B (62 couches) taillé pour les cartes 24 Go (RTX 3090 / 4090) et machines unifiées 32–64 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)20,03 Gio32k en KV Q8_0 : 24,59 Gio
Poids binaires .GGUF15,40 Gio4,90 bits/poids effectifs
Paramètres (Actifs / Totaux)27,01 / 27,01 Md808 tenseurs analysés
Coût du Cache KV496,0 Mio/1kEn Q8_0 : 263,5 Mio / 1 000 tok
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/google_gemma-3-27b-it-GGUF |
|---|---|
| Fichier inspecté | google_gemma-3-27b-it-Q4_K_M.gguf (15,41 Gio) |
| Commit HuggingFace | 4a05c54413bd |
| Date de lecture | 2026-11-29 15:28:34 UTC |
| En-tête analysé | 6 561 407 octets (SHA-256 b4af5f57d9478fc865a0…) |
2. Architecture & dimensions GQA
| Architecture GGUF | gemma3 (Dense) |
|---|---|
| Couches Transformer | 62 couches (~236,6 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 Q4_K_M conserve certains tenseurs critiques dans une précision supérieure :
| Type GGML | Nombre de tenseurs | Volume | Part du poids | Répartition |
|---|---|---|---|---|
Q4_K | 374 | 11,42 Gio | 74,1 % | |
Q6_K | 61 | 3,98 Gio | 25,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 | 17,12 Gio | 16,66 Gio |
| 4k (4 096) | 1,94 Gio | 1,03 Gio | 0,54 Gio | 18,09 Gio | 17,18 Gio |
| 8k (8 192) | 3,88 Gio | 2,06 Gio | 1,09 Gio | 20,03 Gio | 18,21 Gio |
| 16k (16 384) | 7,75 Gio | 4,12 Gio | 2,18 Gio | 23,90 Gio | 20,27 Gio |
| 32k (32 768) | 15,50 Gio | 8,23 Gio | 4,36 Gio | 31,65 Gio | 24,38 Gio |
| 64k (65 536) | 31,00 Gio | 16,47 Gio | 8,72 Gio | 47,15 Gio | 32,62 Gio |
| 128k (131 072) | 62,00 Gio | 32,94 Gio | 17,44 Gio | 78,15 Gio | 49,09 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 | 20 / 62 | 7,26 Gio | 12,29 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 11 / 62 | 7,00 Gio | 24,45 Gio | Mémoire insuffisante |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 15 / 62 | 7,14 Gio | 17,05 Gio | Mémoire insuffisante |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 33 / 62 | 11,01 Gio | 8,54 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 19 / 62 | 10,82 Gio | 20,63 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 26 / 62 | 11,10 Gio | 13,09 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 47 / 62 | 15,06 Gio | 4,49 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 27 / 62 | 14,61 Gio | 16,84 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 37 / 62 | 15,06 Gio | 9,12 Gio | Débordement RAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 62 / 62 | 19,55 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 44 / 62 | 22,72 Gio | 8,73 Gio | Débordement RAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 58 / 62 | 22,67 Gio | 1,52 Gio | Débordement RAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 62 / 62 | 19,55 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 60 / 62 | 30,46 Gio | 0,99 Gio | Débordement RAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 62 / 62 | 24,19 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 62 / 62 | 19,55 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 62 / 62 | 31,45 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 62 / 62 | 24,19 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 62 / 62 | 19,55 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 62 / 62 | 31,45 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 62 / 62 | 24,19 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
Avec Ollama :
ollama run gemma3:27b
Avec
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :llama-server -m google_gemma-3-27b-it-Q4_K_M.gguf -ngl 37 -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-… !