phi 1 5 needs about 3.0 GB of memory at Q4_K_M (a 0.9 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 7 quants, from 0.6 GB (Q2_K) to 2.8 GB (F16).
Phi‑1.5 GGUF – 1.42 B parameter transformer for coding tasks
Phi‑1.5 is a 1.42 B parameter transformer model. It supports a 2048 token context window and is optimized for coding. The GGUF format allows multiple quantizations for memory‑efficient deployment.
Good at
- Coding assistance
- Lightweight inference
- Low‑latency generation
Limits
- No vision support
- Limited context to 2048 tokens
- License is other
Best for
- Embedded coding assistants
- Edge inference on low‑VRAM GPUs
- Rapid prototyping of code generators
Who it’s for. Developers and researchers needing a small, efficient model for code generation and lightweight inference. It is suitable for environments with limited GPU memory and where quick turnaround is required.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| Q2_K | 0.6 GB | 1.5 GB | Fits | Get file → | |
| Q3_K_M | 0.8 GB | 1.7 GB | Fits | Get file → | |
| Q4_K_M | 0.9 GB | 1.8 GB | Fits | Get file → | |
| Q5_K_M | 1.1 GB | 2.0 GB | Fits | Get file → | |
| Q6_K | 1.2 GB | 2.1 GB | Fits | Get file → | |
| Q8_0 | 1.5 GB | 2.4 GB | Fits | Get file → | |
| F16 | 2.8 GB | 3.7 GB | Fits | Get file → |
For 8 GB VRAM, Q4_K_M (0.92 GB) or Q5_K_M (1.06 GB) are recommended, using about 3 GB of RAM at 8 k context. If more memory is available, Q6_K (1.17 GB) or Q8_0 (1.51 GB) provide higher quality. The F16 (2.84 GB) offers the best fidelity but needs more RAM.
What GPU do you need for phi 1 5?
These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: the best quant that fits is Q8_0 (1.5 GB file, about 3.6 GB in use).
- 6 GB VRAM: the best quant that fits is F16 (2.8 GB file, about 5.0 GB in use).
Which phi 1 5 quant should you choose?
Q4_K_M is the usual starting point for phi 1 5: it balances file size and quality well. Here it is a 0.9 GB file.
The Q8_0 file is 1.5 GB, about 1.6 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.
If memory is tight, the smallest file is Q2_K at 0.6 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about phi 1 5
How much VRAM does phi 1 5 need?
About 3.0 GB at Q4_K_M with an 8K context window. That is the 0.9 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run phi 1 5 on an 8 GB GPU?
Yes, with F16: the 2.8 GB file needs about 5.0 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of phi 1 5 GGUF?
It depends on the quant: Q2_K is 0.6 GB, Q3_K_M is 0.8 GB, Q4_K_M is 0.9 GB, Q5_K_M is 1.1 GB, Q6_K is 1.2 GB, Q8_0 is 1.5 GB and 1 more.
What context length does phi 1 5 support?
The GGUF header lists a trained context length of 2,048 tokens (2K). The KV cache grows with the context you use: about 1.6 GB at 8K and 0.4 GB at 2K.
Where can I download phi 1 5 GGUF?
The files are on Hugging Face in the TKDKid1000/phi-1_5-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does phi 1 5 use?
Hugging Face lists the license as other. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.
Can I run Phi‑1.5 on 8 GB VRAM?
Yes, using Q4_K_M or Q5_K_M quantizations will fit within 8 GB VRAM and use roughly 3 GB of RAM at 8 k context.
Does Phi‑1.5 support image inputs?
No, Phi‑1.5 is a text‑only model and does not support vision tasks.