Instructions to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="brittlewis12/stablelm-2-zephyr-1_6b-GGUF", filename="stablelm-2-zephyr-1_6b.Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use brittlewis12/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf brittlewis12/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf brittlewis12/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf brittlewis12/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "brittlewis12/stablelm-2-zephyr-1_6b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brittlewis12/stablelm-2-zephyr-1_6b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
- Ollama
How to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with Ollama:
ollama run hf.co/brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
- Unsloth Studio
How to use brittlewis12/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-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/stablelm-2-zephyr-1_6b-GGUF to start chatting
- Docker Model Runner
How to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with Docker Model Runner:
docker model run hf.co/brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
- Lemonade
How to use brittlewis12/stablelm-2-zephyr-1_6b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull brittlewis12/stablelm-2-zephyr-1_6b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.stablelm-2-zephyr-1_6b-GGUF-Q4_K_M
List all available models
lemonade list
StableLM-2-Zephyr-1.6B GGUF
Original model: StableLM 2 Zephyr 1.6B Model creator: Stability AI
This repo contains GGUF format model files for Stability AI’s StableLM 2 Zephyr 1.6B.
Stable LM 2 Zephyr 1.6B is a 1.6 billion parameter instruction tuned language model inspired by HugginFaceH4's Zephyr 7B training pipeline. The model is trained on a mix of publicly available datasets and synthetic datasets, utilizing Direct Preference Optimization (DPO).
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 an proposed version of llama.cpp (PR #5052)
Prompt template: Zephyr
<|system|>
{{system_message}}<|endoftext|>
<|user|>
{{prompt}}<|endoftext|>
<|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:
| Model | Size | MT-Bench |
|---|---|---|
| Mistral-7B-Instruct-v0.2 | 7B | 7.61 |
| Llama2-Chat | 70B | 6.86 |
| stablelm-zephyr-3b | 3B | 6.64 |
| MPT-30B-Chat | 30B | 6.39 |
| stablelm-2-zephyr-1.6b | 1.6B | 5.42 |
| Falcon-40B-Instruct | 40B | 5.17 |
| Qwen-1.8B-Chat | 1.8B | 4.95 |
| dolphin-2.6-phi-2 | 2.7B | 4.93 |
| phi-2 | 2.7B | 4.29 |
| TinyLlama-1.1B-Chat-v1.0 | 1.1B | 3.46 |
OpenLLM Leaderboard
| Model | Size | Average | ARC Challenge (acc_norm) | HellaSwag (acc_norm) | MMLU (acc_norm) | TruthfulQA (mc2) | Winogrande (acc) | Gsm8k (acc) |
|---|---|---|---|---|---|---|---|---|
| microsoft/phi-2 | 2.7B | 61.32% | 61.09% | 75.11% | 58.11% | 44.47% | 74.35% | 54.81% |
| stabilityai/stablelm-2-zephyr-1_6b | 1.6B | 49.89% | 43.69% | 69.34% | 41.85% | 45.21% | 64.09% | 35.18% |
| microsoft/phi-1_5 | 1.3B | 47.69% | 52.90% | 63.79% | 43.89% | 40.89% | 72.22% | 12.43% |
| stabilityai/stablelm-2-1_6b | 1.6B | 45.54% | 43.43% | 70.49% | 38.93% | 36.65% | 65.90% | 17.82% |
| mosaicml/mpt-7b | 7B | 44.28% | 47.70% | 77.57% | 30.80% | 33.40% | 72.14% | 4.02% |
| KnutJaegersberg/Qwen-1_8B-Llamaified* | 1.8B | 44.75% | 37.71% | 58.87% | 46.37% | 39.41% | 61.72% | 24.41% |
| openlm-research/open_llama_3b_v2 | 3B | 40.28% | 40.27% | 71.60% | 27.12% | 34.78% | 67.01% | 0.91% |
| iiuae/falcon-rw-1b | 1B | 37.07% | 35.07% | 63.56% | 25.28% | 35.96% | 62.04% | 0.53% |
| TinyLlama/TinyLlama-1.1B-3T | 1.1B | 36.40% | 33.79% | 60.31% | 26.04% | 37.32% | 59.51% | 1.44% |
- Downloads last month
- 85
Model tree for brittlewis12/stablelm-2-zephyr-1_6b-GGUF
Base model
stabilityai/stablelm-2-zephyr-1_6b

ollama run hf.co/brittlewis12/stablelm-2-zephyr-1_6b-GGUF: