Instructions to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("c00cjz00/phi-4-14b-it-R1-m22k_gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use c00cjz00/phi-4-14b-it-R1-m22k_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 c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K # Run inference directly in the terminal: llama cli -hf c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K # Run inference directly in the terminal: llama cli -hf c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
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 c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
Use Docker
docker model run hf.co/c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
- Llama new
- LM Studio
- Jan
- Ollama
How to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with Ollama:
ollama run hf.co/c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with Docker Model Runner:
docker model run hf.co/c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
- Lemonade
How to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull c00cjz00/phi-4-14b-it-R1-m22k_gguf:Q2_K
Run and chat with the model
lemonade run user.phi-4-14b-it-R1-m22k_gguf-Q2_K
List all available models
lemonade list
- Atomic Chat
model file
- download model
huggingface-cli download \
c00cjz00/phi-4-14b-it-R1-m22k_lora \
unsloth.Q2_K.gguf \
--local-dir /work/c00cjz00/github/hpc_ollama/home \
--local-dir-use-symlinks False
- phi4.modelfile
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this, replace FROM with:
# FROM phi4:latest
FROM ./unsloth.Q2_K.gguf
TEMPLATE """{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
<|im_start|>{{ .Role }}<|im_sep|>
{{ .Content }}{{ if not $last }}<|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_end|>
<|im_start|>assistant<|im_sep|>
{{ end }}
{{- end }}"""
PARAMETER stop <|im_start|>
PARAMETER stop <|im_end|>
PARAMETER stop <|im_sep|>
- ollama
ollama create myphi4-on-q2 -f ./phi4.modelfile
- Downloads last month
- 22
Hardware compatibility
Log In to add your hardware
2-bit
4-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support