Instructions to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jamesburton/Phi-4-reasoning-vision-15B-GGUF", filename="phi-4-reasoning-vision-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jamesburton/Phi-4-reasoning-vision-15B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jamesburton/Phi-4-reasoning-vision-15B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
- Ollama
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with Ollama:
ollama run hf.co/jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
- Unsloth Studio
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jamesburton/Phi-4-reasoning-vision-15B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jamesburton/Phi-4-reasoning-vision-15B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jamesburton/Phi-4-reasoning-vision-15B-GGUF to start chatting
- Docker Model Runner
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with Docker Model Runner:
docker model run hf.co/jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
- Lemonade
How to use jamesburton/Phi-4-reasoning-vision-15B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jamesburton/Phi-4-reasoning-vision-15B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Phi-4-reasoning-vision-15B-GGUF-Q4_K_M
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)Phi-4-reasoning-vision-15B-GGUF
GGUF format conversions of microsoft/Phi-4-reasoning-vision-15B for use with llama.cpp and Ollama.
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 the
phi4-siglipvision architecture. The text model is architecturally identical to Phi-4-reasoning-plus (Phi3ForCausalLM).
Available Files
| 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) |
How to Use
With Ollama
# Download the Q4_K_M GGUF and create a Modelfile:
cat > Modelfile <<'EOF'
FROM ./phi-4-reasoning-vision-q4_K_M.gguf
TEMPLATE """<|system|>
{{ 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|>
<|user|>
{{ .Prompt }}<|end|>
<|assistant|>
"""
PARAMETER stop "<|end|>"
PARAMETER stop "<|endoftext|>"
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER num_ctx 4096
EOF
ollama create phi4-vision -f Modelfile
ollama run phi4-vision
With llama.cpp
./llama-cli -m phi-4-reasoning-vision-q4_K_M.gguf -p "Explain the theory of relativity in simple terms." -n 512
Model Details
- Original Model: microsoft/Phi-4-reasoning-vision-15B
- Architecture: Phi3ForCausalLM (text backbone of Phi-4-reasoning-vision)
- Parameters: ~15B (text model)
- Hidden Size: 5120
- Layers: 40
- Attention Heads: 40 (10 KV heads, GQA)
- Vocab Size: 100,352
- Tokenizer: GPT-2 (BPE)
- Context Length: Up to 131,072 tokens (with RoPE scaling)
- License: MIT
Conversion Details
- Converted using llama.cpp
convert_hf_to_gguf.py - Vision tower (
model.vision_tower.*) and multimodal projector (model.mm_projector.*) weights were skipped during conversion - The model config was remapped from
Phi4ForCausalLMV(phi4-siglip) toPhi3ForCausalLM(phi3) since the text backbone is architecturally identical - Quantization performed via
llama_model_quantize()with CUDA acceleration - 243 text tensors converted, 452 vision tensors excluded
Original Model Card
For full details on training, capabilities, safety, and intended use, please refer to the original model card.
Disclaimer
This is an unofficial GGUF conversion. The original model was created by Microsoft Research. All credit for the model architecture, training, and capabilities belongs to the Microsoft Phi team. Please refer to the original model's license for usage terms.
- Downloads last month
- 712
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for jamesburton/Phi-4-reasoning-vision-15B-GGUF
Base model
microsoft/phi-4
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jamesburton/Phi-4-reasoning-vision-15B-GGUF", filename="", )