Night 10.11.2026: m-a-p/YuE2-Vae, m-a-p/YuE2-Vae-legacy, Mothersuperior/YuE2-Vae-merge-0.666 (the decoders' sources), unchanged (CC BY-NC 4.0), at the Studio's own path; its lines in MANIFEST.tsv, SHA256SUMS, THIRD_PARTY_NOTICES.md and the card
Browse filesFiles changed (3)
- MANIFEST.tsv+1
- SHA256SUMS+1
- checkpoints/YuE2-Vae/README.mdAdded+186
380 unmodified lines381382383384385386380 unmodified linescheckpoints/YuE2-Vae-merge-0.666/modeling_vae.py 25265 b6578ff461e6be9fd079ca5ddf12893940f3b3338ff3435fceae89c466486f5a - Mothersuperior/YuE2-Vae-merge-0.666@b00bdfc0 CC BY-NC 4.0checkpoints/YuE2-Vae-merge-0.666/weights_manifest.json 177 0f36ca36202db74ff7d977c623fee3c6a18712b9c7d7b967b37633c95a020ae5 - Mothersuperior/YuE2-Vae-merge-0.666@b00bdfc0 CC BY-NC 4.0checkpoints/YuE2-Vae/LICENSE 20309 060985741d20e70613b4c189c7de106cabd3fb2109fbbfb6d705c9d619417dd0 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/THIRD_PARTY_NOTICES.md 793 14d3fd9f6fee86b4260b69b0979735b99ffec8c6b4db254567047a4215cd9af3 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/assets/architecture.png 407643 53345d556ec1762dc7071b76ab0d79518c8cdf52bbf48ad434c3c34926ff74a3 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/assets/figure1.pdf 31395 58d5f5ce6195e63561bc3fc051e233845581056cf2cebfbdee05bba7cd935cd6 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0380 unmodified lines381382383384385386387380 unmodified linescheckpoints/YuE2-Vae-merge-0.666/modeling_vae.py 25265 b6578ff461e6be9fd079ca5ddf12893940f3b3338ff3435fceae89c466486f5a - Mothersuperior/YuE2-Vae-merge-0.666@b00bdfc0 CC BY-NC 4.0checkpoints/YuE2-Vae-merge-0.666/weights_manifest.json 177 0f36ca36202db74ff7d977c623fee3c6a18712b9c7d7b967b37633c95a020ae5 - Mothersuperior/YuE2-Vae-merge-0.666@b00bdfc0 CC BY-NC 4.0checkpoints/YuE2-Vae/LICENSE 20309 060985741d20e70613b4c189c7de106cabd3fb2109fbbfb6d705c9d619417dd0 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/README.md 9361 f0f8b87c51534138e9b386e0c6ab3d85ad58295e437ef287eef556fe9c091f02 - m-a-p/YuE2-Vae (an earlier revision, as the Studio holds it) CC BY-NC 4.0checkpoints/YuE2-Vae/THIRD_PARTY_NOTICES.md 793 14d3fd9f6fee86b4260b69b0979735b99ffec8c6b4db254567047a4215cd9af3 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/assets/architecture.png 407643 53345d556ec1762dc7071b76ab0d79518c8cdf52bbf48ad434c3c34926ff74a3 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0checkpoints/YuE2-Vae/assets/figure1.pdf 31395 58d5f5ce6195e63561bc3fc051e233845581056cf2cebfbdee05bba7cd935cd6 - m-a-p/YuE2-Vae@152733a1 CC BY-NC 4.0
376 unmodified lines377378379380381382376 unmodified linesb6578ff461e6be9fd079ca5ddf12893940f3b3338ff3435fceae89c466486f5a checkpoints/YuE2-Vae-merge-0.666/modeling_vae.py0f36ca36202db74ff7d977c623fee3c6a18712b9c7d7b967b37633c95a020ae5 checkpoints/YuE2-Vae-merge-0.666/weights_manifest.json060985741d20e70613b4c189c7de106cabd3fb2109fbbfb6d705c9d619417dd0 checkpoints/YuE2-Vae/LICENSE14d3fd9f6fee86b4260b69b0979735b99ffec8c6b4db254567047a4215cd9af3 checkpoints/YuE2-Vae/THIRD_PARTY_NOTICES.md53345d556ec1762dc7071b76ab0d79518c8cdf52bbf48ad434c3c34926ff74a3 checkpoints/YuE2-Vae/assets/architecture.png58d5f5ce6195e63561bc3fc051e233845581056cf2cebfbdee05bba7cd935cd6 checkpoints/YuE2-Vae/assets/figure1.pdf376 unmodified lines377378379380381382383376 unmodified linesb6578ff461e6be9fd079ca5ddf12893940f3b3338ff3435fceae89c466486f5a checkpoints/YuE2-Vae-merge-0.666/modeling_vae.py0f36ca36202db74ff7d977c623fee3c6a18712b9c7d7b967b37633c95a020ae5 checkpoints/YuE2-Vae-merge-0.666/weights_manifest.json060985741d20e70613b4c189c7de106cabd3fb2109fbbfb6d705c9d619417dd0 checkpoints/YuE2-Vae/LICENSEf0f8b87c51534138e9b386e0c6ab3d85ad58295e437ef287eef556fe9c091f02 checkpoints/YuE2-Vae/README.md14d3fd9f6fee86b4260b69b0979735b99ffec8c6b4db254567047a4215cd9af3 checkpoints/YuE2-Vae/THIRD_PARTY_NOTICES.md53345d556ec1762dc7071b76ab0d79518c8cdf52bbf48ad434c3c34926ff74a3 checkpoints/YuE2-Vae/assets/architecture.png58d5f5ce6195e63561bc3fc051e233845581056cf2cebfbdee05bba7cd935cd6 checkpoints/YuE2-Vae/assets/figure1.pdf
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186---license: cc-by-nc-4.0library_name: transformerstags:- audio- autoencoder- yue2---<p align="center"> <img src="assets/logo.png" alt="YuE logo" width="144" /></p><h1 align="center">π€ YuE2-Vae</h1>
<p align="center"> <a href="https://github.com/multimodal-art-projection/YuE"><img alt="GitHub" src="https://img.shields.io/badge/GitHub-YuE-181717?logo=github&logoColor=white" height="20" /></a> <a href="https://discord.gg/ssAyWMnMzu"><img alt="Join Discord" src="https://img.shields.io/discord/842440537755353128?label=Discord&color=5865F2&logo=discord&logoColor=white" height="20" /></a></p><p align="center"> <a href="https://map-yue2.github.io/">π§ Demo</a> Β· <a href="#quick-start">π Quick start</a> Β· <a href="#speed-and-resources" title="Speed and resources">β‘ Speed</a> Β· <a href="https://huggingface.co/m-a-p/YuE2-3B#benchmarks">π Benchmarks</a> Β· <a href="#citation">π Citation</a></p><p align="center"> <a href="https://huggingface.co/m-a-p/YuE2-3B"><img alt="π€ YuE2-3B" src="https://img.shields.io/badge/YuE2--3B-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/m-a-p/YuE2-Vae"><img alt="π€ YuE2-Vae" src="https://img.shields.io/badge/YuE2--Vae-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/m-a-p/YuE2-Vae-legacy"><img alt="π€ YuE2-Vae-legacy" src="https://img.shields.io/badge/YuE2--Vae--legacy-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/m-a-p/MERT-v2-30s"><img alt="π€ MERT-v2-30s" src="https://img.shields.io/badge/MERT--v2--30s-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/m-a-p/MERT-v2-FullSong"><img alt="π€ MERT-v2-FullSong" src="https://img.shields.io/badge/MERT--v2--FullSong-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/datasets/m-a-p/WildSongBench"><img alt="π€ WildSongBench" src="https://img.shields.io/badge/WildSongBench-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a> <a href="https://huggingface.co/m-a-p/SheetSage2"><img alt="SheetSage2" src="https://img.shields.io/badge/SheetSage2-374151?logo=huggingface&logoColor=FFD21E" height="20" /></a></p>
**YuE2-Vae turns acoustic latents into 48 kHz stereo music.** It is the default decoder for song generation and listening, with full-song decoding, an audio encoder, and Hugging Face loading.
Use it with **[π€ YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B)** for full-song generation, or load it on its own to encode and decode audio. [π€ Alternative decoder: YuE2-Vae-legacy](https://huggingface.co/m-a-p/YuE2-Vae-legacy).
<a id="listen"></a>
## π§ Listen to YuE2
<a id="text-to-music"></a>
### πΆ Text-to-music
Original songs generated from lyrics and a style prompt.
**Cyber Metal Β· English Β· 5:00**
<audio controls preload="none" aria-label="Cyber Metal" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/cyber-metal.mp3"></audio>
**δ»ζδΈη Β· Mandarin funk / nu-disco Β· 3:24**
<audio controls preload="none" aria-label="δ»ζδΈη " src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/tonight-awake.mp3"></audio>
**Passion Β· English rock Β· 3:55**
<audio controls preload="none" aria-label="Passion" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/passion.mp3"></audio>
*All three songs use [π€ YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae).*

*Complete YuE2 system results on 192 WildSongBench prompts, using symbolic planning. Bo8 means best-of-8.*
September 12, 2026 comparison: 17 settings, including Suno v6 and Suno v6 Wild. [Vector PDF](assets/figure1.pdf) Β· [SVG](assets/figure1.svg) Β· [All nine metrics and protocols](https://huggingface.co/datasets/m-a-p/WildSongBench/blob/main/benchmark/results.md) Β· [Full-precision CSV](https://huggingface.co/datasets/m-a-p/WildSongBench/resolve/main/benchmark/benchmark-results.csv).

*The VAE turns YuE2's acoustic latents into stereo audio.*
<a id="quick-start"></a>
## π Quick start
For full-song generation, follow the [YuE2-3B quick start](https://huggingface.co/m-a-p/YuE2-3B#quick-start) and select `vae="m-a-p/YuE2-Vae"` in `YuE2Pipeline.from_pretrained(...)`.
<a id="decode-saved-acoustic-latents"></a>
### π Decode saved acoustic latents
Install the tested standalone dependencies:
```bashpython -m pip install torch==2.10.0 transformers==4.57.6 huggingface-hub==0.36.2 safetensors==0.7.0 numpy==2.2.6 soundfile==0.13.1```
Use `latent.npy` saved by `song.save_artifacts("outputs/song")`:
```pythonimport numpy as npimport soundfile as sfimport torchfrom transformers import AutoModel
# Tested FP32 CUDA settings; YuE2Pipeline sets these automatically.torch.backends.cudnn.deterministic = Truetorch.backends.cudnn.benchmark = Falsetorch.backends.cudnn.allow_tf32 = torch.backends.cuda.matmul.allow_tf32 = Falsetorch.set_float32_matmul_precision("highest")
repo = "m-a-p/YuE2-Vae"vae = AutoModel.from_pretrained( repo, trust_remote_code=True, decoder_only=True, device="cuda",)z = torch.from_numpy(np.load("outputs/song/latent.npy")) # [T, 64]audio = vae.decode_tiled(z.T.unsqueeze(0)) # [1, 2, samples], CPUsf.write("decoded.flac", audio[0].T.clamp(-1, 1).numpy(), 48000, subtype="PCM_24")```
<details><summary>βοΈ Encoding audio and decoding options</summary>
`decode_tiled` bounds memory with 1024-frame cores and 16-frame context. `vae.decode(z.T.unsqueeze(0))` offers full decoding; both preserve the natural output length `1920 Γ T β 64`. Keep the VAE in FP32.
**ποΈ Encode a short audio clip**
```pythonencoder = AutoModel.from_pretrained(repo, trust_remote_code=True, device="cpu")z = encoder.encode(audio[..., :48000]) # First second of the decoded audio```
Encoding accepts `[batch, 2, samples]` audio already at 48 kHz and returns the posterior mean by default. Set `sample=True, generator=...` for posterior sampling.
</details>
<a id="speed-and-resources"></a>
## β‘ Speed and resources
**About 3.6 seconds to decode a 3.6-minute song on an RTX 4090.** Each checkpoint is **530.5 MB**; decoder-only FP32 weights occupy **253.2 MiB**, before activations.
| GPU | Decoder | Warm samples | VAE stage / audio duration ||---|---|---:|---:|| RTX 4090 24GB | YuE2-Vae | 32 | 3.63 / 214.85 s || RTX 4090 24GB | YuE2-Vae-legacy | 32 | 3.47 / 214.85 s || H800 80GB | YuE2-Vae | 1 | 3.04 / 224.96 s |
<details><summary>π Measurement details</summary>
PyTorch 2.10, FP32, tiled decoding; timings include device transfers. 4090 values average 32 full-CoT songs; H800 is a one-song check. Full-pipeline 4090 peaks were 11.18 GiB with YuE2-Vae and 11.19 GiB with legacy; standalone decoder peak memory was not isolated.
</details>
**[Full-song speed and GPU requirements](https://huggingface.co/m-a-p/YuE2-3B#speed-and-resources)** Β· **[WildSongBench and SHS100K results](https://huggingface.co/m-a-p/YuE2-3B#benchmarks)**. System benchmark scores use YuE2-Vae-legacy; YuE2-Vae is the default listening decoder.
<details><summary>π Choosing a VAE</summary>
In our comparisons, [π€ YuE2-Vae-legacy](https://huggingface.co/m-a-p/YuE2-Vae-legacy) achieves higher musicality scores on benchmarks, while [π€ YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae) delivers better perceptual audio quality. We recommend YuE2-Vae by default; use YuE2-Vae-legacy when reproducing the paper's benchmark results.
</details>
<a id="citation"></a>
## π Citation
**Technical report coming soon.** For now, please cite [YuE](https://arxiv.org/abs/2503.08638) when using YuE2-Vae in your research.
```bibtex@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](LICENSE). [Third-party code licenses](THIRD_PARTY_NOTICES.md).MANIFEST.tsv+1
SHA256SUMS+1
checkpoints/YuE2-Vae/README.mdAdded+186