Instructions to use ZeroWw/Phi-4-mini-reasoning-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ZeroWw/Phi-4-mini-reasoning-GGUF", filename="Phi-4-mini-reasoning.f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
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 ZeroWw/Phi-4-mini-reasoning-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
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 ZeroWw/Phi-4-mini-reasoning-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Use Docker
docker model run hf.co/ZeroWw/Phi-4-mini-reasoning-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ZeroWw/Phi-4-mini-reasoning-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": "ZeroWw/Phi-4-mini-reasoning-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ZeroWw/Phi-4-mini-reasoning-GGUF:F16
- Ollama
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with Ollama:
ollama run hf.co/ZeroWw/Phi-4-mini-reasoning-GGUF:F16
- Unsloth Studio
How to use ZeroWw/Phi-4-mini-reasoning-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 ZeroWw/Phi-4-mini-reasoning-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 ZeroWw/Phi-4-mini-reasoning-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ZeroWw/Phi-4-mini-reasoning-GGUF to start chatting
- Pi
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ZeroWw/Phi-4-mini-reasoning-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with Docker Model Runner:
docker model run hf.co/ZeroWw/Phi-4-mini-reasoning-GGUF:F16
- Lemonade
How to use ZeroWw/Phi-4-mini-reasoning-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ZeroWw/Phi-4-mini-reasoning-GGUF:F16
Run and chat with the model
lemonade run user.Phi-4-mini-reasoning-GGUF-F16
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +6 -0
- Phi-4-mini-reasoning.f16.gguf +3 -0
- Phi-4-mini-reasoning.q5_k.gguf +3 -0
- Phi-4-mini-reasoning.q6_k.gguf +3 -0
- Phi-4-mini-reasoning.q8_0.gguf +3 -0
- Phi-4-mini-reasoning.q8_p.gguf +3 -0
- Phi-4-mini-reasoning.q8q4.gguf +3 -0
- README.md +17 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Phi-4-mini-reasoning.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Phi-4-mini-reasoning.q5_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Phi-4-mini-reasoning.q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Phi-4-mini-reasoning.q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Phi-4-mini-reasoning.q8_p.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Phi-4-mini-reasoning.q8q4.gguf filter=lfs diff=lfs merge=lfs -text
|
Phi-4-mini-reasoning.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:600ab28baffdc1915c00da6ffb238519f32501766c3b219047d9f6cb67f0f83d
|
| 3 |
+
size 7680694528
|
Phi-4-mini-reasoning.q5_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49770ab3093255dfa678e909f72abe853dbccb145fec66a56e3edfba5e59c053
|
| 3 |
+
size 3573160192
|
Phi-4-mini-reasoning.q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0e2482814cf492550931752e0b1ff73fe09540b6b9f2c54245ddf9fe56a16ba
|
| 3 |
+
size 3880655104
|
Phi-4-mini-reasoning.q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55f127d4a2195bc3b07fa6d761c470fa8920686a1f2e7c84d210cba20a778437
|
| 3 |
+
size 4660795648
|
Phi-4-mini-reasoning.q8_p.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d709abf9ba3ab5cab68aefc52688e2cd373866afacea22bcde8883a5b760acb7
|
| 3 |
+
size 4084611328
|
Phi-4-mini-reasoning.q8q4.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07d790074204aea1e018cdda5e8c165855a712c48bea4c423f8439628a9e4f36
|
| 3 |
+
size 2640722176
|
README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: mit
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
My own (ZeroWw) quantizations.
|
| 10 |
+
output and embed tensors quantized to f16.
|
| 11 |
+
all other tensors quantized to q5_k or q6_k.
|
| 12 |
+
|
| 13 |
+
Result:
|
| 14 |
+
both f16.q6 and f16.q5 are smaller than q8_0 standard quantization
|
| 15 |
+
and they perform as well as the pure f16.
|
| 16 |
+
|
| 17 |
+
Updated on: Thu May 01, 18:04:42
|