Text-to-Audio
GGUF
moonbox
llama.cpp
yue2
music-generation
text-to-song
non-commercial

YuE2-3B GGUF

GGUF builds of YuE2-3B, made by Moonbox for on-device use with llama.cpp (Metal, CUDA, Vulkan, CPU). Every file is at the root of this repository: one model file per precision, plus the mmproj-*.gguf file that holds the model's encoder (audio, vision or codec) when it has one. That file is shared by every precision. Pick a precision by the memory you have.

Files

The last column is the benchmark: the task score of each file on Moonbox's evaluation set for this kind of model (details under How to run), and how often it gives exactly the same output as the BF16 file. The BF16 file holds the original weights unchanged.

Precision File Size sha256 Benchmark
all mmproj-yue2-3b-F16.gguf 3.10 GB 8644dc5fb263 encoder file, used with every precision
F16 yue2-3b-F16.gguf 4.34 GB 247d11db08d6 vs the original's own streams: score KL 0.00008, top-1 99.8 %; codes KL 0.0006, top-1 95.8 %; weights 0.00 % from BF16
BF16 yue2-3b-BF16.gguf 4.34 GB 17b56d5332e0 vs the original's own streams: score KL 0.00008, top-1 99.8 %; codes KL 0.0006, top-1 95.8 %
Q8_0 yue2-3b-Q8_0.gguf 2.31 GB 25c9d7e72da6 vs the original's own streams: score KL 0.00010, top-1 99.8 %; codes KL 0.0008, top-1 95.7 %; weights 0.58 % from BF16
Q6_K yue2-3b-Q6_K.gguf 1.78 GB 16b25db80c7e vs the original's own streams: score KL 0.00014, top-1 99.7 %; codes KL 0.0015, top-1 94.7 %; weights 1.89 % from BF16
Q5_K_M yue2-3b-Q5_K_M.gguf 1.57 GB 254bd9e42aa4 vs the original's own streams: score KL 0.00026, top-1 99.7 %; codes KL 0.0030, top-1 93.3 %; weights 3.24 % from BF16
Q4_K_M yue2-3b-Q4_K_M.gguf 1.38 GB 4207010c97e8 experimental: vs the original's own streams: score KL 0.00075, top-1 99.3 %; codes KL 0.0085, top-1 88.3 %; weights 5.82 % from BF16

How to run

Non-commercial use only (CC BY-NC 4.0). YuE2-3B and its VAE are under this licence.

The model file holds the Qwen3 backbone, which writes an ABC score and then one semantic code per 40 ms. mmproj-yue2-3b-F16.gguf holds the two stages that turn the codes into audio: the NAR flow-matching half and the YuE2-Vae decoder (48 kHz stereo). It is the same file for every precision. Both files are needed. With llama.cpp b12621 or newer:

llama-tts -m yue2-3b-Q8_0.gguf -mm mmproj-yue2-3b-F16.gguf -f song.txt --output song.wav

song.txt holds the original's request:

[Tags]
City Pop, upbeat, danceable, groovy bass
[Lyrics]
[Verse]
...

--tts-voice full | melody | off picks the original's planning mode (a chord-annotated score, a melody-only score, or none). llama-server serves the same through /tts. llama.cpp's TTS notes list the parameters.

All of the original's tensors are in these files with the same values. The one exception is the latent position table, which is sinusoidal and computed at runtime.

Benchmark. Sampled songs differ every run, so each file is scored on the original's own token streams instead:

  • Streams: two songs generated by the original (yue2_infer 0.1.5 in bf16): a City Pop song from the README demo, and a folk song of our own. That is 1,257 score tokens and 2,672 codes in all.

  • Run: each file is teacher-forced on exactly those tokens through llama-server.

  • Scores, per phase:

    • the KL divergence of the file's next-token distribution from the original's, over the original's 256 most likely tokens;
    • how often the two agree on the most likely token.

    The pass mark is the lab's music-LM rule: KL <= 0.01 nats and top-1 >= 90 %.

The codes are high-entropy, and the original itself samples its top token only 16 % of the time. Q4_K_M agrees with the original's top code 88 % of the time, so it is marked experimental. The flow-matching and VAE file is the same in every precision and isn't part of this score.

How these were made

From YuE2-3B at revision 8f24312f18, with llama.cpp b12621:

  • convert_hf_to_gguf.py wrote the BF16 model file and the mmproj file.
  • llama-quantize made the other precisions from the BF16 file, with its standard mixes.
  • No importance matrix was used.

Before upload, every tensor of the original checkpoint was found with the same values in the BF16 model file and the mmproj file. The sha256 column above is what the files must hash to.

