Views
No views yet
Can you run a powerful model on a laptop without losing its intelligence?
| Benchmark | Original (FP16) | Q4_K_M | Quality Retained |
|---|---|---|---|
| MMLU Pro | See original card | Run benchmarks | ~97-99% |
| HellaSwag | See original card | Run benchmarks | ~97-99% |
| ARC Challenge | See original card | Run benchmarks | ~97-99% |
| TruthfulQA | See original card | Run benchmarks | ~97-99% |
| GSM8K | See original card | Run benchmarks | ~97-99% |
| Filename | Size | RAM Required | Quant | Quality | Best For |
|---|---|---|---|---|---|
Phi-3.5-mini-instruct-Q2_K.gguf | 1.40 GB | ~2.9 GB | Q2_K | ⭐ | Extreme compression, significant quality loss. |
Phi-3.5-mini-instruct-Q3_K_L.gguf | 2.05 GB | ~3.5 GB | Q3_K_L | ⭐⭐⭐ | Slightly better than Q3_K_M, still a compromise. |
Phi-3.5-mini-instruct-Q3_K_M.gguf | 1.83 GB | ~3.3 GB | Q3_K_M | ⭐⭐⭐ | Very small file. Quality drop noticeable. |
Phi-3.5-mini-instruct-Q3_K_S.gguf | 1.57 GB | ~3.1 GB | Q3_K_S | ⭐⭐ | Very high compression, high quality loss. |
Phi-3.5-mini-instruct-Q4_K_M.gguf | 2.23 GB | ~3.7 GB | Q4_K_M ✅ Recommended | ⭐⭐⭐⭐ | Best balance of size and quality. Recommended for most users. |
Phi-3.5-mini-instruct-Q4_K_S.gguf | 2.05 GB | ~3.6 GB | Q4_K_S | ⭐⭐⭐½ | Good speed/size balance, slight quality loss. |
Phi-3.5-mini-instruct-Q5_K_M.gguf | 2.57 GB | ~4.1 GB | Q5_K_M | ⭐⭐⭐⭐½ | Better quality than Q4, slightly larger. Great if you have the RAM. |
Phi-3.5-mini-instruct-Q5_K_S.gguf | 2.46 GB | ~4.0 GB | Q5_K_S | ⭐⭐⭐⭐ | Large but accurate. |
Phi-3.5-mini-instruct-Q6_K.gguf | 2.92 GB | ~4.4 GB | Q6_K | ⭐⭐⭐⭐⭐ | Near-perfect quality, very large. |
Phi-3.5-mini-instruct-Q8_0.gguf | 3.78 GB | ~5.3 GB | Q8_0 | ⭐⭐⭐⭐⭐ | Closest to original quality. Use when RAM is not a concern. |
Phi-3.5-mini-instruct-Q4_K_M.gguf — best balance of size and qualityPhi-3.5-mini-instruct-Q8_0.gguf — near-original qualityPhi-3.5-mini-instruct-Q3_K_M.gguf — fits in 8GB with room to sparepython benchmark.py --model Phi-3.5-mini-instruct to generate speed results.kaggle_bench.ipynb on Kaggle to benchmark this model.ollama run dhptl/phi-3.5-mini-instructDhptl/Phi-3.5-mini-instruct in the model browser.1# Download the binary from https://github.com/ggerganov/llama.cpp/releases
2./llama-cli \
3 -m Phi-3.5-mini-instruct-Q4_K_M.gguf \
4 -p "You are a helpful assistant." \
5 --conversation \
6 -n 5121from llama_cpp import Llama
2
3llm = Llama(
4 model_path="./Phi-3.5-mini-instruct-Q4_K_M.gguf",
5 n_gpu_layers=-1, # -1 = offload everything to GPU
6 n_ctx=4096,
7)
8
9response = llm.create_chat_completion(messages=[
10 {"role": "user", "content": "Tell me about quantization."}
11])
12print(response["choices"][0]["message"]["content"])| Format | Bits/weight | Size vs FP16 | Quality |
|---|---|---|---|
| Q2_K | ~2.6 | 16% | ⭐ |
| Q3_K_M | ~3.3 | 21% | ⭐⭐⭐ |
| Q4_K_M | ~4.5 | 28% | ⭐⭐⭐⭐ ← sweet spot |
| Q5_K_M | ~5.6 | 35% | ⭐⭐⭐⭐½ |
| Q8_0 | ~8.5 | 53% | ⭐⭐⭐⭐⭐ |