Instructions to use Xylolabs/phi-4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Xylolabs/phi-4-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/phi-4-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/phi-4-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/phi-4-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/phi-4-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/phi-4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/phi-4-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xylolabs/phi-4-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/phi-4-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/phi-4-GGUF with Ollama:
ollama run hf.co/Xylolabs/phi-4-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Xylolabs/phi-4-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/phi-4-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/phi-4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/phi-4-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.phi-4-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
Yesterday
-
Update the model card
Verified signature37c04a2 -
Remove disclaimer sentences from the card
Verified signature2dc7627
3 days ago
-
Remove explanatory text and footnotes
Verified signature3bed3ad -
Remove explanatory text and footnotes
Verified signature9db8738
4 days ago
-
docs(card): 📝 add every Unsloth file to the accuracy table and charts
Verified signature3502489
5 days ago
-
Short card: new hardware table, plain rows, shorter Updates
Verified signature89e385c -
Add a hardware recommendation table
Verified signature708c7a8
8 days ago
-
Card: plain sentences, one license paragraph, what -imat means
Verified signature81dac7a -
Card: remove the How these were made section
Verified signature7a65b12
9 days ago
-
Card: remove repeats and method text
Verified signature7f085b2 -
Card: short layout, KL and top-1 by file size
Verified signaturecf66c89 -
Card: short layout, KL and top-1 by file size
Verified signature231eddf
11 days ago
-
Card: card top (what was done, size, accuracy, checked with)
Verified signature9346181 -
Card: remove filler sentences (a sentence about our publication process, table-reading notes, reference-logit bookkeeping)
Verified signature33f2bb9 -
Card: add the Tenstorrent non-affiliation line
Verified signature776eeb0
13 days ago
-
Add reviewed GGUF weights
Verified signature39db699 -
initial commit
Verified signaturebce6c66