Microsoft
Phi-4 mini 3.8B
3,8B
Parameters
2,3 Go
Q4_K_M file
≥ 3,8 Go
Recommended VRAM
131 072
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 | 159 tok/s | 12 101 | 3,1 Go | 137 W | 0,06 €/M tok | — |
Not measured on these cards yet — click for an estimate:
Technical sheet
- Published
- 2025-02-19
- Architecture
- 32 layers · 8 KV heads · dimension 128
- Attention
- Standard: every layer keeps the whole context in memory.
- Context cache (f16)
- ≈ 125 MB per 1,000 tokens · 4,0 Go for 32,768 tokens
- GGUF file
- bartowski/microsoft_Phi-4-mini-instruct-GGUF · microsoft_Phi-4-mini-instruct-Q4_K_M.gguf Download (2,3 Go)
- Official repo
- microsoft/Phi-4-mini-instruct
Public Hugging Face data (official config.json, GGUF repo). The context cache only counts full-attention layers.