Instructions to use cagyirey/ZONOS2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cagyirey/ZONOS2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cagyirey/ZONOS2-GGUF", filename="ZONOS2-F16.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 cagyirey/ZONOS2-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 cagyirey/ZONOS2-GGUF:F16 # Run inference directly in the terminal: llama cli -hf cagyirey/ZONOS2-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cagyirey/ZONOS2-GGUF:F16 # Run inference directly in the terminal: llama cli -hf cagyirey/ZONOS2-GGUF:F16
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 cagyirey/ZONOS2-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf cagyirey/ZONOS2-GGUF:F16
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 cagyirey/ZONOS2-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf cagyirey/ZONOS2-GGUF:F16
Use Docker
docker model run hf.co/cagyirey/ZONOS2-GGUF:F16
- LM Studio
- Jan
- Ollama
How to use cagyirey/ZONOS2-GGUF with Ollama:
ollama run hf.co/cagyirey/ZONOS2-GGUF:F16
- Unsloth Studio
How to use cagyirey/ZONOS2-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 cagyirey/ZONOS2-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 cagyirey/ZONOS2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cagyirey/ZONOS2-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use cagyirey/ZONOS2-GGUF with Docker Model Runner:
docker model run hf.co/cagyirey/ZONOS2-GGUF:F16
- Lemonade
How to use cagyirey/ZONOS2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cagyirey/ZONOS2-GGUF:F16
Run and chat with the model
lemonade run user.ZONOS2-GGUF-F16
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)ZONOS2-GGUF
GGUF builds of Zyphra/ZONOS2 โ an ~8B-parameter (SonicMoE, ~900M active) real-time text-to-speech model with voice cloning โ for mistral.rs.
Files
| File | Size | Use |
|---|---|---|
ZONOS2-Q8_0.gguf |
8.27 GB | Recommended. Near-lossless and the smallest coherent quantization. |
ZONOS2-F16.gguf |
15.3 GB | Full precision, for maximum fidelity / reference. |
Quantization: Q8_0 is the floor for this architecture โ smaller quants (Q6_K and below) are incoherent, because ZONOS2's SonicMoE residual structure amplifies low-bit error. Use Q8_0 or F16.
Usage (mistral.rs)
Serve the model:
mistralrs-server -p 8080 speech --arch zonos2 --model-id ZONOS2-Q8_0.gguf
Generate speech via the OpenAI-compatible /v1/audio/speech endpoint. For voice cloning, pass a speaker embedding:
curl localhost:8080/v1/audio/speech \
-H 'Content-Type: application/json' \
-d '{
"model": "default",
"input": "Your text here.",
"speaker_embedding": [ /* 2048-dim speaker vector */ ],
"response_format": "wav"
}' --output out.wav
speaker_embeddingโ the[2048]-dim speaker vector (e.g. from an ECAPA speaker encoder). Omit it for unconditional generation.- Tip: punctuate naturally โ short clauses help prosody and clean utterance termination.
Model
- Architecture: ZONOS2 (Zyphra) โ SonicMoE decoder + DAC neural codec.
- Output: 16-bit mono PCM, 44.1 kHz.
- Voice cloning: via a per-request speaker embedding.
Provenance
Converted from the upstream Zyphra/ZONOS2 checkpoint with mistralrs-modeltool zonos2-gguf.
- Downloads last month
- 165
8-bit
16-bit
Model tree for cagyirey/ZONOS2-GGUF
Base model
Zyphra/ZONOS2
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cagyirey/ZONOS2-GGUF", filename="", )