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

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_MVRAMGenerationPromptVRAM usedPower€ elec. / M tokPrice
RTX 4070 Ti12 Go159 tok/s12 1013,1 Go137 W0,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)

Public Hugging Face data (official config.json, GGUF repo). The context cache only counts full-attention layers.