Instructions to use brittlewis12/phi-2-orange-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use brittlewis12/phi-2-orange-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="brittlewis12/phi-2-orange-GGUF", filename="phi-2-orange.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use brittlewis12/phi-2-orange-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M
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 brittlewis12/phi-2-orange-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M
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 brittlewis12/phi-2-orange-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf brittlewis12/phi-2-orange-GGUF:Q4_K_M
Use Docker
docker model run hf.co/brittlewis12/phi-2-orange-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use brittlewis12/phi-2-orange-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "brittlewis12/phi-2-orange-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brittlewis12/phi-2-orange-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/brittlewis12/phi-2-orange-GGUF:Q4_K_M
- Ollama
How to use brittlewis12/phi-2-orange-GGUF with Ollama:
ollama run hf.co/brittlewis12/phi-2-orange-GGUF:Q4_K_M
- Unsloth Studio
How to use brittlewis12/phi-2-orange-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 brittlewis12/phi-2-orange-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 brittlewis12/phi-2-orange-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for brittlewis12/phi-2-orange-GGUF to start chatting
- Docker Model Runner
How to use brittlewis12/phi-2-orange-GGUF with Docker Model Runner:
docker model run hf.co/brittlewis12/phi-2-orange-GGUF:Q4_K_M
- Lemonade
How to use brittlewis12/phi-2-orange-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull brittlewis12/phi-2-orange-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.phi-2-orange-GGUF-Q4_K_M
List all available models
lemonade list
Phi-2 Orange GGUF
Original model: Phi-2 Orange Model creator: Rhys Jones
This repo contains GGUF format model files for Rhys Jones' Phi-2 Orange.
What is GGUF?
GGUF is a file format for representing AI models. It is the third version of the format, introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. Converted using llama.cpp revision de473f5, the last compatible version before Microsoft's incompatible modeling changes were introduced to llama.cpp.
Prompt template: ChatML
<|im_start|>system
{{system_message}}<|im_end|>
<im_start|>user
{{prompt}}<|im_end|>
<|im_start|>assistant
Download & run with cnvrs on iPhone, iPad, and Mac!
cnvrs is the best app for private, local AI on your device:
- create & save Characters with custom system prompts & temperature settings
- download and experiment with any GGUF model you can find on HuggingFace!
- make it your own with custom Theme colors
- powered by Metal ⚡️ & Llama.cpp, with haptics during response streaming!
- try it out yourself today, on Testflight!
- follow cnvrs on twitter to stay up to date
Original Model Evaluations:
Evaluations done using mlabonne's Colab notebook llm-autoeval. Also check out the alternative leaderboard, YALL: Yet_Another_LLM_Leaderboard
| Model | AGIEval | GPT4All | TruthfulQA | Bigbench | Average |
|---|---|---|---|---|---|
| phi-2-orange | 33.37 | 71.33 | 49.87 | 37.3 | 47.97 |
| phi-2-dpo | 30.39 | 71.68 | 50.75 | 34.9 | 46.93 |
| dolphin-2_6-phi-2 | 33.12 | 69.85 | 47.39 | 37.2 | 46.89 |
| phi-2 | 27.98 | 70.8 | 44.43 | 35.21 | 44.61 |
- Downloads last month
- 188
2-bit
4-bit
5-bit
6-bit
Model tree for brittlewis12/phi-2-orange-GGUF
Base model
rhysjones/phi-2-orange
