Qwen Coder · Q4_K_M · Dense · GGUF v3

Qwen2.5 Coder 32B Instruct (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs

Poids lourd du code local (~18,5 Go en Q4_K_M) : occupe 100 % d'une carte 24 Go avec marge pour 16k–32k de contexte.

⚡ 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)21,23 Gio32k en KV Q8_0 : 23,68 Gio
Poids binaires .GGUF18,48 Gio4,85 bits/poids effectifs
Paramètres (Actifs / Totaux)32,76 / 32,76 Md771 tenseurs analysés
Coût du Cache KV256,0 Mio/1kEn Q8_0 : 136,0 Mio / 1 000 tok

1. Provenance binaire HuggingFace

Dépôt officielQwen/Qwen2.5-Coder-32B-Instruct-GGUF
Fichier inspectéqwen2.5-coder-32b-instruct-q4_k_m.gguf (18,49 Gio)
Commit HuggingFace9d3053fce650
Date de lecture2026-11-29 15:28:36 UTC
En-tête analysé5 978 294 octets (SHA-256 8af14628d9ea6fdd47df…)

2. Architecture & dimensions GQA

Architecture GGUFqwen2 (Dense)
Couches Transformer64 couches (~279,7 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 & Vocabulaire131 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 GGMLNombre de tenseursVolumePart du poidsRépartition
Q4_K38514,29 Gio77,3 %
Q6_K654,18 Gio22,6 %
F323210,00 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,50 Gio0,27 Gio0,14 Gio19,73 Gio19,50 Gio
4k (4 096)1,00 Gio0,53 Gio0,28 Gio20,23 Gio19,76 Gio
8k (8 192)2,00 Gio1,06 Gio0,56 Gio21,23 Gio20,29 Gio
16k (16 384)4,00 Gio2,13 Gio1,13 Gio23,23 Gio21,36 Gio
32k (32 768)8,00 Gio4,25 Gio2,25 Gio27,23 Gio23,48 Gio
64k (65 536)16,00 Gio8,50 Gio4,50 Gio35,23 Gio27,73 Gio
128k (131 072)32,00 Gio17,00 Gio9,00 Gio51,23 Gio36,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 RAM8k · KV FP1619 / 647,11 Gio13,64 GioMémoire insuffisante
GPU 8 Go + 16 Go RAM32k · KV FP1614 / 647,21 Gio19,80 GioMémoire insuffisante
GPU 8 Go + 16 Go RAM32k · KV Q8_016 / 647,04 Gio16,23 GioMémoire insuffisante
GPU 12 Go + 32 Go RAM8k · KV FP1632 / 6411,01 Gio9,74 GioDébordement RAM
GPU 12 Go + 32 Go RAM32k · KV FP1624 / 6411,12 Gio15,89 GioDébordement RAM
GPU 12 Go + 32 Go RAM32k · KV Q8_028 / 6411,04 Gio12,22 GioDébordement RAM
GPU 16 Go + 32 Go RAM8k · KV FP1645 / 6414,88 Gio5,87 GioDébordement RAM
GPU 16 Go + 32 Go RAM32k · KV FP1634 / 6415,03 Gio11,98 GioDébordement RAM
GPU 16 Go + 32 Go RAM32k · KV Q8_040 / 6415,04 Gio8,22 GioDébordement RAM
GPU 24 Go + 64 Go RAM8k · KV FP1664 / 6420,75 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1653 / 6422,51 Gio4,50 GioDébordement RAM
GPU 24 Go + 64 Go RAM32k · KV Q8_062 / 6422,55 Gio0,71 GioDébordement RAM
GPU 32 Go + 64 Go RAM8k · KV FP1664 / 6420,75 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1664 / 6427,01 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_064 / 6423,26 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1664 / 6420,75 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1664 / 6427,01 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_064 / 6423,26 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1664 / 6420,75 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1664 / 6427,01 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_064 / 6423,26 Gio—Mémoire unifiée

6. Commandes d’exécution locale prêtes à copier

Avec Ollama :
ollama run qwen2.5-coder:32b
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m qwen2.5-coder-32b-instruct-q4_k_m.gguf -ngl 40 -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