Instructions to use gaianet/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 gaianet/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="gaianet/stablelm-2-zephyr-1.6b-GGUF", filename="stablelm-2-zephyr-1_6b-Q5_K_M.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 gaianet/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 gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M # Run inference directly in the terminal: llama-cli -hf gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M # Run inference directly in the terminal: llama-cli -hf gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_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 gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_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 gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
Use Docker
docker model run hf.co/gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use gaianet/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 "gaianet/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": "gaianet/stablelm-2-zephyr-1.6b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
- Ollama
How to use gaianet/stablelm-2-zephyr-1.6b-GGUF with Ollama:
ollama run hf.co/gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
- Unsloth Studio
How to use gaianet/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 gaianet/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 gaianet/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 gaianet/stablelm-2-zephyr-1.6b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use gaianet/stablelm-2-zephyr-1.6b-GGUF with Docker Model Runner:
docker model run hf.co/gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
- Lemonade
How to use gaianet/stablelm-2-zephyr-1.6b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gaianet/stablelm-2-zephyr-1.6b-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.stablelm-2-zephyr-1.6b-GGUF-Q5_K_M
List all available models
lemonade list
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: stabilityai/stablelm-2-zephyr-1_6b
|
| 3 |
+
license: other
|
| 4 |
+
model_creator: stabilityai
|
| 5 |
+
model_name: StableLM 2 Zephyr 1.6B
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
quantized_by: Second State Inc.
|
| 8 |
+
datasets:
|
| 9 |
+
- HuggingFaceH4/ultrachat_200k
|
| 10 |
+
- allenai/ultrafeedback_binarized_cleaned
|
| 11 |
+
- meta-math/MetaMathQA
|
| 12 |
+
- WizardLM/WizardLM_evol_instruct_V2_196k
|
| 13 |
+
- openchat/openchat_sharegpt4_dataset
|
| 14 |
+
- LDJnr/Capybara
|
| 15 |
+
- Intel/orca_dpo_pairs
|
| 16 |
+
- hkust-nlp/deita-10k-v0
|
| 17 |
+
language:
|
| 18 |
+
- en
|
| 19 |
+
tags:
|
| 20 |
+
- causal-lm
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
<!-- header start -->
|
| 24 |
+
<!-- 200823 -->
|
| 25 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 26 |
+
<img src="https://github.com/GaiaNet-AI/.github/assets/45785633/d6976adc-f97d-4f86-a648-0f2f5c8e7eee" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
| 27 |
+
</div>
|
| 28 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
| 29 |
+
<!-- header end -->
|
| 30 |
+
|
| 31 |
+
# StableLM-2-Zephyr-1.6B-GGUF
|
| 32 |
+
|
| 33 |
+
## Original Model
|
| 34 |
+
|
| 35 |
+
[stabilityai/stablelm-2-zephyr-1_6b](https://huggingface.co/stabilityai/stablelm-2-zephyr-1_6b)
|
| 36 |
+
|
| 37 |
+
## Run with Gaianet
|
| 38 |
+
|
| 39 |
+
**Prompt template:**
|
| 40 |
+
|
| 41 |
+
prompt template: `llama-2-chat`
|
| 42 |
+
|
| 43 |
+
**Context size:**
|
| 44 |
+
|
| 45 |
+
chat_ctx_size: `4096`
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
**Run with GaiaNet:**
|
| 49 |
+
|
| 50 |
+
- Quick start: https://docs.gaianet.ai/node-guide/quick-start
|
| 51 |
+
|
| 52 |
+
- Customize your node: https://docs.gaianet.ai/node-guide/customize
|
| 53 |
+
|
| 54 |
+
|