OutilsIA
EN Télécharger

Logiciels Rust (Windows & Linux)

Labo navigateur & Preuves

Ressources

Tous les téléchargements
DeepSeek R1 · Q4_K_M · Dense · GGUF v3

DeepSeek-R1 Distill Llama 8B (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs

Distillation DeepSeek-R1 sur architecture Llama 3.1 8B (~4,6 Go) tenant intégralement dans 8 Go de VRAM à 8k.

⚡ 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,33 Gio32k en KV Q8_0 : 7,65 Gio
Poids binaires .GGUF4,58 Gio4,89 bits/poids effectifs
Paramètres (Actifs / Totaux)8,03 / 8,03 Md292 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/DeepSeek-R1-Distill-Llama-8B-GGUF
Fichier inspectéDeepSeek-R1-Distill-Llama-8B-Q4_K_M.gguf (4,58 Gio)
Commit HuggingFace935d400c2ed1
Date de lecture2026-12-01 15:04:50 UTC
En-tête analysé7 838 283 octets (SHA-256 508aa9ad3b94fea18b52…)

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 & Vocabulaire131 072 tokens · vocab 128 256

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,40 Gio74,4 %
Q6_K331,17 Gio25,6 %
F32660,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,58 Gio5,46 Gio
4k (4 096)0,50 Gio0,27 Gio0,14 Gio5,83 Gio5,60 Gio
8k (8 192)1,00 Gio0,53 Gio0,28 Gio6,33 Gio5,86 Gio
16k (16 384)2,00 Gio1,06 Gio0,56 Gio7,33 Gio6,39 Gio
32k (32 768)4,00 Gio2,13 Gio1,13 Gio9,33 Gio7,46 Gio
64k (65 536)8,00 Gio4,25 Gio2,25 Gio13,33 Gio9,58 Gio
128k (131 072)16,00 Gio8,50 Gio4,50 Gio21,33 Gio13,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 FP1632 / 325,83 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV FP1625 / 327,28 Gio1,75 GioDébordement RAM
GPU 8 Go + 16 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM8k · KV FP1632 / 325,83 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV FP1632 / 329,04 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM8k · KV FP1632 / 325,83 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV FP1632 / 329,04 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM8k · KV FP1632 / 325,83 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1632 / 329,04 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM8k · KV FP1632 / 325,83 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1632 / 329,04 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1632 / 325,83 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1632 / 329,04 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_032 / 327,16 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1632 / 325,83 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1632 / 329,04 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_032 / 327,16 Gio—Mémoire unifiée

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

Avec Ollama :
ollama run deepseek-r1:8b-llama-distill-q4_K_M
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m DeepSeek-R1-Distill-Llama-8B-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

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-… !

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

Comparer ce modèle face à un autre (.GGUF) →