Phi-3-mini-4k-instruct GGUF size and VRAM requirements

License: mit ⬇ 38,347 ❤ 596
Parameters3.82B
Context4,096

microsoft/Phi-3-mini-4k-instruct-gguf is a mid-size instruction-tuned chat model with 3.82 billion parameters, built on the phi3 architecture. It is released under the mit license and has been downloaded 38,347 times.

To run microsoft/Phi-3-mini-4k-instruct-gguf locally at a 4,096-token context, its quantized versions need between 4.53 GB (Q4, lowest quality) and 9.42 GB (GGUF, highest quality) of memory, weights plus KV cache and a system margin included.

For most users the best balance is Q4, needing about 4.53 GB. That means microsoft/Phi-3-mini-4k-instruct-gguf fits entirely in the VRAM of a 6 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
Q4 5.01 Very good 2.23 GB 1.5 GB 4.53 GB 179.5 t/s Fits in VRAM
GGUF 16.0 Excellent 7.12 GB 1.5 GB 9.42 GB 7.0 t/s Offload

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 microsoft/Phi-3-mini-4k-instruct-gguf?

You need about 4.53 GB of VRAM to run microsoft/Phi-3-mini-4k-instruct-gguf entirely on the GPU using the Q4 quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run microsoft/Phi-3-mini-4k-instruct-gguf on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run microsoft/Phi-3-mini-4k-instruct-gguf fully on the GPU using Q4 (about 4.53 GB).

Can I run microsoft/Phi-3-mini-4k-instruct-gguf on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run microsoft/Phi-3-mini-4k-instruct-gguf fully on the GPU using GGUF (about 9.42 GB).

Can I run microsoft/Phi-3-mini-4k-instruct-gguf on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run microsoft/Phi-3-mini-4k-instruct-gguf fully on the GPU using GGUF (about 9.42 GB).

What is the best quantization for microsoft/Phi-3-mini-4k-instruct-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.