OutilsIA
EN Télécharger

Logiciels Rust (Windows & Linux)

Labo navigateur & Preuves

Ressources

Tous les téléchargements
Gemma 3 · Q4_K_M · Dense · GGUF v3

Gemma 3 1B IT (Q4_K_M) : VRAM exacte, KV-Cache & Tenseurs

Ultra-compact Google 1B (< 1 Go) capable de tourner sur PC bureautique sans carte dédiée ou Raspberry Pi.

⚡ 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)1,70 Gio32k en KV Q8_0 : 2,13 Gio
Poids binaires .GGUF0,74 Gio6,40 bits/poids effectifs
Paramètres (Actifs / Totaux)1,00 / 1,00 Md340 tenseurs analysés
Coût du Cache KV26,0 Mio/1kEn Q8_0 : 13,8 Mio / 1 000 tok

1. Provenance binaire HuggingFace

Dépôt officielbartowski/google_gemma-3-1b-it-GGUF
Fichier inspectégoogle_gemma-3-1b-it-Q4_K_M.gguf (0,75 Gio)
Commit HuggingFace116f76234503
Date de lecture2026-12-01 15:04:39 UTC
En-tête analysé6 533 370 octets (SHA-256 63f2f755093c0a3db177…)

2. Architecture & dimensions GQA

Architecture GGUFgemma3 (Dense)
Couches Transformer26 couches (~17,6 Mio / couche)
Dimensions (d_model / FFN)1152 / 6912
Têtes d’attention (Q / KV)4 Q / 1 KV (GQA 4,0:1, dim 256)
Contexte natif & Vocabulaire32 768 tokens · vocab 262 144

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
Q8_0140,30 Gio40,6 %
Q5_01170,29 Gio39,2 %
Q6_K130,08 Gio10,6 %
Q4_K390,07 Gio9,4 %
F321570,00 Gio0,1 %

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,05 Gio0,03 Gio0,01 Gio1,54 Gio1,52 Gio
4k (4 096)0,10 Gio0,05 Gio0,03 Gio1,59 Gio1,54 Gio
8k (8 192)0,20 Gio0,11 Gio0,06 Gio1,69 Gio1,60 Gio
16k (16 384)0,41 Gio0,22 Gio0,11 Gio1,90 Gio1,71 Gio
32k (32 768)0,81 Gio0,43 Gio0,23 Gio2,30 Gio1,92 Gio
64k (65 536)1,63 Gio0,86 Gio0,46 Gio3,12 Gio2,35 Gio
128k (131 072)3,25 Gio1,73 Gio0,91 Gio4,74 Gio3,22 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 FP1626 / 261,11 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
GPU 8 Go + 16 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM8k · KV FP1626 / 261,11 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
GPU 12 Go + 32 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM8k · KV FP1626 / 261,11 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
GPU 16 Go + 32 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM8k · KV FP1626 / 261,11 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
GPU 24 Go + 64 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM8k · KV FP1626 / 261,11 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
GPU 32 Go + 64 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM8k · KV FP1626 / 261,11 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV FP1626 / 261,78 Gio—100 % VRAM
Bi-GPU 48 Go + 128 Go RAM32k · KV Q8_026 / 261,40 Gio—100 % VRAM
Mémoire unifiée 64 Go8k · KV FP1626 / 261,15 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV FP1626 / 261,82 Gio—Mémoire unifiée
Mémoire unifiée 64 Go32k · KV Q8_026 / 261,44 Gio—Mémoire unifiée

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

Avec Ollama :
ollama run gemma3:1b
Avec llama-server (Flash Attention + Cache KV Q8_0 calibré pour 16 Go VRAM) :
llama-server -m google_gemma-3-1b-it-Q4_K_M.gguf -ngl 26 -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) →