OutilsIA
EN Télécharger

Logiciels Rust (Windows & Linux)

Labo navigateur & Preuves

Ressources

Tous les téléchargements
Qwen 2.5 · Q4_K_M · Dense · GGUF v3

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

Modèle polyvalent 7B à GQA ultra-serré (4 têtes KV, 56 Mio/1k) permettant jusqu'à 32k de contexte dans 8 Go de VRAM.

⚡ 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,54 Gio32k en KV Q8_0 : 6,24 Gio
Poids binaires .GGUF4,36 Gio4,91 bits/poids effectifs
Paramètres (Actifs / Totaux)7,62 / 7,62 Md339 tenseurs analysés
Coût du Cache KV56,0 Mio/1kEn Q8_0 : 29,8 Mio / 1 000 tok

1. Provenance binaire HuggingFace

Dépôt officielQwen/Qwen2.5-7B-Instruct-GGUF
Fichier inspectéqwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf (4,36 Gio)
Commit HuggingFacebb5d59e06d95
Date de lecture2026-12-01 15:04:48 UTC
En-tête analysé5 950 142 octets (SHA-256 88dddc9e2022af0df8f4…)

2. Architecture & dimensions GQA

Architecture GGUFqwen2 (Dense)
Couches Transformer28 couches (~133,6 Mio / couche)
Dimensions (d_model / FFN)3584 / 18944
Têtes d’attention (Q / KV)28 Q / 4 KV (GQA 7,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_K1693,19 Gio73,3 %
Q6_K291,16 Gio26,7 %
F321410,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,11 Gio0,06 Gio0,03 Gio5,22 Gio5,17 Gio
4k (4 096)0,22 Gio0,12 Gio0,06 Gio5,33 Gio5,23 Gio
8k (8 192)0,44 Gio0,23 Gio0,12 Gio5,55 Gio5,34 Gio
16k (16 384)0,88 Gio0,46 Gio0,25 Gio5,99 Gio5,57 Gio
32k (32 768)1,75 Gio0,93 Gio0,49 Gio6,86 Gio6,04 Gio
64k (65 536)3,50 Gio1,86 Gio0,98 Gio8,61 Gio6,97 Gio
128k (131 072)7,00 Gio3,72 Gio1,97 Gio12,11 Gio8,83 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 FP1628 / 285,03 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM8k · KV FP1628 / 285,03 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM8k · KV FP1628 / 285,03 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM8k · KV FP1628 / 285,03 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM8k · KV FP1628 / 285,03 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1628 / 285,03 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1628 / 286,53 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_028 / 285,71 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1628 / 285,03 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1628 / 286,53 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_028 / 285,71 Gio—Mémoire unifiée

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

Avec Ollama :
ollama run qwen2.5:7b
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m qwen2.5-7b-instruct-q4_k_m-00001-of-00002.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-bcec724ebfNVIDIA GeForce RTX 4080 SUPER · OLLAMA · 2026-12-01115,2 tok/s

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

Qwen2.5 7B vs Llama 3.1 8B : duel KV-cache double certifié Ed25519Comparer ce modèle face à un autre (.GGUF) →