YuE2 AI music generation with editable scores
YuE2 is a capable open AI music generation model, especially when developers need to inspect or change a composition before rendering. Its symbolic planning, cover mode, and editing workflow are more controllable than a prompt-only generator. The catch is a demanding local setup and weight licensing that excludes ordinary company use without permission.
What YuE2 Is
YuE2 is an open music model that combines symbolic composition planning with neural audio synthesis. Its ARβNAR Mixture-of-Transformers backbone predicts score and semantic tokens, flow matching generates acoustic latents, and a VAE decodes those latents into stereo audio. The Python pipeline separates planning, semantic generation, synthesis, and decoding.
Why Symbolic Planning Matters
Developers using prompt-only music generators cannot easily intervene in the intended melody, chords, or arrangement before hearing a finished recording. YuE2 addresses this by producing a reviewable score in ABC notation first, allowing a person or agent to modify the composition before the model synthesizes the final song.
Generation, Covers, and Editing
- βYuE2 can plan a complete song as an editable melody-and-chord score, generate accompaniment and vocals from that plan, or bypass symbolic planning with `cot="off"`.
- βThe primary Hugging Face checkpoint is published as `YuE2-3B`, with separate resources for the default VAE and the legacy decoder used by the reported benchmark protocol.
- βCover generation accepts an ABC melody score, new lyrics, and a target style; SheetSage2 can transcribe a source recording into a score before generation.
- βScore editing accepts a supplied ABC file, so harmony, melody, tempo, form, and other musical details can be revised before a new recording is rendered.
- βThe model outputs 48 kHz stereo audio without quantization and retains the score, semantic tokens, acoustic latents, settings, and model identities alongside the FLAC file.
- βThe `yue2-music` agent skill can generate songs or instrumental pieces, transcribe and cover recordings, modify ABC scores, verify musical invariants, and organize listening comparisons.
Ways to Use YuE2
- β’Compose a full vocal song from lyrics and a style prompt while retaining a human-readable score for review.
- β’Reinterpret a transcribed recording in another style without cover-specific fine-tuning.
- β’Change a song's harmony, melody, tempo, or form by editing its ABC notation before rendering.
- β’Create instrumental music through the agent skill, which converts the vocal part of the default score into an instrumental arrangement.
- β’Reproduce a benchmark or production workflow with intermediate score and latent artifacts available for inspection.
- β’Test several candidate outputs before choosing a recording, using the documented multi-candidate and best-of-eight selection settings.
Python Generation Workflow
Load a request with `YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda")`. New songs default to `cot="full"`, which creates an editable score before rendering; use `cot="melody"` for covers, `cot="off"` for direct generation, or pass `abc=...` to render a supplied score. For covers, transcribe a recording with SheetSage2, review its melody ABC, and provide new lyrics or a style. For editing, call `plan()`, modify the saved `score.abc`, then pass the revised file to `examples/generate.py --abc-file edited.abc --cot full`. Every run can save its score and intermediate artifacts for later inspection.
Benefits of an Editable Score
- βYuE2 exposes the composition before audio generation, giving developers a concrete place to correct melody, chords, or arrangement.
- βThe staged API preserves intermediate outputs, so a failed recording does not erase the underlying plan.
- βGeneration, transcription-assisted covers, and score editing can share one checkpoint rather than requiring separate fine-tuned models.
- βAgent workflows can operate on readable ABC notation instead of manipulating an opaque waveform or requesting vague text revisions.
Hardware and Licensing Constraints
- β³Running YuE2 locally requires Linux, Python 3.12, BF16 support, an NVIDIA GPU, and 24 GB VRAM, which excludes many ordinary workstations.
- β³The model weights use CC BY-NC 4.0 with added creator permission; personal output monetization is allowed, but company commercial use requires contacting the authors.
- β³Academic and educational use is limited to non-commercial activity under the terms documented by YuE2.
- β³Editing creates a new recording rather than retaining the original waveform outside the changed section, and cover pipelines still require manual listening checks for melody accuracy and vocal leakage.
Other Music Generation Models
YuE2 Questions and Answers
YuE2 requires Linux, Python 3.12, an NVIDIA GPU with BF16 support, and 24 GB VRAM for local inference. The first run downloads model files from Hugging Face, and generation produces 48 kHz stereo audio without quantization.
Personal users, content creators, and musicians may use YuE2 and monetize generated outputs without fees or royalties payable to the authors. Companies must contact YuE2's authors to discuss a commercial model-weight license; the repository does not grant ordinary commercial use automatically.
YuE2 can create a zero-shot cover without cover-specific fine-tuning. SheetSage2 first transcribes the source recording into melody ABC, after which YuE2 can render that melody with new lyrics or a target style using `cot="melody"`.
YuE2 cannot perform a waveform-preserving edit. It edits the symbolic score and generates a new complete recording, so audio outside the intended musical change may also be rendered differently.
YuE2 can generate instrumental music through its agent skill. The documented flow creates or imports a score, moves vocal notes into the instrumental part, and renders the result; some instrumental workflows use a separately pinned setup.
YuE2's code, agent skill, and documentation use Apache 2.0. Its model weights use CC BY-NC 4.0 with additional creator permission, so personal and permitted educational use differs from company commercial use.
Who should try it β and who should skip
YuE2 suits developers, researchers, music technologists, and artists who need control over melody and chords before committing to a final recording. It is also a practical choice for building agentic music-editing workflows because the score can be inspected and changed directly. Skip it if you need lightweight CPU-only generation, unrestricted company use of the model weights, or a finished-service experience without substantial setup.
Related repositories
Is YuE worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of YuE.