License

CC-BY-NC-4.0 (weights); code Apache-2.0. These files are a derivative of the original model and carry its license. The license is copied in this repository, and it governs your use of these files. The original model card follows unchanged.


YuE logo

🤗 YuE2-3B

Frontier music generation with editable scores

GitHub   Join Discord

🎧 Demo · 🗳️ Music Arena · 🚀 Quick start · 🎙️ Cover · 🤖 Edit · ⚡ Speed · 📊 Benchmarks · 📄 arXiv · PDF · 📄 SheetSage2 arXiv · 📚 Citation

🤗 YuE2-3B   🤗 YuE2-Vae   🤗 YuE2-Vae-legacy   🤗 MERT-v2-30s   🤗 MERT-v2-FullSong   🤗 WildSongBench   SheetSage2

YuE2 is an open music generation model with frontier song quality competitive with Suno v5/v6. Turn lyrics and a style prompt into a complete song with vocals and accompaniment, then shape its melody and chords through an editable score.

🎧 YuE2 needs your ears

Help evaluate YuE2 alongside leading proprietary music models in our blind listening arena. Listen to anonymous music clips, choose your preference, and contribute to our listener preference study.

Listen & vote → · No account needed.

State-of-the-art results on WildSongBench. YuE2 (best-of-8) achieves the highest SongBench average among all evaluated open and proprietary models: 6.9632, compared with 6.8721 for Suno v5, 6.5562 for Suno v6, and 6.4195 for Suno v6 Wild.

YuE2 song quality and text alignment on WildSongBench

Frontier song quality and text alignment on 192 WildSongBench prompts. YuE2 uses symbolic planning; Bo8 means best-of-8.

September 12, 2026 comparison: 17 settings, including Suno v6 and Suno v6 Wild. Vector PDF · SVG · All nine metrics and protocols · Full-precision CSV.

  • Compose and edit: melody + chords, melody-only, or direct generation; bring your own ABC score.
  • Edit with an agent: turn musical feedback into score, style and lyric revisions, then let YuE2 render the next version. Hear the editing process.
  • Run locally: 48 kHz stereo songs on a 24GB GPU, without quantization.
  • Build on it: Hugging Face loading, text guidance (CFG), and separate planning and synthesis APIs.

YuE2 architecture

One AR–NAR Mixture-of-Transformers backbone writes the score and semantic tokens, then generates acoustic latents through flow matching. The VAE turns them into stereo audio.

🎧 Listen to YuE2

🎶 Text-to-music

Original songs generated from lyrics and a style prompt.

Cyber Metal · English · 5:00

今晚不眠 · Mandarin funk / nu-disco · 3:24

Passion · English rock · 3:55

All three songs use 🤗 YuE2-Vae.

🎙️ Cover songs

Existing songs reimagined in a new style.

Make your own cover →

Auld Lang Syne · Jazz-funk cover · 3:10

最炫民族风 · Ballad cover · 4:45

Jingle Bells · Heavy metal cover · 1:09

🤖 Agentic editing

Explore the agentic editing demo →

Follow The Last Train through 9 steps and 14 versions, from Mandarin pop to English jazz with modern harmony and a saxophone solo built around two complete statements of “Twinkle, Twinkle, Little Star.” Hear the full songs and inspect the conversation, scores, prompts and lyrics at each step.

Try editing with an agent →

🚀 Quick start

Linux · Python 3.10+ · 24GB NVIDIA GPU with BF16 support. Install the inference package:

python -m pip install huggingface-hub==0.36.2
hf download m-a-p/YuE2-3B yue2_infer-0.1.5-py3-none-any.whl --local-dir .
python -m pip install ./yue2_infer-0.1.5-py3-none-any.whl

Create · Cover · Edit & agentic edit

Load the pipeline once for the examples below:

from pathlib import Path
from yue2 import YuE2Pipeline

pipe = YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda")

🎶 Create

Turn a style prompt and lyrics into a complete song with vocals and accompaniment.

Use the style and full lyrics from 今晚不眠, the funk / nu-disco demo above.

import json
from huggingface_hub import hf_hub_download

repo = "m-a-p/YuE2-3B"
prompt_path = hf_hub_download(repo, "examples/tonight-awake.json")
demo = json.loads(Path(prompt_path).read_text(encoding="utf-8"))
style, lyrics = demo["style"], demo["lyrics"]

song = pipe(style=style, lyrics=lyrics, cot="full", seed=demo["seed"])
song.save("song.flac")
song.save_artifacts("outputs/song")  # ABC, tokens, latents, audio and settings

