How to use from
llama.cppInstall from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf grapevine-AI/phi-4-gguf:# Run inference directly in the terminal:
llama-cli -hf grapevine-AI/phi-4-gguf: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 grapevine-AI/phi-4-gguf:# Run inference directly in the terminal:
./llama-cli -hf grapevine-AI/phi-4-gguf: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 grapevine-AI/phi-4-gguf:# Run inference directly in the terminal:
./build/bin/llama-cli -hf grapevine-AI/phi-4-gguf:Use Docker
docker model run hf.co/grapevine-AI/phi-4-gguf:Quick Links
What is this?
Microsoft社開発のSLM(小型言語モデル)phi-4をGGUFフォーマットに変換したものです。
Unsloth.ai社の指摘により発覚したトークナイザ不具合の修正コミット(#21)を反映しております。
imatrix dataset
日本語能力を重視し、日本語が多量に含まれるTFMC/imatrix-dataset-for-japanese-llmデータセットを使用しました。
また、CUDA版llama.cppがbfloat16に対応したため、imatrixの算出は本来の数値精度であるBF16のモデルを使用して行いました。
Chat template
<|im_start|>system<|im_sep|>ここにSystem Promptを書きます<|im_end|><|im_start|>user<|im_sep|>ここにMessageを書きます<|im_end|><|im_start|>assistant<|im_sep|>
Note
llama.cpp-b4451以降と合わせてご利用ください。
Environment
Windows版llama.cpp-b4514およびllama.cpp-b4524同時リリースのconvert-hf-to-gguf.pyを使用して量子化作業を実施しました。
License
MIT
Developer
Microsoft Research
- Downloads last month
- 17
Hardware compatibility
Log In to add your hardware
4-bit
5-bit
6-bit
8-bit
16-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf grapevine-AI/phi-4-gguf:# Run inference directly in the terminal: llama-cli -hf grapevine-AI/phi-4-gguf: