OutilsIA
EN Télécharger

Logiciels Rust (Windows & Linux)

Labo navigateur & Preuves

Ressources

Tous les téléchargements
Mistral · Q4_K_M · Dense · GGUF v3

Mistral 7B Instruct v0.3 (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs

Classique 7B de Mistral AI (~4,1 Go, GQA 32/8) : référence historique légère et rapide sur GPU 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)5,82 Gio32k en KV Q8_0 : 7,15 Gio
Poids binaires .GGUF4,07 Gio4,83 bits/poids effectifs
Paramètres (Actifs / Totaux)7,25 / 7,25 Md291 tenseurs analysés
Coût du Cache KV128,0 Mio/1kEn Q8_0 : 68,0 Mio / 1 000 tok

1. Provenance binaire HuggingFace

Dépôt officielbartowski/Mistral-7B-Instruct-v0.3-GGUF
Fichier inspectéMistral-7B-Instruct-v0.3-Q4_K_M.gguf (4,07 Gio)
Commit HuggingFace61fd4167fff3
Date de lecture2026-12-01 15:04:47 UTC
En-tête analysé757 971 octets (SHA-256 2894fefa89355cb36fde…)

2. Architecture & dimensions GQA

Architecture GGUFllama (Dense)
Couches Transformer32 couches (~124,8 Mio / couche)
Dimensions (d_model / FFN)4096 / 14336
Têtes d’attention (Q / KV)32 Q / 8 KV (GQA 4,0:1, dim 128)
Contexte natif & Vocabulaire32 768 tokens · vocab 32 768

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_K1933,20 Gio78,6 %
Q6_K330,87 Gio21,4 %
F32650,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,25 Gio0,13 Gio0,07 Gio5,07 Gio4,95 Gio
4k (4 096)0,50 Gio0,27 Gio0,14 Gio5,32 Gio5,09 Gio
8k (8 192)1,00 Gio0,53 Gio0,28 Gio5,82 Gio5,35 Gio
16k (16 384)2,00 Gio1,06 Gio0,56 Gio6,82 Gio5,88 Gio
32k (32 768)4,00 Gio2,13 Gio1,13 Gio8,82 Gio6,95 Gio
64k (65 536)8,00 Gio4,25 Gio2,25 Gio12,82 Gio9,07 Gio
128k (131 072)16,00 Gio8,50 Gio4,50 Gio20,82 Gio13,32 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 FP1632 / 325,32 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV FP1627 / 327,26 Gio1,27 GioDébordement RAM
GPU 8 Go + 16 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM8k · KV FP1632 / 325,32 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV FP1632 / 328,53 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM8k · KV FP1632 / 325,32 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV FP1632 / 328,53 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM8k · KV FP1632 / 325,32 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1632 / 328,53 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM8k · KV FP1632 / 325,32 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1632 / 328,53 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1632 / 325,32 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1632 / 328,53 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_032 / 326,66 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1632 / 325,32 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1632 / 328,53 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_032 / 326,66 Gio—Mémoire unifiée

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

Avec Ollama :
ollama run mistral:7b
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m Mistral-7B-Instruct-v0.3-Q4_K_M.gguf -ngl 32 -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-ff1e0d403bNVIDIA GeForce RTX 4080 SUPER · OLLAMA · 2026-12-01124,6 tok/s

8. Variantes & modèles proches à comparer dans l’Atlas

Mistral 7B v0.3 vs Llama 3.1 8B : duel 8 Go double certifié Ed25519Comparer ce modèle face à un autre (.GGUF) →