Instructions to use Sgnarf/Phi-14_test_model_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sgnarf/Phi-14_test_model_2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Sgnarf/Phi-14_test_model_2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sgnarf/Phi-14_test_model_2 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 Sgnarf/Phi-14_test_model_2:Q4_K_M # Run inference directly in the terminal: llama cli -hf Sgnarf/Phi-14_test_model_2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sgnarf/Phi-14_test_model_2:Q4_K_M # Run inference directly in the terminal: llama cli -hf Sgnarf/Phi-14_test_model_2:Q4_K_M
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 Sgnarf/Phi-14_test_model_2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Sgnarf/Phi-14_test_model_2:Q4_K_M
Use Docker
docker model run hf.co/Sgnarf/Phi-14_test_model_2:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use Sgnarf/Phi-14_test_model_2 with Ollama:
ollama run hf.co/Sgnarf/Phi-14_test_model_2:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Sgnarf/Phi-14_test_model_2 with Docker Model Runner:
docker model run hf.co/Sgnarf/Phi-14_test_model_2:Q4_K_M
- Lemonade
How to use Sgnarf/Phi-14_test_model_2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sgnarf/Phi-14_test_model_2:Q4_K_M
Run and chat with the model
lemonade run user.Phi-14_test_model_2-Q4_K_M
List all available models
lemonade list
- Atomic Chat
File size: 425 Bytes
6a60ac6 | 1 2 3 4 5 6 7 8 |
FROM /content/Sgnarf/Phi-14_test_model_2/unsloth.BF16.gguf
TEMPLATE """{{ if .System }}<|im_start|><|system|><|im_sep|>{{ .System }}<|im_end|>{{ end }}{{ if .Prompt }}<|im_start|><|user|><|im_sep|>{{ .Prompt }}<|im_end|>{{ end }}<|im_start|><|assistant|><|im_sep|>{{ .Response }}<|im_end|>"""
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_sep|>"
PARAMETER temperature 1.5
PARAMETER min_p 0.1 |