Qwen3 0.6B (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs
Micro-modèle dense ultra-rapide (< 0,6 Go) idéal pour CPU seul, mini-PC, routage local ou validation éclair.
⚡ 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)2,07 Gio32k en KV Q8_0 : 3,25 Gio
Poids binaires .GGUF0,45 Gio5,09 bits/poids effectifs
Paramètres (Actifs / Totaux)0,75 / 0,75 Md311 tenseurs analysés
Coût du Cache KV112,0 Mio/1kEn Q8_0 : 59,5 Mio / 1 000 tok
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/Qwen_Qwen3-0.6B-GGUF |
|---|---|
| Fichier inspecté | Qwen_Qwen3-0.6B-Q4_K_M.gguf (0,45 Gio) |
| Commit HuggingFace | 60b85c0e3d8f |
| Date de lecture | 2026-11-29 15:28:11 UTC |
| En-tête analysé | 5 951 885 octets (SHA-256 2bdc967cc4da5a9a8058…) |
2. Architecture & dimensions GQA
| Architecture GGUF | qwen3 (Dense) |
|---|---|
| Couches Transformer | 28 couches (~9,0 Mio / couche) |
| Dimensions (d_model / FFN) | 1024 / 3072 |
| Têtes d’attention (Q / KV) | 16 Q / 8 KV (GQA 2,0:1, dim 128) |
| Contexte natif & Vocabulaire | 32 768 tokens · vocab 151 936 |
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 | 169 | 0,28 Gio | 63,2 % | |
Q6_K | 29 | 0,16 Gio | 36,8 % | |
F32 | 113 | 0,00 Gio | 0,1 % |
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,22 Gio | 0,12 Gio | 0,06 Gio | 1,42 Gio | 1,32 Gio |
| 4k (4 096) | 0,44 Gio | 0,23 Gio | 0,12 Gio | 1,64 Gio | 1,43 Gio |
| 8k (8 192) | 0,88 Gio | 0,46 Gio | 0,25 Gio | 2,08 Gio | 1,66 Gio |
| 16k (16 384) | 1,75 Gio | 0,93 Gio | 0,49 Gio | 2,95 Gio | 2,13 Gio |
| 32k (32 768) | 3,50 Gio | 1,86 Gio | 0,98 Gio | 4,70 Gio | 3,06 Gio |
| 64k (65 536) | 7,00 Gio | 3,72 Gio | 1,97 Gio | 8,20 Gio | 4,92 Gio |
| 128k (131 072) | 14,00 Gio | 7,44 Gio | 3,94 Gio | 15,20 Gio | 8,64 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 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 28 / 28 | 1,47 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 28 / 28 | 4,15 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 28 / 28 | 2,51 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 28 / 28 | 1,52 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 28 / 28 | 4,20 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 28 / 28 | 2,55 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
Avec Ollama :
ollama run qwen3:0.6b
Avec
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :llama-server -m Qwen_Qwen3-0.6B-Q4_K_M.gguf -ngl 28 -c 32768 -fa --cache-type-k q8_0 --cache-type-v q8_0
7. Bancs réels certifiés Ed25519 sur ce modèle
lc-475df89869NVIDIA GeForce RTX 4080 SUPER · OLLAMA · 2026-11-29198,5 tok/s