Defaults are ready to use: cot="full" and 🤗 YuE2-Vae.

Option What it does
cot="full" Melody + chord planning (default)
cot="melody" Melody-only planning; recommended for covers
cot="off" Generate without a symbolic plan
cfg_scale=1.2 Experiment with stronger text guidance

🎙️ Cover

Start from an existing recording and give it a new arrangement.

For covers, we recommend melody-only mode (cot="melody").

  1. Get the score: transcribe the existing song with 🤗 SheetSage2 and save its melody ABC without chord symbols as melody.abc.
  2. Get the lyrics: ask an agent to find them online, or transcribe the singing with Qwen3-ASR or the Gemini API. Check the words, organize them into sections matching the recording, and save them as cover_lyrics.txt.
  3. Choose a target style and generate: review or edit the score and lyrics, then supply them to YuE2 with cot="melody" and your target style prompt.

Run the transcription tools in their own environments, then use the YuE2 pipeline:

cover = pipe(
    style="Jazz-funk, warm lead vocal, Rhodes piano, electric bass, tight drums",
    lyrics=Path("cover_lyrics.txt").read_text(encoding="utf-8"),
    abc=Path("melody.abc").read_text(encoding="utf-8"),
    cot="melody", seed=831001,
)
cover.save("cover.flac")
cover.save_artifacts("outputs/cover")

cot="melody" does not remove chord symbols automatically. Use cot="full" if you want to supply the original or edited harmony as well.

🎼 Edit & agentic edit

Edit the ABC yourself, or give an agent the score, original prompt and lyrics, and your requested changes. The agent can reharmonize, develop a solo, or adapt the lyrics and style; YuE2 renders each revision. Hear the multi-turn editing demo.

For the song from Create, copy outputs/song/score.abc to edited.abc. To obtain a plan before generating audio, use the same prompt and seed:

plan = pipe.plan(style=style, lyrics=lyrics, cot="full", seed=demo["seed"])
plan.save("original_plan")
# Keep the original and edit a copy as edited.abc.

For strict reharmonization, ask the agent to preserve melody pitches and rhythm and check sustained notes against the new chords. Allow selected melody or lyric changes for a broader adaptation. After reviewing edited.abc, regenerate with the revised style; this example keeps the lyrics and seed from Create:

edited_style = (
    "Jazz, expressive lead vocal, piano, tenor saxophone, upright bass, "
    "brushed drums, no guitar, spacious modern harmony"
)
song = pipe(style=edited_style, lyrics=lyrics, cot="full", seed=demo["seed"],
            abc=Path("edited.abc").read_text(encoding="utf-8"))
song.save("edited.flac")
song.save_artifacts("outputs/edited")
⚙️ CFG, individual stages, and decoder selection

Generation shows English progress messages by default, including the current stage, elapsed time, and token throughput. To disable them, use YuE2Pipeline.from_pretrained(repo, progress=False) in Python or yue2 generate --quiet / yue2 batch --quiet on the command line.

Each CoT mode selects its native instruction. Semantic CFG defaults to 1.0 for full/melody and 1.01 for off; ABC sampling uses no CFG.

pipe.plan() → pipe.generate_semantic(plan) → pipe.synthesize(semantic) → pipe.decode(latents). Call pipe.close() when finished. For the benchmark decoder, pass vae="m-a-p/YuE2-Vae-legacy" to from_pretrained.

⚡ Speed and resources

A 3.6-minute song in 71 seconds on an RTX 4090. The HF package uses PyTorch, CUDA graphs, and FlashAttention, with BF16 AR/NAR and FP32 VAE.

GPU CoT Warm samples LM tokens/s Generation / audio Peak VRAM
RTX 4090 24GB full 32 139.48 71.04 / 214.85 s 11.18 GiB
RTX 4090 24GB melody 32 139.32 68.68 / 214.67 s 11.02 GiB
RTX 4090 24GB off 32 121.07 57.91 / 196.88 s 11.09 GiB
H800 80GB full 1 164.38 54.74 / 224.96 s 10.34 GiB

One song at a time. Use a 24GB GPU and 24GB available host RAM; maximum-context testing peaked at 14.08 GiB.

H800 server · vLLM 0.19 · full CoT. This separate serving runtime handles concurrent requests:

AR concurrency limit LM system tokens/s Songs/hour Peak VRAM
1 378.42 119.43 78.55 GiB
16 2418.63 340.38 78.66 GiB
32 3231.74 373.53 76.61 GiB
🔎 Measurement details

