Qwen2.5 32B Instruct (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs
Grand modèle dense 32B (~18,5 Go en Q4_K_M) : valeur sûre polyvalente pour cartes 24 Go (RTX 3090 / 4090).
1. Provenance binaire HuggingFace
| Dépôt officiel | Qwen/Qwen2.5-32B-Instruct-GGUF |
|---|---|
| Fichier inspecté | qwen2.5-32b-instruct-q4_k_m-00001-of-00005.gguf (18,49 Gio) |
| Commit HuggingFace | a15e3cc10f8b |
| Date de lecture | 2026-12-01 15:05:23 UTC |
| En-tête analysé | 5 941 896 octets (SHA-256 47352d948718caf2942c…) |
2. Architecture & dimensions GQA
| Architecture GGUF | qwen2 (Dense) |
|---|---|
| Couches Transformer | 64 couches (~139,8 Mio / couche) |
| Dimensions (d_model / FFN) | 5120 / 27648 |
| Têtes d’attention (Q / KV) | 40 Q / 8 KV (GQA 5,0:1, dim 128) |
| Contexte natif & Vocabulaire | 131 072 tokens · vocab 152 064 |
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 | 385 | 14,29 Gio | 77,3 % | |
Q6_K | 65 | 4,18 Gio | 22,6 % | |
F32 | 321 | 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,50 Gio | 0,27 Gio | 0,14 Gio | 19,73 Gio | 19,50 Gio |
| 4k (4 096) | 1,00 Gio | 0,53 Gio | 0,28 Gio | 20,23 Gio | 19,76 Gio |
| 8k (8 192) | 2,00 Gio | 1,06 Gio | 0,56 Gio | 21,23 Gio | 20,29 Gio |
| 16k (16 384) | 4,00 Gio | 2,13 Gio | 1,13 Gio | 23,23 Gio | 21,36 Gio |
| 32k (32 768) | 8,00 Gio | 4,25 Gio | 2,25 Gio | 27,23 Gio | 23,48 Gio |
| 64k (65 536) | 16,00 Gio | 8,50 Gio | 4,50 Gio | 35,23 Gio | 27,73 Gio |
| 128k (131 072) | 32,00 Gio | 17,00 Gio | 9,00 Gio | 51,23 Gio | 36,23 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 | 25 / 64 | 7,29 Gio | 4,72 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 14 / 64 | 7,21 Gio | 11,06 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 20 / 64 | 7,30 Gio | 7,22 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 37 / 64 | 11,17 Gio | 0,84 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 24 / 64 | 11,12 Gio | 7,15 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 30 / 64 | 11,17 Gio | 3,35 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 64 / 64 | 12,01 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 38 / 64 | 15,02 Gio | 3,25 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 64 / 64 | 14,52 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 64 / 64 | 12,01 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 64 / 64 | 18,27 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 64 / 64 | 14,52 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 64 / 64 | 12,01 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 64 / 64 | 18,27 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 64 / 64 | 14,52 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 64 / 64 | 12,01 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 64 / 64 | 18,27 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 64 / 64 | 14,52 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 64 / 64 | 20,75 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 64 / 64 | 27,01 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 64 / 64 | 23,26 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-… !