Instructions to use eugenehp/chatterbox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use eugenehp/chatterbox with Chatterbox:
# pip install chatterbox-tts import torchaudio as ta from chatterbox.tts import ChatterboxTTS model = ChatterboxTTS.from_pretrained(device="cuda") text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill." wav = model.generate(text) ta.save("test-1.wav", wav, model.sr) # If you want to synthesize with a different voice, specify the audio prompt AUDIO_PROMPT_PATH="YOUR_FILE.wav" wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH) ta.save("test-2.wav", wav, model.sr) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use eugenehp/chatterbox 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 eugenehp/chatterbox:Q4_K_M # Run inference directly in the terminal: llama cli -hf eugenehp/chatterbox:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf eugenehp/chatterbox:Q4_K_M # Run inference directly in the terminal: llama cli -hf eugenehp/chatterbox: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 eugenehp/chatterbox:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf eugenehp/chatterbox: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 eugenehp/chatterbox:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf eugenehp/chatterbox:Q4_K_M
Use Docker
docker model run hf.co/eugenehp/chatterbox:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use eugenehp/chatterbox with Ollama:
ollama run hf.co/eugenehp/chatterbox:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use eugenehp/chatterbox with Docker Model Runner:
docker model run hf.co/eugenehp/chatterbox:Q4_K_M
- Lemonade
How to use eugenehp/chatterbox with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull eugenehp/chatterbox:Q4_K_M
Run and chat with the model
lemonade run user.chatterbox-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download config.json from eugenehp/chatterbox: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/eugenehp/chatterbox/resolve/main/config.json
- Command line
-
hf download hf://eugenehp/chatterbox/config.json
-
curl -L -o config.json https://huggingface.co/eugenehp/chatterbox/resolve/main/config.json
1.1 kB
| { | |
| "model_type": "chatterbox", | |
| "text_config": { | |
| "architectures": [ | |
| "LlamaForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "head_dim": 64, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "max_position_embeddings": 131072, | |
| "mlp_bias": false, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 30, | |
| "num_key_value_heads": 16, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": { | |
| "factor": 8.0, | |
| "high_freq_factor": 4.0, | |
| "low_freq_factor": 1.0, | |
| "original_max_position_embeddings": 8192, | |
| "rope_type": "llama3" | |
| }, | |
| "rope_theta": 500000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.46.3", | |
| "use_cache": true, | |
| "vocab_size": 8194 | |
| }, | |
| "transformers.js_config": { | |
| "use_external_data_format": true, | |
| "kv_cache_dtype": { | |
| "fp16": "float16", | |
| "q4f16": "float16" | |
| } | |
| } | |
| } |