Text-to-Audio
Diffusers
Safetensors
PyTorch
minimax_music3
music-generation
text-to-music
sglang-omni
Run this model with HF Jobs
Run MiniMaxAI/MiniMax-Music3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MiniMaxAI/MiniMax-Music3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MiniMaxAI/MiniMax-Music3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
yuanhe commited on
Commit ·
535a109
1
Parent(s): dfc8edf
docs: expand MiniMax Music 3 model card
Browse filesFiles changed (4)
1 unmodified line23451 unmodified line*.pth filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -textqwen_7B/qwen3-8B-tokenizer-music/tokenizer.json filter=lfs diff=lfs merge=lfs -textfigures/*.png filter=lfs diff=lfs merge=lfs -text7 unmodified lines89101112131415161718191314152021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646517186667682069702271727374757677252627282930313233343536373839787980818283848586878889904291929394959644979899100101102103104105106107108109501101111121131141153 unmodified lines119120121606112212312412512612712812913013113213313413568691361371381391401411427514314414578791461471481491501511521531548485861551561571581591601611627 unmodified lines - sglang-omni---
<div align="center"> <img width="60%" src="figures/logo.svg" alt="MiniMax"></div><hr>
<div align="center">
# MiniMax Music 3
MiniMax Music 3 is a non-streaming music generation model conditioned on lyricsand a natural-language music description. Inference is implemented inSGLang-Omni with PyTorch and uses two CUDA GPUs:</div>
<p align="center"> <a href="https://agent.minimax.io/" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Agent-FF6C37?logo=minimax&logoColor=white" alt="MiniMax Agent"></a> <a href="https://platform.minimax.io/docs/guides/text-generation" target="_blank"><img src="https://img.shields.io/badge/API-FF6C37?logo=minimax&logoColor=white" alt="API"></a> <a href="https://www.minimax.io" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Website-FF6C37?logo=minimax&logoColor=white" alt="MiniMax Website"></a> <br> <a href="https://modelscope.cn/organization/minimax" target="_blank" rel="noopener noreferrer"><img alt="ModelScope MiniMax AI" src="https://img.shields.io/badge/ModelScope-MiniMax%20AI-white?labelColor=%23EF3D5D"></a> <a href="https://platform.minimaxi.com/docs/faq/contact-us" target="_blank"><img src="https://img.shields.io/badge/WeChat-07C160?logo=wechat&logoColor=white" alt="WeChat"></a> <a href="https://discord.com/invite/DPC4AHFCBw" target="_blank"><img src="https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white" alt="Discord"></a> <a href="https://huggingface.co/MiniMaxAI" target="_blank"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?logo=huggingface&logoColor=black" alt="Hugging Face"></a> <a href="https://github.com/MiniMax-AI/MiniMax-Music3" target="_blank"><img src="https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white" alt="GitHub"></a> <a href="https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/LICENSE-4CAF50?logo=creativecommons&logoColor=white" alt="LICENSE"></a></p>
**MiniMax Music 3** is a high-performance music generation model for creating complete songs up to **five minutes** long. Conditioned on lyrics and a detailed music description, it generates structurally coherent songs with expressive vocals, evolving arrangements, and stable long-form audio quality.
MiniMax Music 3 combines an **8B Global LLM** for long-range musical structure, a **0.6B Local LLM** for frame-level acoustic detail, and a continuous hidden-state synthesis system based on **Flow Matching** and **Flow-VAE**. The model produces 32 kHz, 16-bit stereo WAV audio.
<p align="center"> <img width="100%" src="figures/music3.0-Architecture-Diagram.png"></p>
## Complete Songs with Long-Range Coherence
MiniMax Music 3 natively supports full-song generation up to five minutes. The model maintains musical themes, rhythm, vocal identity, and arrangement progression across long sequences, enabling complete structures such as intro, verse, pre-chorus, chorus, bridge, instrumental break, and outro.
## Fine-Grained Music Control
The model accepts two complementary inputs:
- **Lyrics** define the words to be sung and may include explicit section tags such as `[Intro]`, `[Verse]`, `[Pre-Chorus]`, `[Chorus]`, `[Post-Chorus]`, `[Bridge]`, `[Instrumental]`, `[Solo]`, and `[Outro]`.- **Music description** defines the musical style, emotional progression, vocal performance, instrumentation, arrangement, and production profile.
For precise control, we recommend using a Structured Caption with three sections:
- **Global Metadata**: genre, subgenre, BPM, key, scale, emotional progression, listening scenario, and production profile.- **Vocal Details**: vocal gender, timbre, performance style, harmony, backing vocals, and vocal effects.- **Arrangement**: primary and secondary instruments, section-level instrument evolution, groove, bass, percussion, textures, and spatial effects.
This representation allows the model to follow not only a global style, but also the musical development of the song over time.
## Hybrid-LM
MiniMax Music 3 uses a hierarchical autoregressive architecture that separates global musical modeling from local acoustic modeling.
- GPU 0: Qwen3 + eight-codebook RVQ autoregressive generation;- GPU 1: flow-matching DIT + DAV waveform decoding.- The **Global LLM (8B)** predicts the first RVQ codebook frame by frame and models the song's long-range semantic and structural progression.- The **Local LLM (0.6B)** predicts the remaining acoustic codebooks within each frame and restores fine-grained acoustic information.
The generated audio is returned as a 32 kHz, 16-bit stereo WAV file.The Global LLM is initialized from Qwen3-8B. During training, its embedding and output layers are first adapted to semantic music tokens. The Global and Local LLMs are then jointly trained to model all RVQ codebooks.
## Model files## Continuous Hidden-State Synthesis
Instead of decoding only from discrete RVQ tokens, the synthesis module fuses the final hidden states of the Global and Local LLMs. These continuous representations preserve richer acoustic information for vocal articulation, instrumental texture, and temporal continuity.
The synthesis path is:
```textminimax_ttm/ config.json flowmatching_vae.pth dav.pth qwen_7B/ qwen_7B/ config.json model.safetensors.index.json model-*.safetensors qwen3-8B-tokenizer-music/ tokenizer.json tokenizer_config.json ... assets/ minimax_ttm.wavGlobal and Local LLM hidden states ↓ Hidden-state fusion ↓ Flow Matching (2.4B) ↓ Flow-VAE latent ↓ Flow-VAE Decoder (123M) ↓ 32 kHz stereo audio```
## UsageThe Flow-VAE architecture is adapted from MiniMax Speech and retrained for the dynamic range and spectral characteristics of music.
## Music Tokenizer
The training tokenizer uses eight layers of Residual Vector Quantization (RVQ):
Download the repository to a local directory before starting the service:- The first semantic codebook contains **16,384** entries and captures the core musical semantics and structure.- The remaining seven acoustic codebooks contain **1,024** entries each and represent residual acoustic details.
Training first optimizes the semantic codebook, then jointly trains all eight codebooks. At inference time, waveform synthesis uses the fused LLM hidden states and does not require the discrete tokenizer decoder.
## How to Use
### Download the Model
```bashhf download MiniMaxAI/MiniMax-Music3 --local-dir /path/to/minimax_ttm```
From the SGLang-Omni repository root:### Serve with SGLang-Omni
MiniMax Music 3 is currently supported by [SGLang-Omni](https://github.com/sgl-project/sglang-omni). From the SGLang-Omni repository root, run:
```bashpython -m sglang_omni.cli serve \3 unmodified lines --port 8000```
Send a non-streaming request through the shared speech API. `input` containsthe lyrics and `instructions` contains the music description.Inference uses two CUDA GPUs:
- **GPU 0** runs Qwen3 and eight-codebook RVQ autoregressive generation.- **GPU 1** runs Flow Matching and DAV waveform decoding.
### Generate Music
The service uses the shared speech API. Put the lyrics in `input` and the music description in `instructions`.
```bashcurl http://127.0.0.1:8000/v1/audio/speech \ -H 'Content-Type: application/json' \ -d '{ "model": "minimax_ttm", "input": "[Verse]\nHello from SGLang Omni", "instructions": "A bright piano pop song with a warm female vocal", "input": "[Verse]\nMorning light filtering through the pine\n[Chorus]\nSoftly the world begins to breathe", "instructions": "A warm acoustic pop song with intimate female vocals, fingerpicked guitar, soft piano, and a gradual emotional build into a wide final chorus.", "response_format": "wav", "seed": 7, "max_new_tokens": 9000, "stream": false }' \ --output minimax_ttm.wav --output minimax_music3.wav```
An example generated with this checkpoint is available at[`assets/minimax_ttm.wav`](assets/minimax_ttm.wav).An example generated with this checkpoint is available at [`assets/minimax_ttm.wav`](assets/minimax_ttm.wav).
## Prompt Enhancement
A concise natural-language description can be used directly. For more detailed control, it can be expanded into a Structured Caption containing `Global Metadata`, `Vocal Details`, and `Arrangement`. Musical instructions attached to lyric section tags should be preserved in the arrangement description, while the lyric text itself remains in the lyrics input.
## Limitations
- Inference requires two CUDA GPUs.- Only non-streaming generation is supported.- The tokenized text prompt is limited to 5000 tokens.- Audio generation is limited to 9000 acoustic frames.- Only non-streaming generation is currently supported.- The tokenized text prompt is limited to 5,000 tokens.- Audio generation is limited to 9,000 acoustic frames.- Section tags and music descriptions provide generative control rather than strict symbolic guarantees. The generated tempo, key, instrumentation, lyrics, and song structure may not always match every requested detail exactly.
## Contact Us
Contact us at [model@minimax.io](mailto:model@minimax.io)..gitattributes+1
README.md+111-35
figures/logo.svgAdded
figures/music3.0-Architecture-Diagram.pngAdded

Large File Pointer Details
- SHA256: a69b6f939699896193d417371fa0bb3748971c5aed9ab3118c3f75b5ac8ceac5
- Pointer size: 132 Bytes
- Size of remote file: 1.1 MB