Mistral Small 3.1 24B (Q4_K_M) (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs
24B dense (~13,5 Go de poids) : serré sur 16 Go VRAM en Q4_K_M dès que le contexte monte, idéal sur 24 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)15,34 Gio32k en KV Q8_0 : 16,95 Gio
Poids binaires .GGUF13,34 Gio4,86 bits/poids effectifs
Paramètres (Actifs / Totaux)23,57 / 23,57 Md363 tenseurs analysés
Coût du Cache KV160,0 Mio/1kEn Q8_0 : 85,0 Mio / 1 000 tok
1. Provenance binaire HuggingFace
| Dépôt officiel | unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF |
|---|---|
| Fichier inspecté | Mistral-Small-3.1-24B-Instruct-2503-Q4_K_M.gguf (13,35 Gio) |
| Commit HuggingFace | d63ca9416f5d |
| Date de lecture | 2026-11-29 15:28:31 UTC |
| En-tête analysé | 7 884 340 octets (SHA-256 885122661d6cf66b220c…) |
2. Architecture & dimensions GQA
| Architecture GGUF | llama (Dense) |
|---|---|
| Couches Transformer | 40 couches (~319,4 Mio / couche) |
| Dimensions (d_model / FFN) | 5120 / 32768 |
| Têtes d’attention (Q / KV) | 32 Q / 8 KV (GQA 4,0:1, dim 128) |
| Contexte natif & Vocabulaire | 131 072 tokens · vocab 131 072 |
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 | 241 | 10,18 Gio | 76,3 % | |
Q6_K | 41 | 3,16 Gio | 23,7 % | |
F32 | 81 | 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,31 Gio | 0,17 Gio | 0,09 Gio | 14,40 Gio | 14,26 Gio |
| 4k (4 096) | 0,63 Gio | 0,33 Gio | 0,18 Gio | 14,72 Gio | 14,42 Gio |
| 8k (8 192) | 1,25 Gio | 0,66 Gio | 0,35 Gio | 15,34 Gio | 14,75 Gio |
| 16k (16 384) | 2,50 Gio | 1,33 Gio | 0,70 Gio | 16,59 Gio | 15,42 Gio |
| 32k (32 768) | 5,00 Gio | 2,66 Gio | 1,41 Gio | 19,09 Gio | 16,75 Gio |
| 64k (65 536) | 10,00 Gio | 5,31 Gio | 2,81 Gio | 24,09 Gio | 19,40 Gio |
| 128k (131 072) | 20,00 Gio | 10,63 Gio | 5,63 Gio | 34,09 Gio | 24,72 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 | 18 / 40 | 7,31 Gio | 7,55 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV FP16 | 13 / 40 | 7,10 Gio | 11,78 Gio | Débordement RAM |
| GPU 8 Go + 16 Go RAM | 32k · KV Q8_0 | 15 / 40 | 7,09 Gio | 9,44 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 8k · KV FP16 | 29 / 40 | 11,02 Gio | 3,84 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV FP16 | 22 / 40 | 10,97 Gio | 7,91 Gio | Débordement RAM |
| GPU 12 Go + 32 Go RAM | 32k · KV Q8_0 | 26 / 40 | 11,19 Gio | 5,34 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 8k · KV FP16 | 40 / 40 | 14,86 Gio | — | 100 % VRAM |
| GPU 16 Go + 32 Go RAM | 32k · KV FP16 | 31 / 40 | 14,84 Gio | 4,04 Gio | Débordement RAM |
| GPU 16 Go + 32 Go RAM | 32k · KV Q8_0 | 36 / 40 | 14,93 Gio | 1,60 Gio | Débordement RAM |
| GPU 24 Go + 64 Go RAM | 8k · KV FP16 | 40 / 40 | 14,86 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV FP16 | 40 / 40 | 18,87 Gio | — | 100 % VRAM |
| GPU 24 Go + 64 Go RAM | 32k · KV Q8_0 | 40 / 40 | 16,53 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 8k · KV FP16 | 40 / 40 | 14,86 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV FP16 | 40 / 40 | 18,87 Gio | — | 100 % VRAM |
| GPU 32 Go + 64 Go RAM | 32k · KV Q8_0 | 40 / 40 | 16,53 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 8k · KV FP16 | 40 / 40 | 14,86 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV FP16 | 40 / 40 | 18,87 Gio | — | 100 % VRAM |
| Bi-GPU 48 Go + 128 Go RAM | 32k · KV Q8_0 | 40 / 40 | 16,53 Gio | — | 100 % VRAM |
| Mémoire unifiée 64 Go | 8k · KV FP16 | 40 / 40 | 14,86 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV FP16 | 40 / 40 | 18,87 Gio | — | Mémoire unifiée |
| Mémoire unifiée 64 Go | 32k · KV Q8_0 | 40 / 40 | 16,53 Gio | — | Mémoire unifiée |
6. Commandes d’exécution locale prêtes à copier
Avec Ollama :
ollama run mistral-small3.1:24b
Avec
llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :llama-server -m Mistral-Small-3.1-24B-Instruct-2503-Q4_K_M.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-… !