OutilsIA
EN Télécharger

Logiciels Rust (Windows & Linux)

Labo navigateur & Preuves

Ressources

Tous les téléchargements
Qwen 3 · IQ4_XS · Dense · GGUF v3

Qwen3 4B (IQ4_XS) (IQ4_XS) : VRAM exacte, KV-Cache & Tenseurs

Variante imatrix compacte de Qwen3 4B (~2,1 Go) libérant de la VRAM pour un contexte long sur GPU 6 à 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)3,98 Gio32k en KV Q8_0 : 5,45 Gio
Poids binaires .GGUF2,11 Gio4,50 bits/poids effectifs
Paramètres (Actifs / Totaux)4,02 / 4,02 Md398 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 officielbartowski/Qwen_Qwen3-4B-GGUF
Fichier inspectéQwen_Qwen3-4B-IQ4_XS.gguf (2,11 Gio)
Commit HuggingFacecb76885dc66d
Date de lecture2026-12-01 15:04:43 UTC
En-tête analysé5 957 040 octets (SHA-256 d4517f4e67e11a60cb70…)

2. Architecture & dimensions GQA

Architecture GGUFqwen3 (Dense)
Couches Transformer36 couches (~51,5 Mio / couche)
Dimensions (d_model / FFN)2560 / 9728
Têtes d’attention (Q / KV)32 Q / 8 KV (GQA 4,0:1, dim 128)
Contexte natif & Vocabulaire32 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 GGMLNombre de tenseursVolumePart du poidsRépartition
IQ4_XS2161,75 Gio83,0 %
Q6_K10,30 Gio14,1 %
Q5_K360,06 Gio2,9 %
F321450,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,28 Gio0,15 Gio0,08 Gio3,14 Gio3,01 Gio
4k (4 096)0,56 Gio0,30 Gio0,16 Gio3,42 Gio3,16 Gio
8k (8 192)1,13 Gio0,60 Gio0,32 Gio3,99 Gio3,46 Gio
16k (16 384)2,25 Gio1,20 Gio0,63 Gio5,11 Gio4,06 Gio
32k (32 768)4,50 Gio2,39 Gio1,27 Gio7,36 Gio5,25 Gio
64k (65 536)9,00 Gio4,78 Gio2,53 Gio11,86 Gio7,64 Gio
128k (131 072)18,00 Gio9,56 Gio5,06 Gio20,86 Gio12,42 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 FP1636 / 363,46 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM8k · KV FP1636 / 363,46 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM8k · KV FP1636 / 363,46 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM8k · KV FP1636 / 363,46 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM8k · KV FP1636 / 363,46 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1636 / 363,46 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1636 / 366,96 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_036 / 364,85 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1636 / 363,46 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1636 / 366,96 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_036 / 364,85 Gio—Mémoire unifiée

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

Avec Ollama :
ollama run hf.co/bartowski/Qwen_Qwen3-4B-GGUF:IQ4_XS
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m Qwen_Qwen3-4B-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-… !

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

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