Text-to-Audio
Diffusers
Safetensors
PyTorch
minimax_music3
music-generation
text-to-music
sglang-omni
Instructions to use MiniMaxAI/MiniMax-Music3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MiniMaxAI/MiniMax-Music3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-Music3", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -106,6 +106,15 @@ MiniMax Music 3 is supported by [SGLang-Omni](https://github.com/sgl-project/sgl
|
|
| 106 |
hf download MiniMaxAI/MiniMax-Music3 --local-dir /path/to/minimax_ttm
|
| 107 |
```
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
### Serve with SGLang-Omni
|
| 110 |
|
| 111 |
```bash
|
|
@@ -209,7 +218,7 @@ apply_group_offloading(
|
|
| 209 |
|
| 210 |
## Prompt Enhancement
|
| 211 |
|
| 212 |
-
A concise natural-language description can be used directly. For richer prompts and more precise control, use the provided [`music-caption-rewriter`](skills/music-caption-rewriter
|
| 213 |
|
| 214 |
```bash
|
| 215 |
npx skills add MiniMax-AI/MiniMax-Music3 --skill music-caption-rewriter
|
|
|
|
| 106 |
hf download MiniMaxAI/MiniMax-Music3 --local-dir /path/to/minimax_ttm
|
| 107 |
```
|
| 108 |
|
| 109 |
+
We recommend the following inference frameworks to serve the model:
|
| 110 |
+
|
| 111 |
+
- [SGLang](https://docs.sglang.io/) \- see [cookbook](https://sgl-project.github.io/sglang-omni/cookbook/minimax_music3.html)
|
| 112 |
+
|
| 113 |
+
- [diffusers](https://github.com/huggingface/diffusers) \- see [diffusers docs](https://huggingface.co/docs/diffusers/main/en/api/pipelines/minimax_h3)
|
| 114 |
+
|
| 115 |
+
- [ComfyUI](https://github.com/Comfy-Org/ComfyUI) \- see [Comfy tutorial](https://docs.comfy.org/tutorials/video/minimax/minimax-h3);
|
| 116 |
+
|
| 117 |
+
-
|
| 118 |
### Serve with SGLang-Omni
|
| 119 |
|
| 120 |
```bash
|
|
|
|
| 218 |
|
| 219 |
## Prompt Enhancement
|
| 220 |
|
| 221 |
+
A concise natural-language description can be used directly. For richer prompts and more precise control, use the provided [`music-caption-rewriter`](https://github.com/MiniMax-AI/MiniMax-Music3/tree/main/skills/music-caption-rewriter) skill to expand it into a Structured Caption containing `Global Metadata`, `Vocal Details`, and `Arrangement`. The skill preserves musical instructions attached to lyric section tags in the arrangement description while keeping the lyric text in the lyrics input.
|
| 222 |
|
| 223 |
```bash
|
| 224 |
npx skills add MiniMax-AI/MiniMax-Music3 --skill music-caption-rewriter
|