Requirements
- ComfyUI v0.36.0 or later. See the release notes that list the YuE2 blueprints.
- A local install. The YuE2 templates are not available on Comfy Cloud at the time of writing.
- An NVIDIA GPU. The int8 checkpoint used by the templates is lighter than the full BF16 weights; 12 GB or more gives comfortable headroom, and 24 GB matches the official recommendation.
Download the model files
Download the checkpoint and audio encoder from Comfy-Org/YuE2 on Hugging Face. Use the ComfyUI checkpoint for these templates. The official Python package in the local setup guide uses a different download.
| File | Needed for | Folder |
|---|---|---|
yue2_3b_int8_convrot.safetensors | Text to music and cover | ComfyUI/models/checkpoints/ |
sheetsage2_bf16.safetensors | Music cover only | ComfyUI/models/audio_encoders/ |
Restart ComfyUI (or refresh the model list) after copying the files.
Load the templates
Open the Template Library, search for YuE2, and match the graph to your starting material.
- Text to Music
- Style and lyrics → planned score → rendered song
- Music Cover
- Reference audio → SheetSage2 melody → new arrangement
The text workflow is named audio_yue2_text2music.json. For a cover, look for audio_yue2_music_cover.json and confirm that its audio encoder can find the SheetSage2 file. If you only want to change the instruments behind a melody, keep the reference fixed for your first two runs.
Text to Music: the settings that matter
| Setting | What it does | Recommended |
|---|---|---|
| Style | Genre, voice, language, tempo, instruments, mood | One or two concrete lines |
| Lyrics | Sung words only, with [Verse], [Chorus], [Bridge], [Outro] | Repeat the chorus exactly |
| Mode | full plans melody + chords; melody plans melody only | full for new songs |
| abc | Your own ABC score; leave empty to plan automatically | Empty |
| Max Duration | Seconds of audio budget, up to 900 | 120–240 |
| cfg_scale | Prompt guidance strength (0–100, default 1.0) | Leave at 1.0 |
Max Duration is converted into a token budget of 25 semantic tokens per second. The song can end before the limit — sampling stops at the model's end token — so a higher value is a ceiling, not a target.
Keep musical instructions in Style and only sung words in Lyrics. Anything in the lyrics box may be sung out loud.
Music Cover workflow
- Load your reference song into the LoadAudio node (the template expects a file like
yue2_reference_song.flac; any common format works). - SheetSage2 transcribes the melody into ABC notation.
- Write the new Style and the Lyrics to sing.
- Run. The template defaults to 360 seconds of budget so whole songs fit.
Tip: keep new lyric lines close in length to the original phrases — the melody match improves noticeably. A vocal-forward source transcribes far better than a dense full mix. More cover tips are in our YuE2 music cover guide.
Score editing with FL YuE2
The FL YuE2 node pack (install through ComfyUI Manager) adds a piano-roll editor for the YuE2 score. Generate a plan, adjust notes or chords in the roll, then render. Remember that rendering produces a fresh recording of the whole song — the edit isn't spliced into the old audio.
Troubleshooting
| Message or symptom | Cause | Fix |
|---|---|---|
| Console logs a reduced token budget | Prompt uses too much context | Shorten style and lyrics |
| Warning that the budget ran out before the end token; audio cuts off | Max Duration too small | Raise Max Duration |
| Cover doesn't resemble the original | Transcription errors | Use a cleaner, vocal-forward source; match lyric lengths |
| Out-of-memory error | GPU too small for settings | Lower Max Duration, close other apps, or use the online generator |
| Nodes missing | ComfyUI too old | Update to v0.36.0+ |
Check the graph before a longer run
Run a short Text to Music example first and confirm it reaches the audio output. Then load Music Cover and check that the audio encoder sees the reference file. If the song ends too early, compare the configured duration with the console's token budget message before changing the prompt.



