Views
No views yet
Note: This conversion includes the text backbone only (language model weights). Vision encoder and multimodal projector weights are excluded, as llama.cpp does not yet support thephi4-siglipvision architecture. The text model is architecturally identical to Phi-4-reasoning-plus (Phi3ForCausalLM).
| Filename | Quant Type | Size | Description |
|---|---|---|---|
phi-4-reasoning-vision-f16.gguf | F16 | ~28 GB | Full precision (float16) |
phi-4-reasoning-vision-q8_0.gguf | Q8_0 | ~15 GB | 8-bit quantization (near-lossless) |
phi-4-reasoning-vision-q6_k.gguf | Q6_K | ~12 GB | 6-bit K-quant |
phi-4-reasoning-vision-q5_k_m.gguf | Q5_K_M | ~9.9 GB | 5-bit K-quant medium |
phi-4-reasoning-vision-q5_k_s.gguf | Q5_K_S | ~9.5 GB | 5-bit K-quant small |
phi-4-reasoning-vision-q4_K_M.gguf | Q4_K_M | ~8.5 GB | 4-bit K-quant medium (recommended) |
phi-4-reasoning-vision-q4_k_s.gguf | Q4_K_S | ~7.9 GB | 4-bit K-quant small |
phi-4-reasoning-vision-q3_k_l.gguf | Q3_K_L | ~7.4 GB | 3-bit K-quant large |
phi-4-reasoning-vision-q3_k_m.gguf | Q3_K_M | ~6.9 GB | 3-bit K-quant medium |
phi-4-reasoning-vision-q3_k_s.gguf | Q3_K_S | ~6.1 GB | 3-bit K-quant small |
phi-4-reasoning-vision-q2_k.gguf | Q2_K | ~5.2 GB | 2-bit K-quant (smallest, lowest quality) |
1# Download the Q4_K_M GGUF and create a Modelfile:
2cat > Modelfile <<'EOF'
3FROM ./phi-4-reasoning-vision-q4_K_M.gguf
4
5TEMPLATE """<|system|>
6{{ if .System }}{{ .System }}{{ else }}You are a helpful AI assistant with vision capabilities. You can analyze images and reason about them step by step.{{ end }}<|end|>
7<|user|>
8{{ .Prompt }}<|end|>
9<|assistant|>
10"""
11
12PARAMETER stop "<|end|>"
13PARAMETER stop "<|endoftext|>"
14PARAMETER temperature 0.7
15PARAMETER top_p 0.9
16PARAMETER num_ctx 4096
17EOF
18
19ollama create phi4-vision -f Modelfile
20ollama run phi4-vision./llama-cli -m phi-4-reasoning-vision-q4_K_M.gguf -p "Explain the theory of relativity in simple terms." -n 512convert_hf_to_gguf.pymodel.vision_tower.*) and multimodal projector (model.mm_projector.*) weights were skipped during conversionPhi4ForCausalLMV (phi4-siglip) to Phi3ForCausalLM (phi3) since the text backbone is architecturally identicalllama_model_quantize() with CUDA acceleration