Text-to-Audio
Transformers
Safetensors
yue2
text-generation
music
music-generation
text-to-music
lora
custom_code
Instructions to use OpenModel-Labs/OpenBeats-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenModel-Labs/OpenBeats-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="OpenModel-Labs/OpenBeats-1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("OpenModel-Labs/OpenBeats-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 7,703 Bytes
b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 b6a2b9d a324228 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | ---
license: cc-by-nc-4.0
base_model: m-a-p/YuE2-3B
base_model_relation: finetune
pipeline_tag: text-to-audio
library_name: transformers
tags:
- music
- music-generation
- text-to-music
- lora
- yue2
---
# OpenBeats-1
**OpenBeats-1** is a music generation model derived from [m-a-p/YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B). It takes lyrics and a style prompt and generates a full song with vocals and accompaniment, optionally guided by an editable ABC score.
> **Non-commercial use only.** Released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/), the same license as the base model.
## What's different from YuE2-3B
OpenBeats-1 is YuE2-3B with an **acoustic-branch LoRA merged into the weights**. The architecture, tokenization, symbolic planning (CoT) interface, and inference API are unchanged.
| | |
|---|---|
| **Base model** | [m-a-p/YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B) |
| **Modification** | Acoustic-branch LoRA, merged (no adapter needed at inference) |
The LoRA affects only the acoustic generation stage. Lyric and score planning and semantic token generation come from the base model.
## Intended use
- Generating original songs from lyrics and a style prompt
- Covers and arrangements using a supplied melody ABC score
- Editing and regenerating from a modified score
- Research and personal, non-commercial creative projects
## Limitations and out-of-scope use
- **No commercial use**, per the license.
- OpenBeats-1 has **not been independently benchmarked**. The WildSongBench and SHS100K results published for YuE2 do **not** apply to this model, and quality, lyric intelligibility, and style adherence may differ from the base model. TODO: add your own evaluation if available.
- Inherits the base model's limitations, including possible lyric errors, imperfect adherence to style prompts, and biases from its training data.
- Do not use it to imitate a specific real artist's voice or to present generated music as human-made where that would mislead.
- Do not use it to infringe the rights of others. You are responsible for the lyrics, scores, and prompts you supply.
## Quick start
Requirements: Linux, Python 3.10+, a 24GB NVIDIA GPU with BF16 support.
The inference package is distributed with the base model repo:
```bash
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
```
Load OpenBeats-1:
```python
from pathlib import Path
from yue2 import YuE2Pipeline
pipe = YuE2Pipeline.from_pretrained("YOUR_ORG/openbeats-1", device="cuda")
```
### Create
```python
song = pipe(
style="Indie pop, warm female vocal, acoustic guitar, soft drums",
lyrics=Path("lyrics.txt").read_text(encoding="utf-8"),
cot="full",
seed=1234,
)
song.save("song.flac")
song.save_artifacts("outputs/song") # ABC, tokens, latents, audio, settings
```
| 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 or edit with your own score
```python
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")
```
To obtain a plan before generating audio, use `pipe.plan(...)`, edit the resulting ABC, then pass it back via `abc=`. For covers, transcribe the source with [SheetSage2](https://huggingface.co/m-a-p/SheetSage2) and remove chord symbols when using `cot="melody"`.
### Decoder
By default the pipeline uses [YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae). To use the legacy decoder, pass `vae="m-a-p/YuE2-Vae-legacy"` to `from_pretrained`.
## Resources
The memory footprint matches YuE2-3B: a 24GB GPU and about 24GB of host RAM, with one song generated at a time. Speed figures reported for YuE2-3B (for example, about 71 seconds for a 3.6-minute song on an RTX 4090) are for the base model. TODO: confirm for OpenBeats-1.
## License
- **Weights:** [CC BY-NC 4.0](LICENSE). Non-commercial use only, with attribution.
- This model is a modified version of YuE2-3B by the YuE team (M-A-P). **Changes were made**: an acoustic-branch LoRA was merged into the weights.
- OpenBeats-1 is not affiliated with or endorsed by the YuE2 authors or M-A-P.
- Third-party code licenses: see the base repo's [THIRD_PARTY_NOTICES.md](https://huggingface.co/m-a-p/YuE2-3B/blob/main/THIRD_PARTY_NOTICES.md).
## Acknowledgements
OpenBeats-1 builds on the work of the YuE2 team. See the [YuE2-3B model card](https://huggingface.co/m-a-p/YuE2-3B), the [YuE2 GitHub repository](https://github.com/multimodal-art-projection/YuE), and the [demo page](https://map-yue2.github.io/).
## Citation
If you use OpenBeats-1, please cite the original YuE2 work it builds on:
```bibtex
@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}
}
```
If you use SheetSage2 for transcription or score editing, also cite:
```bibtex
@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}
}
```
and the original YuE paper:
```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}
}
``` |