Qwen3 8B (IQ4_XS) (IQ4_XS) : VRAM exacte, KV-Cache & Tenseurs
Variante imatrix IQ4_XS de Qwen3 8B (~4,2 Go) donnant de l'air au cache KV 16k–32k sur carte 8 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)6,12 Gio32k en KV Q8_0 : 7,58 Gio
Poids binaires .GGUF4,24 Gio4,45 bits/poids effectifs
Paramètres (Actifs / Totaux)8,19 / 8,19 Md399 tenseurs analysés
Coût du Cache KV144,0 Mio/1kEn Q8_0 : 76,5 Mio / 1 000 tok
1. Provenance binaire HuggingFace
| Dépôt officiel | bartowski/Qwen_Qwen3-8B-GGUF |
|---|---|
| Fichier inspecté | Qwen_Qwen3-8B-IQ4_XS.gguf (4,25 Gio) |
| Commit HuggingFace | 0b69f75b7472 |
| Date de lecture | 2026-12-01 15:04:53 UTC |
| En-tête analysé | 5 957 138 octets (SHA-256 258cb8081ffb7c34c4fe…) |
2. Architecture & dimensions GQA
| Architecture GGUF | qwen3 (Dense) |
|---|---|
| Couches Transformer | 36 couches (~98,4 Mio / couche) |
| Dimensions (d_model / FFN) | 4096 / 12288 |
| Têtes d’attention (Q / KV) | 32 Q / 8 KV (GQA 4,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 IQ4_XS conserve certains tenseurs critiques dans une précision supérieure :
| Type GGML | Nombre de tenseurs | Volume | Part du poids | Répartition |
|---|---|---|---|---|
IQ4_XS | 217 | 3,67 Gio | 86,5 % | |
Q6_K | 1 | 0,48 Gio | 11,2 % | |
Q5_K | 36 | 0,10 Gio | 2,3 % | |
F32 | 145 | 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,28 Gio | 0,15 Gio | 0,08 Gio | 5,27 Gio | 5,14 Gio |
| 4k (4 096) | 0,56 Gio | 0,30 Gio | 0,16 Gio | 5,55 Gio | 5,29 Gio |
| 8k (8 192) | 1,13 Gio | 0,60 Gio | 0,32 Gio | 6,12 Gio | 5,59 Gio |
| 16k (16 384) | 2,25 Gio | 1,20 Gio | 0,63 Gio | 7,24 Gio | 6,19 Gio |
| 32k (32 768) | 4,50 Gio | 2,39 Gio | 1,27 Gio | 9,49 Gio | 7,38 Gio |
| 64k (65 536) | 9,00 Gio | 4,78 Gio | 2,53 Gio | 13,99 Gio | 9,77 Gio |
| 128k (131 072) | 18,00 Gio | 9,56 Gio | 5,06 Gio | 22,99 Gio | 14,55 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 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 27 / 36 | 7,21 Gio | 1,99 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | 100 % VRAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 36 / 36 | 5,62 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 36 / 36 | 9,20 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 36 / 36 | 7,09 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
Avec Ollama :
ollama run hf.co/bartowski/Qwen_Qwen3-8B-GGUF:IQ4_XS
Avec
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :llama-server -m Qwen_Qwen3-8B-IQ4_XS.gguf -ngl 36 -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-… !