Instructions to use sitsope/phi-3-mini-4k-instruct-q4 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 sitsope/phi-3-mini-4k-instruct-q4 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 sitsope/phi-3-mini-4k-instruct-q4 # Run inference directly in the terminal: llama cli -hf sitsope/phi-3-mini-4k-instruct-q4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sitsope/phi-3-mini-4k-instruct-q4 # Run inference directly in the terminal: llama cli -hf sitsope/phi-3-mini-4k-instruct-q4
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 sitsope/phi-3-mini-4k-instruct-q4 # Run inference directly in the terminal: ./build/bin/llama cli -hf sitsope/phi-3-mini-4k-instruct-q4
Use Docker
docker model run hf.co/sitsope/phi-3-mini-4k-instruct-q4
- Llama new
- LM Studio
- Jan
- Ollama
How to use sitsope/phi-3-mini-4k-instruct-q4 with Ollama:
ollama run hf.co/sitsope/phi-3-mini-4k-instruct-q4
- Unsloth Desktop
- Docker Model Runner
How to use sitsope/phi-3-mini-4k-instruct-q4 with Docker Model Runner:
docker model run hf.co/sitsope/phi-3-mini-4k-instruct-q4
- Lemonade
How to use sitsope/phi-3-mini-4k-instruct-q4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sitsope/phi-3-mini-4k-instruct-q4
Run and chat with the model
lemonade run user.phi-3-mini-4k-instruct-q4-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download scripts/start.sh from sitsope/phi-3-mini-4k-instruct-q4: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/sitsope/phi-3-mini-4k-instruct-q4/resolve/main/scripts/start.sh
- Command line
-
hf download hf://sitsope/phi-3-mini-4k-instruct-q4/scripts/start.sh
-
curl -L -o start.sh https://huggingface.co/sitsope/phi-3-mini-4k-instruct-q4/resolve/main/scripts/start.sh
327 Bytes
| set -e | |
| MODEL_PATH=${MODEL_PATH:-/models/Phi-3-mini-4k-instruct-q4.gguf} | |
| if [ ! -f "$MODEL_PATH" ]; then | |
| python scripts/download_model.py \ | |
| --repo microsoft/Phi-3-mini-4k-instruct-gguf \ | |
| --filename Phi-3-mini-4k-instruct-q4.gguf \ | |
| --out /models | |
| fi | |
| exec uvicorn app.main:app --host 0.0.0.0 --port 8000 | |