Gemma 2 9B
9,2B
Parameters
5,4 Go
Q4_K_M file
≥ 6,9 Go
Recommended VRAM
8 192
Max context
Speed by graphics card
Simulate in the “Configurator” →Standard llama-bench run (prompt 512 / generation 128 tokens), model fully in VRAM. Click a card for details. Electricity cost at the default price (0,25 €/kWh).
| Card · Q4_K_M | VRAM | Generation | Prompt | VRAM used | Power | € elec. / M tok | Price |
|---|---|---|---|---|---|---|---|
| RTX 4070 Ti | 12 Go | 72,1 tok/s | 4 982 | 6,8 Go | 153 W | 0,15 €/M tok | — |
Not measured on these cards yet — click for an estimate:
Technical sheet
- Published
- 2024-06-24
- Architecture
- 42 layers · 8 KV heads · dimension 256
- Attention
- Sliding window: 21 of 42 layers keep the whole context, the others only the last 4096 tokens — a much lighter cache.
- Context cache (f16)
- ≈ 164 MB per 1,000 tokens · 5,3 Go for 32,768 tokens
- GGUF file
- bartowski/gemma-2-9b-it-GGUF · gemma-2-9b-it-Q4_K_M.gguf Download (5,4 Go)
- Official repo
- google/gemma-2-9b-it
Public Hugging Face data (official config.json, GGUF repo). The context cache only counts full-attention layers.