HF: PyTorch 2.10, Transformers 4.57.6, no quantization, default YuE2-Vae. 4090 values average 32 warm requests per mode; H800 is a one-song HF download-and-generation check. Times are synchronized pipeline calls, excluding initial path resolution and saving. NVML records the full-run GPU peak.

Server: 32 songs per row; AR/NAR use PyTorch 2.10 and Triton 3.6, VAE uses PyTorch 2.6. Songs/hour is warm batch throughput through all stages, not request latency. TPS counts output tokens once, excluding prefixes, supplied ABC, and the second CFG branch. Memory includes reserved KV cache. This server is separate from the HF quick start.

📊 Benchmarks

🌍 WildSongBench · full-song generation

🔓 Open models

Model Musicality ↑ SongBench Avg ↑ MuLan ↑ AllMusicCaps ↑ Q3O ↑ PER ↓
YuE 1 4.0847 4.9165 0.2623 0.2882 3.7301 36.38%
SongBloom 3.4493 4.2350 0.2697 0.1926 3.0287 19.19%
LeVo 2 5.4590 6.3247 0.3542 0.2680 3.9458 26.12%
ACE-Step 1.5 5.1588 6.0118 0.4372 0.3869 4.5809 7.46%
HeartMuLa 5.4963 6.2483 0.3823 0.2786 3.4907 10.71%
DiffRhythm 2 4.4775 5.2428 0.3782 0.3255 4.0870 18.41%
Muse 5.1692 6.0349 0.3937 0.3466 4.4038 33.42%
MiniMax Music 3 5.3482 6.2830 0.3928 0.3609 4.4362 6.27%
YuE2 5.9075 6.7316 0.5068 0.4054 4.6819 8.44%
YuE2 (best-of-8) 6.2666 6.9632 0.5051 0.3980 4.7009 9.79%

🔒 Proprietary models

Model Musicality ↑ SongBench Avg ↑ MuLan ↑ AllMusicCaps ↑ Q3O ↑ PER ↓
Suno v5 5.9918 6.8721 0.5428 0.4353 4.5907 8.10%
Suno v4.5 5.8317 6.6995 0.5022 0.3873 4.4149 5.80%
Suno v5.5 5.8087 6.7150 0.5089 0.3917 4.5914 5.96%
Suno v6 5.6558 6.5562 0.4916 0.4305 4.6258 7.58%
Suno v6 Wild 5.5644 6.4195 0.4999 0.4316 4.5898 7.45%
MiniMax Music 2.6 5.4437 6.3222 0.4251 0.3670 4.5688 24.55%
Mureka 9 6.0488 6.9377 0.4394 0.4102 4.6368 11.69%
YuE2 5.9075 6.7316 0.5068 0.4054 4.6819 8.44%
YuE2 (best-of-8) 6.2666 6.9632 0.5051 0.3980 4.7009 9.79%

192 prompts. Both YuE2 settings use symbolic planning and 🤗 YuE2-Vae-legacy. Standard YuE2 selects from two candidates; best-of-8 selects from eight.

🎤 SHS100K · zero-shot cover generation

Method CLEWS mAP ↑ CLEWS Hit@1 ↑ VINet mAP ↑ MuLan ↑ Musicality ↑
SongEcho 0.419 48.4% 0.122 0.366 3.286
ACE-Step 1.5 0.024 2.4% 0.006 0.166 3.689
YuE2 (full score) 0.647 71.3% 0.288 0.382 5.104
YuE2 (without chords) 0.598 67.3% 0.179 0.417 5.490
YuE2 (without score) 0.006 0.3% 0.004 0.474 5.691

948 works × two styles × two seeds: 3,792 songs per method, without candidate selection. The score-conditioned variants use supplied source scores; all YuE2 variants use YuE2-Vae-legacy.

📐 Evaluation protocols and metric definitions

WSB: SongBench Avg averages seven dimensions; Q3O measures prompt adherence on a 0–5 scale; PER is phoneme error rate. YuE2 selects the lower-PER candidate from two. Best-of-8 selects by Musicality → Q3O → PER. Each candidate's PER uses the lowest-PER of four ASR passes. A pipeline call generates one candidate; selection is separate. Q3O weights differ on 10 of 192 prompts between the two YuE2 settings. Bold marks the best value within each table. Open baselines, Suno v6, and Suno v6 Wild use two candidates and four ASR passes per candidate, followed by lower-PER selection; earlier proprietary systems retain their delivered-candidate protocols. MiniMax Music 3 uses its official caption rewriter. SongBloom uses a fixed audio prompt rather than a style-text input.

