Phi-3.5-mini-instruct GGUF size and VRAM requirements

⬇ 147,600 ❤ 33
Parameters3.82B
Context131,072

MaziyarPanahi/Phi-3.5-mini-instruct-GGUF is a mid-size instruction-tuned chat model with 3.82 billion parameters, built on the phi3 architecture. It has been downloaded 147,600 times.

Under the hood it uses 32 transformer layers, a hidden size of 3,072, 32 attention heads.

To run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF locally at a 4,096-token context, its quantized versions need between 3.08 GB (IQ1_S, lowest quality) and 6.08 GB (Q8_0, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for Phi-3.5-mini-instruct-GGUF is about 1.5 GB, rising to roughly 48.0 GB at its full 131,072-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is Q8_0, needing about 6.08 GB. That means MaziyarPanahi/Phi-3.5-mini-instruct-GGUF fits entirely in the VRAM of a 6 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for MaziyarPanahi/Phi-3.5-mini-instruct-GGUF include IQ1_S, IQ1_M, IQ2_XS, Q2_K, IQ3_XS, Q3_K_S, Q3_K_M, IQ4_XS, Q3_K_L, Q4_K_S, Q4_K_M, Q5_K_S, Q5_K_M, Q6_K, Q8_0. The model supports a native context length of up to 131,072 tokens; a longer context grows the KV cache and the memory needed.

→ 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
IQ1_S 1.76 Very low 0.78 GB 1.5 GB 3.08 GB 510.3 t/s Fits in VRAM
IQ1_M 1.92 Very low 0.85 GB 1.5 GB 3.15 GB 468.3 t/s Fits in VRAM
IQ2_XS 2.41 Very low 1.07 GB 1.5 GB 3.37 GB 372.5 t/s Fits in VRAM
Q2_K 2.97 Low 1.32 GB 1.5 GB 3.62 GB 303.3 t/s Fits in VRAM
IQ3_XS 3.4 Fair 1.51 GB 1.5 GB 3.81 GB 264.3 t/s Fits in VRAM
Q3_K_S 3.52 Fair 1.57 GB 1.5 GB 3.87 GB 255.4 t/s Fits in VRAM
Q3_K_M 4.09 Fair 1.82 GB 1.5 GB 4.12 GB 219.6 t/s Fits in VRAM
IQ4_XS 4.31 Good 1.92 GB 1.5 GB 4.22 GB 208.5 t/s Fits in VRAM
Q3_K_L 4.37 Good 1.94 GB 1.5 GB 4.24 GB 205.7 t/s Fits in VRAM
Q4_K_S 4.58 Good 2.04 GB 1.5 GB 4.34 GB 196.2 t/s Fits in VRAM
Q4_K_M 5.01 Very good 2.23 GB 1.5 GB 4.53 GB 179.5 t/s Fits in VRAM
Q5_K_S 5.53 Very good 2.46 GB 1.5 GB 4.76 GB 162.6 t/s Fits in VRAM
Q5_K_M 5.89 Very good 2.62 GB 1.5 GB 4.92 GB 152.6 t/s Fits in VRAM
Q6_K 6.57 Excellent 2.92 GB 1.5 GB 5.22 GB 137.0 t/s Fits in VRAM
Q8_0 8.5 Excellent 3.78 GB 1.5 GB 6.08 GB 105.8 t/s Fits in VRAM

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

Frequently asked questions

What kind of model is MaziyarPanahi/Phi-3.5-mini-instruct-GGUF?

MaziyarPanahi/Phi-3.5-mini-instruct-GGUF is an instruction-tuned chat model with 3.82 billion parameters, based on the phi3 architecture. It is distributed as GGUF files for local inference.

How much VRAM do you need to run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF?

You need about 5.22 GB of VRAM to run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF entirely on the GPU using the Q6_K quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF fully on the GPU using Q8_0 (about 6.08 GB).

Can I run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF fully on the GPU using Q8_0 (about 6.08 GB).

Can I run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run MaziyarPanahi/Phi-3.5-mini-instruct-GGUF fully on the GPU using Q8_0 (about 6.08 GB).

What context length does MaziyarPanahi/Phi-3.5-mini-instruct-GGUF support?

MaziyarPanahi/Phi-3.5-mini-instruct-GGUF supports a native context length of up to 131,072 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for MaziyarPanahi/Phi-3.5-mini-instruct-GGUF?

For MaziyarPanahi/Phi-3.5-mini-instruct-GGUF, a strong default is Q4_K_M, which needs about 4.53 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.