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 (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -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 serve -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
metadata
base_model: stabilityai/stablelm-2-zephyr-1_6b
license: other
model_creator: stabilityai
model_name: StableLM 2 Zephyr 1.6B
pipeline_tag: text-generation
quantized_by: Second State Inc.
datasets:
- HuggingFaceH4/ultrachat_200k
- allenai/ultrafeedback_binarized_cleaned
- meta-math/MetaMathQA
- WizardLM/WizardLM_evol_instruct_V2_196k
- openchat/openchat_sharegpt4_dataset
- LDJnr/Capybara
- Intel/orca_dpo_pairs
- hkust-nlp/deita-10k-v0
language:
- en
tags:
- causal-lm
StableLM-2-Zephyr-1.6B-GGUF
Original Model
stabilityai/stablelm-2-zephyr-1_6b
Run with Gaianet
Prompt template:
prompt template: llama-2-chat
Context size:
chat_ctx_size: 4096
Run with GaiaNet:
Quick start: https://docs.gaianet.ai/node-guide/quick-start
Customize your node: https://docs.gaianet.ai/node-guide/customize