SHS100K: CLEWS and Discogs-VINet measure preserved song identity against 10,545 recordings after source exclusion. MuLan measures target-style similarity; Musicality is from SongBench. Identity and quality should be read together. Every displayed metric covers all 3,792 outputs per method; incomplete Q3O scores are omitted. Source-score extraction is separate from this kit.

The overview plot combines SongBench and SongEval for quality, and MuLan, AllMusicCaps, and Q3O for alignment. These are automatic benchmark results under the stated candidate-selection protocols.

🔊 Choosing a VAE

In our comparisons, 🤗 YuE2-Vae-legacy achieves higher musicality scores on benchmarks, while 🤗 YuE2-Vae delivers better perceptual audio quality. We recommend YuE2-Vae by default; use YuE2-Vae-legacy when reproducing the paper's benchmark results.

📚 Citation

Please cite the YuE2 paper when using YuE2-3B in your research:

@article{yuan2026yue2,
  title = {{YuE2}: Unifying Symbolic and Audio Music Generation at Frontier Quality},
  author = {Yuan, Ruibin and Pan, Jiahao and Jiang, Junyan and Wu, Zhiyue and Zhou, Ziya and Sun, Jiankai and Li, Yizhi and Zhang, Ge and Gu, Yicheng and Tian, Zeyue and Dai, Junyu and Lin, Hanfeng and Li, Kai and Wu, Shangda and Liu, Xuanjie and Wang, Jiaming and Liu, Zihan and Wang, Yue and Ma, Yinghao and Yin, Hanzhi and Chen, Kangrui and Zhang, Xinyue and Ma, Ziyang and Liao, Mengqi and Zhao, Hejia and Huang, Guowei and Yan, Chao and Ke, Lei and Yu, Jianwei and Liu, Bei and Guo, Joe and Xue, Liumeng and Xia, Gus and Xue, Wei and Guo, Yike},
  journal = {arXiv preprint arXiv:2609.33757},
  year = {2026},
  eprint = {2609.33757},
  archivePrefix = {arXiv},
  primaryClass = {eess.AS},
  url = {https://arxiv.org/abs/2609.33757}
}

When using SheetSage2 for transcription, covers, or score editing, please also cite the SheetSage2 paper:

@misc{jiang2026sheetsage2,
  title = {{SheetSage2}: Coherent Lead-Sheet Transcription with Synthetic Supervision},
  author = {Jiang, Junyan and Yuan, Ruibin and Pan, Jiahao and Xue, Wei and Guo, Yike and Xia, Gus and LeCun, Yann},
  year = {2026},
  eprint = {2610.05336},
  archivePrefix = {arXiv},
  primaryClass = {cs.SD},
  url = {https://arxiv.org/abs/2610.05336}
}

For the original YuE model, please cite:

@article{yuan2025yue,
  title = {{YuE}: Scaling Open Foundation Models for Long-Form Music Generation},
  author = {Yuan, Ruibin and Lin, Hanfeng and Guo, Shuyue and Zhang, Ge and Pan, Jiahao and Zang, Yongyi and Liu, Haohe and Liang, Yiming and Ma, Wenye and Du, Xingjian and Du, Xinrun and Ye, Zhen and Zheng, Tianyu and Jiang, Zhengxuan and Ma, Yinghao and Liu, Minghao and Tian, Zeyue and Zhou, Ziya and Xue, Liumeng and Qu, Xingwei and Li, Yizhi and Wu, Shangda and Shen, Tianhao and Ma, Ziyang and Zhan, Jun and Wang, Chunhui and Wang, Yatian and Chi, Xiaowei and Zhang, Xinyue and Yang, Zhenzhu and Wang, Xiangzhou and Liu, Shansong and Mei, Lingrui and Li, Peng and Wang, Junjie and Yu, Jianwei and Pang, Guojian and Li, Xu and Wang, Zihao and Zhou, Xiaohuan and Yu, Lijun and Benetos, Emmanouil and Chen, Yong and Lin, Chenghua and Chen, Xie and Xia, Gus and Zhang, Zhaoxiang and Zhang, Chao and Chen, Wenhu and Zhou, Xinyu and Qiu, Xipeng and Dannenberg, Roger and Liu, Jiaheng and Yang, Jian and Huang, Wenhao and Xue, Wei and Tan, Xu and Guo, Yike},
  journal = {arXiv preprint arXiv:2503.08638},
  year = {2025},
  eprint = {2503.08638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08638}
}

Weights: CC BY-NC 4.0. Third-party code licenses.

Downloads last month
477
GGUF
Model size
2B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for moonbox-dev/YuE2-3B-GGUF

Base model

m-a-p/YuE2-3B
Quantized
(32)
this model

Papers for moonbox-dev/YuE2-3B-GGUF