How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf timothyckl/phi-2-instruct-v1
# Run inference directly in the terminal:
llama-cli -hf timothyckl/phi-2-instruct-v1
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf timothyckl/phi-2-instruct-v1
# Run inference directly in the terminal:
llama-cli -hf timothyckl/phi-2-instruct-v1
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 timothyckl/phi-2-instruct-v1
# Run inference directly in the terminal:
./llama-cli -hf timothyckl/phi-2-instruct-v1
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 timothyckl/phi-2-instruct-v1
# Run inference directly in the terminal:
./build/bin/llama-cli -hf timothyckl/phi-2-instruct-v1
Use Docker
docker model run hf.co/timothyckl/phi-2-instruct-v1
Quick Links

Model Card for Model ID

Phi-2 finetuned on c-s-ale/alpaca-gpt4-data dataset. Trained only on first 9k samples for 1 epoch.

Prompt format:

### INSTRUCTION:
{instruction}

### INPUT:
{input}

### RESPONSE:
{output}
Downloads last month
14
Safetensors
Model size
3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support