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:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("c00cjz00/phi-4-14b-it-R1-m22k_gguf", dtype="auto") - llama-cpp-python
How to use c00cjz00/phi-4-14b-it-R1-m22k_gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="c00cjz00/phi-4-14b-it-R1-m22k_gguf", filename="unsloth.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- 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
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 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/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 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
- 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 Studio
How to use c00cjz00/phi-4-14b-it-R1-m22k_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 c00cjz00/phi-4-14b-it-R1-m22k_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 c00cjz00/phi-4-14b-it-R1-m22k_gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for c00cjz00/phi-4-14b-it-R1-m22k_gguf to start chatting
- Atomic Chat new
- 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
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)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
- 18
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
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="c00cjz00/phi-4-14b-it-R1-m22k_gguf", filename="", )