Gemma 3 · Q4_K_M · Dense · GGUF v3

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 officielbartowski/google_gemma-3-27b-it-GGUF
Fichier inspectégoogle_gemma-3-27b-it-Q4_K_M.gguf (15,41 Gio)
Commit HuggingFace4a05c54413bd
Date de lecture2026-11-29 15:28:34 UTC
En-tête analysé6 561 407 octets (SHA-256 b4af5f57d9478fc865a0…)

2. Architecture & dimensions GQA

Architecture GGUFgemma3 (Dense)
Couches Transformer62 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 & Vocabulaire131 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 GGMLNombre de tenseursVolumePart du poidsRépartition
Q4_K37411,42 Gio74,1 %
Q6_K613,98 Gio25,8 %
F323730,01 Gio0,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 Gio0,51 Gio0,27 Gio17,12 Gio16,66 Gio
4k (4 096)1,94 Gio1,03 Gio0,54 Gio18,09 Gio17,18 Gio
8k (8 192)3,88 Gio2,06 Gio1,09 Gio20,03 Gio18,21 Gio
16k (16 384)7,75 Gio4,12 Gio2,18 Gio23,90 Gio20,27 Gio
32k (32 768)15,50 Gio8,23 Gio4,36 Gio31,65 Gio24,38 Gio
64k (65 536)31,00 Gio16,47 Gio8,72 Gio47,15 Gio32,62 Gio
128k (131 072)62,00 Gio32,94 Gio17,44 Gio78,15 Gio49,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 RAM8k · KV FP1620 / 627,26 Gio12,29 GioDébordement RAM
GPU 8 Go + 16 Go RAM32k · KV FP1611 / 627,00 Gio24,45 GioMémoire insuffisante
GPU 8 Go + 16 Go RAM32k · KV Q8_015 / 627,14 Gio17,05 GioMémoire insuffisante
GPU 12 Go + 32 Go RAM8k · KV FP1633 / 6211,01 Gio8,54 GioDébordement RAM
GPU 12 Go + 32 Go RAM32k · KV FP1619 / 6210,82 Gio20,63 GioDébordement RAM
GPU 12 Go + 32 Go RAM32k · KV Q8_026 / 6211,10 Gio13,09 GioDébordement RAM
GPU 16 Go + 32 Go RAM8k · KV FP1647 / 6215,06 Gio4,49 GioDébordement RAM
GPU 16 Go + 32 Go RAM32k · KV FP1627 / 6214,61 Gio16,84 GioDébordement RAM
GPU 16 Go + 32 Go RAM32k · KV Q8_037 / 6215,06 Gio9,12 GioDébordement RAM
GPU 24 Go + 64 Go RAM8k · KV FP1662 / 6219,55 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1644 / 6222,72 Gio8,73 GioDébordement RAM
GPU 24 Go + 64 Go RAM32k · KV Q8_058 / 6222,67 Gio1,52 GioDébordement RAM
GPU 32 Go + 64 Go RAM8k · KV FP1662 / 6219,55 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1660 / 6230,46 Gio0,99 GioDébordement RAM
GPU 32 Go + 64 Go RAM32k · KV Q8_062 / 6224,19 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1662 / 6219,55 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1662 / 6231,45 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_062 / 6224,19 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1662 / 6219,55 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1662 / 6231,45 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_062 / 6224,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-… !

8. Variantes & modèles proches à comparer dans l’Atlas