YuE: Open Full-song Music Generation Foundation Model, something similar to Suno.ai but open
YuE: Open Full-song Music Generation Foundation Model, something similar to Suno.ai but open
Looking for the original YuE? Its code, documentation, and license are preserved on the YuE-v1 branch.
Compose in symbols. Create in sound.
Demos · ️ Music Arena · YuE2 · Quick start · Agent skill · Benchmarks · MERT2 · SheetSage2 · WSB · Release ·
YuE2 brings frontier song quality to music generation with an editable composition. Give it lyrics and a style prompt: it writes a melody-and-chord plan, then realizes that plan as a complete song with vocals and accompaniment.
** YuE2 needs your ears**
We're running a public listening study comparing YuE2 with leading proprietary music generation systems. Listen to anonymous music clips and choose A, B, or a tie. Your honest feedback helps us understand how YuE2 sounds to real listeners.
Listen & vote → · No account needed. Headphones recommended.
| Create | Cover | Edit with an agent |
|---|---|---|
| Lyrics + style → score → full song | Source recording → melody score → a new interpretation | Musical feedback → score, style, or lyric revisions → a new recording |
| Listen and inspect the score | Hear zero-shot covers | Follow an editing conversation |
The agentic demo follows The Last Train through 9 steps and 14 versions, from Mandarin pop to English jazz with new harmony and a saxophone solo. Listen to each version and inspect its conversation, score, prompt, and lyrics.
One AR–NAR Mixture-of-Transformers backbone predicts the score and semantic tokens autoregressively, then generates acoustic latents with flow matching. A VAE decodes those latents into stereo audio. Creation, covering, and editing differ in where the score comes from: YuE2, a transcribed recording, or an edited composition.
The staged Python API exposes plan() → generate_semantic() → synthesize() → decode(). See the generation guide for exact-plan reuse and decoder selection.
Linux · Python 3.12 · NVIDIA GPU with BF16 support and 24 GB VRAM. YuE2 produces 48 kHz stereo audio without quantization. Model files download from Hugging Face on first use.
git clone https://github.com/multimodal-art-projection/YuE.git
cd YuE
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
python examples/generate.py --output outputs/first-songOpen outputs/first-song/audio.flac. The output directory also retains the score, semantic tokens, acoustic latents, generation settings, and model identities.
The Python interface is equally short:
import json
from pathlib import Path
from yue2 import YuE2Pipeline
request = json.loads(Path("examples/song.json").read_text(encoding="utf-8"))
with YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda") as pipe:
song = pipe(**request)
song.save_artifacts("outputs/my-song")
print(song.truncated)| Setting | Behavior |
|---|---|
cot="full" |
Generate an editable melody-and-chord plan; the default for new songs |
cot="melody" |
Use a melody plan with free accompaniment; recommended for covers |
cot="off" |
Generate directly from lyrics and style |
abc=... |
Supply your own score in full or melody mode |
Generation guide · Original example inputs · v0.1.6 wheel archive
Transcribe a source recording with SheetSage2, review its melody ABC, and provide new lyrics or a target style. For covers, use cot="melody" and a score without chord symbols so the accompaniment can adapt to the new style.
from pathlib import Path
from yue2 import YuE2Pipeline
with YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda") as pipe:
cover = pipe(
style="English, jazz-funk, warm lead vocal, Rhodes, bass and drums",
lyrics=Path("cover-lyrics.txt").read_text(encoding="utf-8"),
abc=Path("cover-score/score.abc").read_text(encoding="utf-8"),
cot="melody",
seed=42,
)
cover.save_artifacts("outputs/cover")SheetSage2 runs in a separate environment and loads its MERT2 encoder automatically. The cover guide gives the complete transcription and generation commands. An included original melody example also lets you try score-conditioned generation immediately.
Export a plan, revise the musical details, and render the edited score:
import json
from pathlib import Path
from yue2 import YuE2Pipeline
request = json.loads(Path("examples/song.json").read_text(encoding="utf-8"))
with YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda") as pipe:
plan = pipe.plan(**request)
plan.save("outputs/plan")Copy outputs/plan/score.abc to edited.abc, then ask an agent to change its harmony, melody, tempo, or form. Supply the edited file as a new score:
python examples/generate.py --request examples/song.json \
--abc-file edited.abc --cot full --output outputs/editedThe editable score is the white-box interface: you can inspect the intended composition and intervene on it. Editing generates a new complete recording; it does not preserve the original waveform outside an edit. Editing guide and a reproducible harmony example.
The yue2-music skill teaches an agent how to generate songs, transcribe and cover recordings, edit ABC scores, check musical invariants, and organize listening comparisons. It includes portable helpers and references to the released model interfaces.
Use skills/yue2-music/ from this repository with an agent that supports SKILL.md packages. Install it using your agent's skill-directory or import mechanism; the Python runtime is installed separately with pip install .. The earlier v0.1.6 skill ZIP remains available under its bundled license.
Try a concrete request:
Use the yue2-music skill to create an English piano-pop song. Keep the original audio and score. Make a second version with jazz harmony, preserve the vocal melody and lyric order, and give me both versions to compare.
WildSongBench: 192 prompts, automatic evaluation, September 12, 2026.
| System / setting | SongBench Avg ↑ | AudioBox PQ ↑ | MuLan ↑ | PER ↓ |
|---|---|---|---|---|
| YuE2 (best-of-8) † | 6.9632 | 8.2714 | 0.5051 | 9.79% |
| Mureka 9 | 6.9377 | 8.0226 | 0.4394 | 11.69% |
| Suno v5 | 6.8721 | 8.1698 | 0.5428 | 8.10% |
| YuE2 † | 6.7316 | 8.2598 | 0.5068 | 8.44% |
| Suno v5.5 | 6.7150 | 8.1955 | 0.5089 | 5.96% |
| Suno v4.5 | 6.6995 | 8.2541 | 0.5022 | 5.80% |
| Suno v6 | 6.5562 | 8.1296 | 0.4916 | 7.58% |
| Suno v6 Wild | 6.4195 | 8.1785 | 0.4999 | 7.45% |
| LeVo 2 † | 6.3247 | 8.3966 | 0.3542 | 26.12% |
| MiniMax Music 2.6 | 6.3222 | 8.1711 | 0.4251 | 24.55% |
| MiniMax Music 3 † | 6.2830 | 8.2825 | 0.3928 | 6.27% |
| HeartMuLa † | 6.2483 | 8.2933 | 0.3823 | 10.71% |
| Muse † | 6.0349 | 8.0517 | 0.3937 | 33.42% |
| ACE-Step 1.5 † | 6.0118 | 8.0518 | 0.4372 | 7.46% |
| DiffRhythm 2 † | 5.2428 | 7.9782 | 0.3782 | 18.41% |
| YuE 1 † | 4.9165 | 7.8683 | 0.2623 | 36.38% |
| SongBloom † | 4.2350 | 8.1539 | 0.2697 | 19.19% |
† Publicly available model weights. All 17 evaluated settings are shown, sorted by SongBench Avg; bold values mark the best result in each column.
Both YuE2 settings use symbolic planning and the benchmark decoder, YuE2-Vae-legacy. Standard YuE2 selects from two candidates; best-of-8 selects from eight. Rankings vary by metric; the small gap between the highest means does not establish statistical significance. Full results and selection protocols.
Zero-shot covers. On 948 works, full-score YuE2 reaches 0.647 CLEWS mAP, compared with 0.006 without a score, while using the general generator without cover-specific fine-tuning. Source-identity preservation and target-style quality are measured separately; melody-only covers offer more freedom to change the arrangement. Cover evaluation.
To reproduce the reported benchmark scores, follow the instructions on WildSongBench (WSB).
State-of-the-art music understanding: SOTA on 14 of 15 MARBLE metrics, with 91.72% genre accuracy on GTZAN.
Demo and results · MERT2-30s · MERT2-FS
State-of-the-art audio-to-score transcription: SOTA on 10 of 13 benchmark metrics, with 82.51% vocal melody pitch-class F1 on RWC-Pop.
Demo and results · Model and inference
| Resource | Purpose |
|---|---|
| YuE2-3B | Song generation, symbolic planning, covering, and editing |
| YuE2-Vae | Default generation and listening decoder |
| YuE2-Vae-legacy | Decoder for the reported benchmark protocol |
| SheetSage2 | Audio-to-score transcription for covers and editing |
| MERT-v2-FullSong | Full-song music representations; SheetSage2's encoder |
| [ MERT-v2-30s](https://hugg |
tizta
Yue2 still voice robotic. any solution fix robotic voice?
YuE2 on Apple Silicon: pinned torch==2.10.0 silently corrupts causal prefill attention in BF16 (MPS)
廣東話的支持
[Feature Share / Mod] Low-VRAM Symbolic Best-of-N (Bo4/Bo8) Score Ranking Loop for YuE2
Publish `yue2-infer` on PyPi.
Verify evals on Papers with Code
Proposal: use native enable_gqa on MPS instead of the repeat_interleave fallback
Commercial License
离封神差一步歌词主动对齐曲调,是技术上不可能办到还是方式未还未对外说明?