Text Generation
GGUF
English
quantized
llama.cpp
scorecard
governance
validated
local-llm
on-device
agentic
tool-calling
function-calling
agents
ai-agents
rag
q4_k_m
q8_0
conversational
Instructions to use smarttasks/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 smarttasks/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 smarttasks/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf smarttasks/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 smarttasks/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf smarttasks/phi-4-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 smarttasks/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf smarttasks/phi-4-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 smarttasks/phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf smarttasks/phi-4-GGUF:Q4_K_M
Use Docker
docker model run hf.co/smarttasks/phi-4-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use smarttasks/phi-4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smarttasks/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": "smarttasks/phi-4-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/smarttasks/phi-4-GGUF:Q4_K_M
- Ollama
How to use smarttasks/phi-4-GGUF with Ollama:
ollama run hf.co/smarttasks/phi-4-GGUF:Q4_K_M
- Unsloth Studio
How to use smarttasks/phi-4-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 smarttasks/phi-4-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 smarttasks/phi-4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for smarttasks/phi-4-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use smarttasks/phi-4-GGUF with Docker Model Runner:
docker model run hf.co/smarttasks/phi-4-GGUF:Q4_K_M
- Lemonade
How to use smarttasks/phi-4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull smarttasks/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
| { | |
| "schema": "smarttasks.repo_manifest/v1", | |
| "generated_utc": "2026-07-16T03:45:44+00:00", | |
| "root": "phi-4-GGUF", | |
| "file_count": 10, | |
| "risk_finding_count": 0, | |
| "classes_present": [ | |
| "binary", | |
| "contextual", | |
| "ingestible", | |
| "model" | |
| ], | |
| "agent_prefilter_hint": { | |
| "load": [ | |
| "contextual", | |
| "ingestible" | |
| ], | |
| "runtime_only": [ | |
| "model" | |
| ], | |
| "never_auto_execute": [ | |
| "executable" | |
| ], | |
| "quarantine": [ | |
| "sensitive" | |
| ] | |
| }, | |
| "files": [ | |
| { | |
| "path": ".gitattributes", | |
| "bytes": 43, | |
| "content_class": "binary", | |
| "ingest_policy": "skip", | |
| "sha256": "4cf00e98dded8779b234ba8d2356ce03ef5360f69632bd81f0f10c4c944b89d9", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "README.md", | |
| "bytes": 11595, | |
| "content_class": "contextual", | |
| "ingest_policy": "load_as_context", | |
| "sha256": "4652c69b8a7f4a9063bc468cbbc04b90ea49a67211065fff3ac2583033eed6fc", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "SECURITY.md", | |
| "bytes": 2025, | |
| "content_class": "contextual", | |
| "ingest_policy": "load_as_context", | |
| "sha256": "2aa4a88559b52af922ffbe424153b144f55aa1b0880d89b26dc8827c2c3676b1", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "SHA256SUMS", | |
| "bytes": 416, | |
| "content_class": "binary", | |
| "ingest_policy": "skip", | |
| "sha256": "5977f66ff40cd3f053c94ed90ce80d34ef29918fa1e6e4a20a5ede4a1e43eff8", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "phi-4-Q3_K_M.gguf", | |
| "bytes": 7373099200, | |
| "content_class": "model", | |
| "ingest_policy": "runtime_only", | |
| "sha256": "f333e373a1cee9a64327285394c88b90340e173ea53c24d252c9d95d1ed94539", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "phi-4-Q4_K_M.gguf", | |
| "bytes": 9059258560, | |
| "content_class": "model", | |
| "ingest_policy": "runtime_only", | |
| "sha256": "4e2ad0efe1ee504627dbaf7c879a31bd61611a0bf369a26da39dacbc0873cb8c", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "phi-4-Q5_K_M.gguf", | |
| "bytes": 10499739840, | |
| "content_class": "model", | |
| "ingest_policy": "runtime_only", | |
| "sha256": "01f4247a717532877d85b858e1f9d960d705541eb15809ba9eef41ace5084ba8", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "phi-4-Q6_K.gguf", | |
| "bytes": 12030251200, | |
| "content_class": "model", | |
| "ingest_policy": "runtime_only", | |
| "sha256": "6b0faa63b8587d8314fc9d1e99c0d7ccfb19c055377a42d4071cedca72275075", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "phi-4-Q8_0.gguf", | |
| "bytes": 15580500160, | |
| "content_class": "model", | |
| "ingest_policy": "runtime_only", | |
| "sha256": "20e7f05d94b988deef91c96b5e88017f97524b815dd866fb2392ef480044255b", | |
| "risk_findings": [] | |
| }, | |
| { | |
| "path": "scorecard.json", | |
| "bytes": 9734, | |
| "content_class": "ingestible", | |
| "ingest_policy": "load_structured", | |
| "sha256": "c65164f07f260ce3004bc08d8ea91e3620af7fbffa9ede4e0cafea9b2a159350", | |
| "risk_findings": [] | |
| } | |
| ] | |
| } |