Instructions to use calcuis/phi4 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 calcuis/phi4 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 calcuis/phi4:Q4_K_M # Run inference directly in the terminal: llama cli -hf calcuis/phi4:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf calcuis/phi4:Q4_K_M # Run inference directly in the terminal: llama cli -hf calcuis/phi4: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 calcuis/phi4:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf calcuis/phi4:Q4_K_M
Use Docker
docker model run hf.co/calcuis/phi4:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use calcuis/phi4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "calcuis/phi4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "calcuis/phi4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/calcuis/phi4:Q4_K_M
- Ollama
How to use calcuis/phi4 with Ollama:
ollama run hf.co/calcuis/phi4:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use calcuis/phi4 with Docker Model Runner:
docker model run hf.co/calcuis/phi4:Q4_K_M
- Lemonade
How to use calcuis/phi4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull calcuis/phi4:Q4_K_M
Run and chat with the model
lemonade run user.phi4-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Update README.md
Verified signature32adef6 -
Update README.md
Verified signature6d85ae3 -
Update README.md
Verified signaturecd0668f -
Update README.md
Verified signature56ddc9d -
Update README.md
Verified signaturebddfc54 -
Delete phi4-tq2_0.gguf
Verified signaturee49f7bf -
Delete phi4-tq1_0.gguf
Verified signature65a1388
-
Upload phi4-q8_0.gguf with huggingface_hub
Verified signature16703a0 -
Upload phi4-q6_k.gguf with huggingface_hub
Verified signature3538b5d -
Upload phi4-q5_k_s.gguf with huggingface_hub
Verified signature8c3875d -
Upload phi4-q5_k_m.gguf with huggingface_hub
Verified signaturea72e13b -
Update README.md
Verified signature51d1fdd -
Upload phi4-q5_1.gguf with huggingface_hub
Verified signaturee686074
-
Upload phi4-q5_0.gguf with huggingface_hub
Verified signature080a993 -
Update README.md
Verified signatured34e331 -
Update README.md
Verified signatureb4640a8 -
Update README.md
Verified signaturebd35011 -
Update README.md
Verified signatured2e4161 -
Update README.md
Verified signaturecc6b835 -
Update README.md
Verified signature925eb22 -
Update README.md
Verified signaturef02d9eb -
Upload phi4-q4_k_s.gguf with huggingface_hub
Verified signatureb1606bf -
Update README.md
Verified signature872ffd3 -
Update README.md
Verified signatureafc6d85 -
Upload phi4-q4_k_m.gguf with huggingface_hub
Verified signature818b4ba -
Upload phi4-q4_1.gguf with huggingface_hub
Verified signature8e38109 -
Update README.md
Verified signature6145e5e -
Upload phi4-q4_0.gguf with huggingface_hub
Verified signaturefd1dc00 -
Upload phi4-f16.gguf with huggingface_hub
Verified signaturecb75510 -
Update README.md
Verified signaturef0865f8 -
Update README.md
Verified signature612fcfe -
Update README.md
Verified signature4c708f2 -
Upload phi4-tq2_0.gguf with huggingface_hub
Verified signature8fded31 -
Upload phi4-tq1_0.gguf with huggingface_hub
Verified signatureb7fbb6d -
Update README.md
Verified signature3b0fc75 -
Update README.md
Verified signature7cc5ce1 -
Update README.md
Verified signatured2f1d95 -
Update README.md
Verified signature0f18ddc -
Update README.md
Verified signature6f83445 -
Update README.md
Verified signaturedcfeb30 -
Update README.md
Verified signaturef6dbdc2 -
Upload phi4-q3_k_s.gguf with huggingface_hub
Verified signature3aaf35d -
Upload phi4-q3_k_m.gguf with huggingface_hub
Verified signatureb0336a0 -
Upload phi4-q3_k_l.gguf with huggingface_hub
Verified signature6cf2650 -
Update README.md
Verified signature0e511e6 -
Update README.md
Verified signaturee37c079 -
Update README.md
Verified signature6416772 -
Upload phi4-q2_k.gguf with huggingface_hub
Verified signatured946808 -
Update README.md
Verified signatureeced3b9 -
Update README.md
Verified signature0ecdca8