YuE #01: Open-Source Model That Turns Lyrics Into Songs
YuE turns a page of lyrics into a full song with vocals and accompaniment, then hands you the weights under Apache 2.0. Here is how it actually works.
YuE is the first openly released model I could run on my own machine that takes a page of lyrics and returns a complete song: vocals and accompaniment together, minutes long instead of seconds. It came out of HKUST with the M-A-P collective in January 2025, and the authors claim in their paper that it matches or beats some proprietary systems on musicality and vocal agility. I read that as a vendor claim. The demo output and the community finetunes argue it better: the thing works well enough that people build products on it.
What YuE Does That Other Open Models Did Not
Before YuE, open music models mostly handed you a riff, a loop, or an instrumental bed. YuE aims at the whole song: lyrics with an actual structure, a vocal line that follows those words, an accompaniment that sits under them, and enough length for a verse, a chorus, and somewhere to go afterwards. The paper puts the ceiling at roughly five minutes. It handles English, Mandarin, Cantonese, Japanese and Korean, and the checkpoints are split by language, so you pick the one that matches the words you wrote.
Two Language Models And A Tokenizer
Under the hood there are four pieces: an audio tokenizer, a text tokenizer, and two language models. The audio tokenizer converts waveforms into discrete codes, with the bottom codebook carrying meaning-level structure and the upper ones carrying detail. Stage one is a 7B-scale model that predicts text tokens plus those bottom-level audio codes. Stage two is a 1B model that fills in the remaining codes so audio can be reconstructed. A lightweight vocoder finishes the job, lifting the 16kHz output to 44.1kHz.
Track-Decoupled Prediction, Explained Plainly
Earlier systems produced a grey smear because they tried to predict one dense stream containing voice and instruments at the same time. YuE decouples the tracks: vocal and accompaniment are modeled as separate streams that stay aligned. On top of that, structural progressive conditioning feeds the lyric sections to the model in order, so a long song keeps its shape instead of wandering. If you have watched a generation drift away from the words after the first chorus, this is the mechanism that fights it.
What The January 2025 Release Actually Included
The useful part is not the paper, it is the package. Weights, inference code, prompt guidance, and checkpoints for two modes: chain-of-thought, where the model plans musically before writing audio, and in-context learning, where you hand it a reference clip and it writes in that style. On 30 January 2025 the team moved the model and its weights to Apache 2.0. Finetuning with LoRA followed a few months later, in June 2025.
A First Run, Start To Finish
- Clone the repository, install dependencies, and download the inference bundle that contains the tokenizer.
- Write
genre.txt: genre, instruments, mood, gender and timbre, separated by spaces. The project publishes the tag list it leaned on in training; starting there is more stable than inventing words. - Write
lyrics.txtwith a section label in front of each block and a blank line between blocks. - Run
infer.pywith a Stage-1 checkpoint such asm-a-p/YuE-s1-7B-anneal-en-cot, the Stage-2 modelm-a-p/YuE-s2-1B-general, and--run_n_segmentsset to the number of lyric sections you wrote. The default budget of 3000 new tokens per section ships as-is. - Listen to each section file as it lands, then assemble and finish the result like any other recording.
Where YuE Still Falls Short
Long generations drift in pitch and pronunciation, some genres come out flatter than others, and you need a real GPU to run it at a comfortable speed. It hands you a rough take: mixing and mastering in your daw come before anything ships. Take the first output as a demo you refine, not a master you deliver.
— Nam Hoai (Nam Hoài Đất Mỏ)