Instructions to use nvidia/magpie_tts_multilingual_357m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nvidia/magpie_tts_multilingual_357m with NeMo:
# tag did not correspond to a valid NeMo domain.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nvidia/magpie_tts_multilingual_357m 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 nvidia/magpie_tts_multilingual_357m:F16 # Run inference directly in the terminal: llama cli -hf nvidia/magpie_tts_multilingual_357m:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nvidia/magpie_tts_multilingual_357m:F16 # Run inference directly in the terminal: llama cli -hf nvidia/magpie_tts_multilingual_357m: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 nvidia/magpie_tts_multilingual_357m:F16 # Run inference directly in the terminal: ./llama-cli -hf nvidia/magpie_tts_multilingual_357m: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 nvidia/magpie_tts_multilingual_357m:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf nvidia/magpie_tts_multilingual_357m:F16
Use Docker
docker model run hf.co/nvidia/magpie_tts_multilingual_357m:F16
- LM Studio
- Jan
- Ollama
How to use nvidia/magpie_tts_multilingual_357m with Ollama:
ollama run hf.co/nvidia/magpie_tts_multilingual_357m:F16
- Unsloth Studio
How to use nvidia/magpie_tts_multilingual_357m 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 nvidia/magpie_tts_multilingual_357m 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 nvidia/magpie_tts_multilingual_357m to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for nvidia/magpie_tts_multilingual_357m to start chatting
- Docker Model Runner
How to use nvidia/magpie_tts_multilingual_357m with Docker Model Runner:
docker model run hf.co/nvidia/magpie_tts_multilingual_357m:F16
- Lemonade
How to use nvidia/magpie_tts_multilingual_357m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nvidia/magpie_tts_multilingual_357m:F16
Run and chat with the model
lemonade run user.magpie_tts_multilingual_357m-F16
List all available models
lemonade list
- Atomic Chat
Add NeMo-Speech.cpp GGUF and tokenizer assets
#6
by prabhsimrans-nv - opened
- .gitattributes +1 -0
- README.md +33 -2
- magpie_tts_multilingual_357m.v2602.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -46,3 +46,4 @@ Feb26_CE-Removed_Magpie-TTS-5speakers.nemo filter=lfs diff=lfs merge=lfs -text
|
|
| 46 |
magpie_tts_next.nemo filter=lfs diff=lfs merge=lfs -text
|
| 47 |
CE-Removed_Magpie-TTS-ML-V1_5speakers_new_withinferenceparams.nemo filter=lfs diff=lfs merge=lfs -text
|
| 48 |
magpie_tts_next_withoutinferenceparams.nemo filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 46 |
magpie_tts_next.nemo filter=lfs diff=lfs merge=lfs -text
|
| 47 |
CE-Removed_Magpie-TTS-ML-V1_5speakers_new_withinferenceparams.nemo filter=lfs diff=lfs merge=lfs -text
|
| 48 |
magpie_tts_next_withoutinferenceparams.nemo filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -158,7 +158,7 @@ This model is not intended for zero-shot voice cloning, languages outside the 12
|
|
| 158 |
## How to Get Started with the Model
|
| 159 |
|
| 160 |
> [!TIP]
|
| 161 |
-
>
|
| 162 |
|
| 163 |
### Hosted API Quickstart
|
| 164 |
|
|
@@ -234,7 +234,38 @@ python python-clients/scripts/tts/talk.py \
|
|
| 234 |
|
| 235 |
> **Note:** Voice IDs and supported sample rates follow the deployed NIM. Use `--list-voices` against this endpoint, or see the **API Reference** on the [Magpie TTS Multilingual](https://build.nvidia.com/nvidia/magpie-tts-multilingual) page.
|
| 236 |
|
| 237 |
-
###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
|
| 239 |
<a id="local-inference-with-nemo"></a>
|
| 240 |
|
|
|
|
| 158 |
## How to Get Started with the Model
|
| 159 |
|
| 160 |
> [!TIP]
|
| 161 |
+
> Try the [hosted API](#hosted-api-quickstart), run locally with [NeMo-Speech.cpp](#run-magpietts-locally-with-nemo-speechcpp), or use the [NeMo Speech Framework](#local-inference-with-nemo) for Python inference and training.
|
| 162 |
|
| 163 |
### Hosted API Quickstart
|
| 164 |
|
|
|
|
| 234 |
|
| 235 |
> **Note:** Voice IDs and supported sample rates follow the deployed NIM. Use `--list-voices` against this endpoint, or see the **API Reference** on the [Magpie TTS Multilingual](https://build.nvidia.com/nvidia/magpie-tts-multilingual) page.
|
| 236 |
|
| 237 |
+
### Run MagpieTTS locally with NeMo-Speech.cpp
|
| 238 |
+
|
| 239 |
+
[NeMo-Speech.cpp](https://github.com/NVIDIA/NeMo-Speech.cpp) provides a
|
| 240 |
+
lightweight native C++ runtime for running this model locally. This `v2602`
|
| 241 |
+
GGUF uses the tokenizer assets contained in the original `.nemo` archive and
|
| 242 |
+
the companion NanoCodec decoder.
|
| 243 |
+
|
| 244 |
+
After [installing NeMo-Speech.cpp](https://github.com/NVIDIA/NeMo-Speech.cpp#installation):
|
| 245 |
+
|
| 246 |
+
```bash
|
| 247 |
+
hf download nvidia/magpie_tts_multilingual_357m \
|
| 248 |
+
--include magpie_tts_multilingual_357m.v2602.f16.gguf \
|
| 249 |
+
--include magpie_tts_multilingual_357m.nemo \
|
| 250 |
+
--local-dir magpie-tts
|
| 251 |
+
|
| 252 |
+
mkdir -p magpie-tts/extracted
|
| 253 |
+
tar -xf magpie-tts/magpie_tts_multilingual_357m.nemo \
|
| 254 |
+
-C magpie-tts/extracted
|
| 255 |
+
|
| 256 |
+
hf download nvidia/nemo-nano-codec-22khz-1.89kbps-21.5fps \
|
| 257 |
+
nemo_nano_codec_22khz_1.89kbps_21.5fps.decoder.f16.gguf \
|
| 258 |
+
--local-dir nano-codec
|
| 259 |
+
|
| 260 |
+
nemo-speech synthesize "Hello from Magpie Multilingual." \
|
| 261 |
+
--magpie-model magpie-tts/magpie_tts_multilingual_357m.v2602.f16.gguf \
|
| 262 |
+
--codec-model nano-codec/nemo_nano_codec_22khz_1.89kbps_21.5fps.decoder.f16.gguf \
|
| 263 |
+
--tokenizer-dir magpie-tts/extracted \
|
| 264 |
+
--language en-US \
|
| 265 |
+
--output speech.wav
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
### Python Inference with the NeMo Speech Framework
|
| 269 |
|
| 270 |
<a id="local-inference-with-nemo"></a>
|
| 271 |
|
magpie_tts_multilingual_357m.v2602.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:901d299a8b1df016cf81cae0089a7a7c15627b9633d033357e15a47d9a219a75
|
| 3 |
+
size 448604832
|