phi-4 GGUF size and VRAM requirements

⬇ 101,233 ❤ 8
Parameters14.66B
Context16,384

MaziyarPanahi/phi-4-GGUF is a large language model with 14.66 billion parameters, built on the phi3 architecture. It has been downloaded 101,233 times.

To run MaziyarPanahi/phi-4-GGUF locally at a 4,096-token context, its quantized versions need between 6.75 GB (Q2_K, lowest quality) and 28.89 GB (GGUF, highest quality) of memory, weights plus KV cache and a system margin included.

For most users the best balance is Q3_K_S, needing about 7.64 GB. That means MaziyarPanahi/phi-4-GGUF fits entirely in the VRAM of an 8 GB GPU or larger, running fully on the GPU.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
Q2_K 3.03 Low 5.17 GB 0.78 GB 6.75 GB 77.4 t/s Fits in VRAM
Q3_K_S 3.55 Fair 6.06 GB 0.78 GB 7.64 GB 66.0 t/s Fits in VRAM
Q3_K_M 4.02 Fair 6.86 GB 0.78 GB 8.44 GB 7.3 t/s Offload
Q3_K_L 4.33 Good 7.39 GB 0.78 GB 8.97 GB 6.8 t/s Offload
Q4_K_S 4.61 Good 7.86 GB 0.78 GB 9.44 GB 6.4 t/s Offload
Q4_K_M 4.94 Good 8.43 GB 0.78 GB 10.01 GB 5.9 t/s Offload
Q5_K_S 5.54 Very good 9.45 GB 0.78 GB 11.04 GB 5.3 t/s Offload
Q5_K_M 5.79 Very good 9.88 GB 0.78 GB 11.46 GB 5.1 t/s Offload
Q6_K 6.57 Excellent 11.2 GB 0.78 GB 12.79 GB 4.5 t/s Offload
Q8_0 8.5 Excellent 14.51 GB 0.78 GB 16.09 GB 3.4 t/s Offload
GGUF 16.0 Excellent 27.31 GB 0.78 GB 28.89 GB Insufficient

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

How much VRAM do you need to run MaziyarPanahi/phi-4-GGUF?

You need about 7.64 GB of VRAM to run MaziyarPanahi/phi-4-GGUF entirely on the GPU using the Q3_K_S quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run MaziyarPanahi/phi-4-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run MaziyarPanahi/phi-4-GGUF fully on the GPU using Q3_K_S (about 7.64 GB).

Can I run MaziyarPanahi/phi-4-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run MaziyarPanahi/phi-4-GGUF fully on the GPU using Q6_K (about 12.79 GB).

Can I run MaziyarPanahi/phi-4-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run MaziyarPanahi/phi-4-GGUF fully on the GPU using Q8_0 (about 16.09 GB).

What is the best quantization for MaziyarPanahi/phi-4-GGUF?

If memory allows, higher bits-per-weight means better quality. A common sweet spot is a Q4_K_M or Q5_K_M quantization, which keeps most of the quality while roughly halving the memory versus 8-bit. Pick the highest quantization that still fits in your VRAM.