Llama 3.2 1B Instruct (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs
Modèle Meta 1B ultra-léger (< 1 Go) à contexte natif 128k, idéal pour tests instantanés et PC portables modestes.
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/Llama-3.2-1B-Instruct-GGUF |
|---|---|
| Fichier inspecté | Llama-3.2-1B-Instruct-Q4_K_M.gguf (0,75 Gio) |
| Commit HuggingFace | 067b946cf014 |
| Date de lecture | 2026-12-01 15:04:40 UTC |
| En-tête analysé | 7 831 525 octets (SHA-256 65b8eaf8a13a640336c5…) |
2. Architecture & dimensions GQA
| Architecture GGUF | llama (Dense) |
|---|---|
| Couches Transformer | 16 couches (~34,8 Mio / couche) |
| Dimensions (d_model / FFN) | 2048 / 8192 |
| Têtes d’attention (Q / KV) | 32 Q / 8 KV (GQA 4,0:1, dim 64) |
| Contexte natif & Vocabulaire | 131 072 tokens · vocab 128 256 |
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 | 96 | 0,44 Gio | 58,4 % | |
Q6_K | 17 | 0,31 Gio | 41,6 % | |
F32 | 34 | 0,00 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,06 Gio | 0,03 Gio | 0,02 Gio | 1,55 Gio | 1,52 Gio |
| 4k (4 096) | 0,13 Gio | 0,07 Gio | 0,04 Gio | 1,62 Gio | 1,56 Gio |
| 8k (8 192) | 0,25 Gio | 0,13 Gio | 0,07 Gio | 1,74 Gio | 1,62 Gio |
| 16k (16 384) | 0,50 Gio | 0,27 Gio | 0,14 Gio | 1,99 Gio | 1,76 Gio |
| 32k (32 768) | 1,00 Gio | 0,53 Gio | 0,28 Gio | 2,49 Gio | 2,02 Gio |
| 64k (65 536) | 2,00 Gio | 1,06 Gio | 0,56 Gio | 3,49 Gio | 2,55 Gio |
| 128k (131 072) | 4,00 Gio | 2,13 Gio | 1,13 Gio | 5,49 Gio | 3,62 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 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 16 / 16 | 1,60 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 16 / 16 | 1,21 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 16 / 16 | 2,06 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 16 / 16 | 1,60 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-… !