Node workflows

Build a YuE2 workflow in ComfyUI

Start with a native template. Text to Music takes lyrics and a style. Music Cover adds a reference recording and a transcription stage before rendering.

Two starting graphsThe cover template adds the SheetSage2 audio encoder.

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.

FileNeeded forFolder
yue2_3b_int8_convrot.safetensorsText to music and coverComfyUI/models/checkpoints/
sheetsage2_bf16.safetensorsMusic cover onlyComfyUI/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

SettingWhat it doesRecommended
StyleGenre, voice, language, tempo, instruments, moodOne or two concrete lines
LyricsSung words only, with [Verse], [Chorus], [Bridge], [Outro]Repeat the chorus exactly
Modefull plans melody + chords; melody plans melody onlyfull for new songs
abcYour own ABC score; leave empty to plan automaticallyEmpty
Max DurationSeconds of audio budget, up to 900120–240
cfg_scalePrompt 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

  1. Load your reference song into the LoadAudio node (the template expects a file like yue2_reference_song.flac; any common format works).
  2. SheetSage2 transcribes the melody into ABC notation.
  3. Write the new Style and the Lyrics to sing.
  4. 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 symptomCauseFix
Console logs a reduced token budgetPrompt uses too much contextShorten style and lyrics
Warning that the budget ran out before the end token; audio cuts offMax Duration too smallRaise Max Duration
Cover doesn't resemble the originalTranscription errorsUse a cleaner, vocal-forward source; match lyric lengths
Out-of-memory errorGPU too small for settingsLower Max Duration, close other apps, or use the online generator
Nodes missingComfyUI too oldUpdate 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.

Frequently asked questions