Bc-AI commited on
Commit
a324228
·
verified ·
1 Parent(s): b6a2b9d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -305
README.md CHANGED
@@ -1,146 +1,55 @@
1
  ---
2
  license: cc-by-nc-4.0
3
  base_model: m-a-p/YuE2-3B
 
 
 
 
 
 
 
 
 
4
  ---
5
- # Modified YuE2-3B
6
- Based on m-a-p/YuE2-3B. Modified: an acoustic-branch LoRA is merged into the weights. CC BY-NC 4.0, non-commercial use only. The original model card follows.
7
-
8
- <p align="center">
9
- <img src="assets/logo.png" alt="YuE logo" width="144" />
10
- </p>
11
- <h1 align="center">🤗 YuE2-3B</h1>
12
- <p align="center"><strong>Frontier music generation with editable scores</strong></p>
13
 
14
- <p align="center">
15
- <a href="https://github.com/multimodal-art-projection/YuE"><img alt="GitHub" src="https://img.shields.io/badge/GitHub-YuE-181717?logo=github&amp;logoColor=white" height="20" /></a>
16
- &nbsp;
17
- <a href="https://discord.gg/ssAyWMnMzu"><img alt="Join Discord" src="https://img.shields.io/discord/842440537755353128?label=Discord&amp;color=5865F2&amp;logo=discord&amp;logoColor=white" height="20" /></a>
18
- </p>
19
- <p align="center">
20
- <a href="https://map-yue2.github.io/">🎧&nbsp;Demo</a>
21
- ·
22
- <a href="https://arena.3-148-255-99.sslip.io:8080">🗳️&nbsp;Music&nbsp;Arena</a>
23
- ·
24
- <a href="#quick-start">🚀&nbsp;Quick&nbsp;start</a>
25
- ·
26
- <a href="#cover-an-existing-song">🎙️&nbsp;Cover</a>
27
- ·
28
- <a href="#export-a-plan-edit-it-and-generate">🤖&nbsp;Edit</a>
29
- ·
30
- <a href="#speed-and-resources" title="Speed and resources">⚡&nbsp;Speed</a>
31
- ·
32
- <a href="#benchmarks">📊&nbsp;Benchmarks</a>
33
- ·
34
- <a href="https://arxiv.org/abs/2609.33757">📄&nbsp;arXiv</a>
35
- ·
36
- <a href="https://github.com/multimodal-art-projection/YuE/blob/main/docs/technical_report.pdf">PDF</a>
37
- ·
38
- <a href="https://arxiv.org/abs/2610.05336">📄&nbsp;SheetSage2&nbsp;arXiv</a>
39
- ·
40
- <a href="#citation">📚&nbsp;Citation</a>
41
- </p>
42
- <p align="center">
43
- <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&amp;logoColor=FFD21E" height="20" /></a>
44
- &nbsp;
45
- <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&amp;logoColor=FFD21E" height="20" /></a>
46
- &nbsp;
47
- <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&amp;logoColor=FFD21E" height="20" /></a>
48
- &nbsp;
49
- <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&amp;logoColor=FFD21E" height="20" /></a>
50
- &nbsp;
51
- <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&amp;logoColor=FFD21E" height="20" /></a>
52
- &nbsp;
53
- <a href="https://huggingface.co/datasets/m-a-p/WildSongBench"><img alt="🤗 WildSongBench" src="https://img.shields.io/badge/WildSongBench-374151?logo=huggingface&amp;logoColor=FFD21E" height="20" /></a>
54
- &nbsp;
55
- <a href="https://huggingface.co/m-a-p/SheetSage2"><img alt="SheetSage2" src="https://img.shields.io/badge/SheetSage2-374151?logo=huggingface&amp;logoColor=FFD21E" height="20" /></a>
56
- </p>
57
 
58
- **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.
59
 
60
- <a id="music-arena"></a>
61
 
62
- > **🎧 YuE2 needs your ears**
63
- >
64
- > 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.
65
- >
66
- > **[Listen & vote →](https://arena.3-148-255-99.sslip.io:8080)** · No account needed.
67
 
68
- **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.
69
 
70
- ![YuE2 song quality and text alignment on WildSongBench](assets/figure1.png)
71
-
72
- *Frontier song quality and text alignment on 192 WildSongBench prompts. YuE2 uses symbolic planning; Bo8 means best-of-8.*
73
-
74
- 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).
75
-
76
- - **Compose and edit:** melody + chords, melody-only, or direct generation; bring your own ABC score.
77
- - **Edit with an agent:** turn musical feedback into score, style and lyric revisions, then let YuE2 render the next version. [Hear the editing process](https://map-yue2.github.io/#agentic-music-editing).
78
- - **Run locally:** 48 kHz stereo songs on a 24GB GPU, without quantization.
79
- - **Build on it:** Hugging Face loading, text guidance (CFG), and separate planning and synthesis APIs.
80
-
81
- ![YuE2 architecture](assets/architecture.png)
82
-
83
- *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.*
84
-
85
- <a id="listen"></a>
86
-
87
- ## 🎧 Listen to YuE2
88
-
89
- <a id="text-to-music"></a>
90
-
91
- ### 🎶 Text-to-music
92
-
93
- Original songs generated from lyrics and a style prompt.
94
-
95
- **Cyber Metal · English · 5:00**
96
-
97
- <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>
98
-
99
- **今晚不眠 · Mandarin funk / nu-disco · 3:24**
100
-
101
- <audio controls preload="none" aria-label="今晚不眠" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/tonight-awake.mp3"></audio>
102
-
103
- **Passion · English rock · 3:55**
104
-
105
- <audio controls preload="none" aria-label="Passion" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/passion.mp3"></audio>
106
-
107
- *All three songs use [🤗 YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae).*
108
-
109
- <a id="cover-song"></a>
110
-
111
- ### 🎙️ Cover songs
112
-
113
- Existing songs reimagined in a new style.
114
-
115
- [Make your own cover →](#cover-an-existing-song)
116
-
117
- **Auld Lang Syne · Jazz-funk cover · 3:10**
118
-
119
- <audio controls preload="none" aria-label="Auld Lang Syne — Jazz-funk cover" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/auld-lang-syne-jazz-funk-cover.mp3"></audio>
120
-
121
- **最炫民族风 · Ballad cover · 4:45**
122
-
123
- <audio controls preload="none" aria-label="最炫民族风 — Ballad cover" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/zuixuan-ballad-cover.mp3"></audio>
124
-
125
- **Jingle Bells · Heavy metal cover · 1:09**
126
 
127
- <audio controls preload="none" aria-label="Jingle Bells — Heavy metal cover" src="https://huggingface.co/m-a-p/YuE2-3B/resolve/main/assets/audio/jingle-bells-heavy-metal-cover.mp3"></audio>
128
 
129
- <a id="agentic-editing"></a>
130
 
131
- ### 🤖 Agentic editing
132
 
133
- **[Explore the agentic editing demo →](https://map-yue2.github.io/#agentic-music-editing)**
 
 
 
134
 
135
- 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.
136
 
137
- [Try editing with an agent →](#export-a-plan-edit-it-and-generate)
 
 
 
 
138
 
139
- <a id="quick-start"></a>
140
 
141
- ## 🚀 Quick start
142
 
143
- Linux · Python 3.10+ · 24GB NVIDIA GPU with BF16 support. Install the inference package:
144
 
145
  ```bash
146
  python -m pip install huggingface-hub==0.36.2
@@ -148,41 +57,28 @@ hf download m-a-p/YuE2-3B yue2_infer-0.1.5-py3-none-any.whl --local-dir .
148
  python -m pip install ./yue2_infer-0.1.5-py3-none-any.whl
149
  ```
150
 
151
- [Create](#generate-a-song) · [Cover](#cover-an-existing-song) · [Edit & agentic edit](#export-a-plan-edit-it-and-generate)
152
-
153
- Load the pipeline once for the examples below:
154
 
155
  ```python
156
  from pathlib import Path
157
  from yue2 import YuE2Pipeline
158
 
159
- pipe = YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda")
160
  ```
161
 
162
- <a id="generate-a-song"></a>
163
-
164
- ### 🎶 Create
165
-
166
- Turn a style prompt and lyrics into a complete song with vocals and accompaniment.
167
-
168
- Use the [style and full lyrics from 今晚不眠](examples/tonight-awake.json), the funk / nu-disco demo above.
169
 
170
  ```python
171
- import json
172
- from huggingface_hub import hf_hub_download
173
-
174
- repo = "m-a-p/YuE2-3B"
175
- prompt_path = hf_hub_download(repo, "examples/tonight-awake.json")
176
- demo = json.loads(Path(prompt_path).read_text(encoding="utf-8"))
177
- style, lyrics = demo["style"], demo["lyrics"]
178
-
179
- song = pipe(style=style, lyrics=lyrics, cot="full", seed=demo["seed"])
180
  song.save("song.flac")
181
- song.save_artifacts("outputs/song") # ABC, tokens, latents, audio and settings
182
  ```
183
 
184
- Defaults are ready to use: `cot="full"` and [🤗 YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae).
185
-
186
  | Option | What it does |
187
  |---|---|
188
  | `cot="full"` | Melody + chord planning (default) |
@@ -190,179 +86,43 @@ Defaults are ready to use: `cot="full"` and [🤗 YuE2-Vae](https://huggingface.
190
  | `cot="off"` | Generate without a symbolic plan |
191
  | `cfg_scale=1.2` | Experiment with stronger text guidance |
192
 
193
- <a id="cover-an-existing-song"></a>
194
-
195
- ### 🎙️ Cover
196
-
197
- Start from an existing recording and give it a new arrangement.
198
-
199
- **For covers, we recommend melody-only mode (`cot="melody"`).**
200
-
201
- 1. **Get the score:** transcribe the existing song with [🤗 SheetSage2](https://huggingface.co/m-a-p/SheetSage2) and save its melody ABC **without chord symbols** as `melody.abc`.
202
- 2. **Get the lyrics:** ask an agent to find them online, or transcribe the singing with [Qwen3-ASR](https://huggingface.co/Qwen/Qwen3-ASR-1.7B) or the [Gemini API](https://ai.google.dev/gemini-api/docs/audio). Check the words, organize them into sections matching the recording, and save them as `cover_lyrics.txt`.
203
- 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.
204
-
205
- Run the transcription tools in their own environments, then use the YuE2 pipeline:
206
 
207
  ```python
208
  cover = pipe(
209
  style="Jazz-funk, warm lead vocal, Rhodes piano, electric bass, tight drums",
210
  lyrics=Path("cover_lyrics.txt").read_text(encoding="utf-8"),
211
  abc=Path("melody.abc").read_text(encoding="utf-8"),
212
- cot="melody", seed=831001,
 
213
  )
214
  cover.save("cover.flac")
215
- cover.save_artifacts("outputs/cover")
216
- ```
217
-
218
- `cot="melody"` does not remove chord symbols automatically. Use `cot="full"` if you want to supply the original or edited harmony as well.
219
-
220
- <a id="export-a-plan-edit-it-and-generate"></a>
221
-
222
- ### 🎼 Edit & agentic edit
223
-
224
- 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](https://map-yue2.github.io/#agentic-music-editing).
225
-
226
- 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:
227
-
228
- ```python
229
- plan = pipe.plan(style=style, lyrics=lyrics, cot="full", seed=demo["seed"])
230
- plan.save("original_plan")
231
- # Keep the original and edit a copy as edited.abc.
232
- ```
233
-
234
- 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**:
235
-
236
- ```python
237
- edited_style = (
238
- "Jazz, expressive lead vocal, piano, tenor saxophone, upright bass, "
239
- "brushed drums, no guitar, spacious modern harmony"
240
- )
241
- song = pipe(style=edited_style, lyrics=lyrics, cot="full", seed=demo["seed"],
242
- abc=Path("edited.abc").read_text(encoding="utf-8"))
243
- song.save("edited.flac")
244
- song.save_artifacts("outputs/edited")
245
  ```
246
 
247
- <details>
248
- <summary>⚙️ CFG, individual stages, and decoder selection</summary>
249
-
250
- 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.
251
-
252
- 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.
253
-
254
- `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`.
255
-
256
- </details>
257
-
258
- <a id="speed-and-resources"></a>
259
-
260
- ## ⚡ Speed and resources
261
-
262
- **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.
263
-
264
- | GPU | CoT | Warm samples | LM tokens/s | Generation / audio | Peak VRAM |
265
- |---|---|---:|---:|---:|---:|
266
- | RTX 4090 24GB | full | 32 | 139.48 | 71.04 / 214.85 s | 11.18 GiB |
267
- | RTX 4090 24GB | melody | 32 | 139.32 | 68.68 / 214.67 s | 11.02 GiB |
268
- | RTX 4090 24GB | off | 32 | 121.07 | 57.91 / 196.88 s | 11.09 GiB |
269
- | H800 80GB | full | 1 | 164.38 | 54.74 / 224.96 s | 10.34 GiB |
270
-
271
- One song at a time. Use a **24GB GPU** and **24GB available host RAM**; maximum-context testing peaked at **14.08 GiB**.
272
-
273
- **H800 server · vLLM 0.19 · full CoT.** This separate serving runtime handles concurrent requests:
274
 
275
- | AR concurrency limit | LM system tokens/s | Songs/hour | Peak VRAM |
276
- |---:|---:|---:|---:|
277
- | 1 | 378.42 | 119.43 | 78.55 GiB |
278
- | 16 | 2418.63 | 340.38 | 78.66 GiB |
279
- | 32 | 3231.74 | 373.53 | 76.61 GiB |
280
 
281
- <details>
282
- <summary>🔎 Measurement details</summary>
283
 
284
- 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.
285
 
286
- 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.
287
 
288
- </details>
289
 
290
- <a id="benchmarks"></a>
 
 
 
291
 
292
- ## 📊 Benchmarks
293
 
294
- <a id="wildsongbench--full-song-generation"></a>
295
 
296
- ### 🌍 WildSongBench · full-song generation
297
 
298
- **🔓 Open models**
299
-
300
- | Model | Musicality ↑ | SongBench Avg ↑ | MuLan ↑ | AllMusicCaps ↑ | Q3O ↑ | PER ↓ |
301
- |---|---:|---:|---:|---:|---:|---:|
302
- | YuE 1 | 4.0847 | 4.9165 | 0.2623 | 0.2882 | 3.7301 | 36.38% |
303
- | SongBloom | 3.4493 | 4.2350 | 0.2697 | 0.1926 | 3.0287 | 19.19% |
304
- | LeVo 2 | 5.4590 | 6.3247 | 0.3542 | 0.2680 | 3.9458 | 26.12% |
305
- | ACE-Step 1.5 | 5.1588 | 6.0118 | 0.4372 | 0.3869 | 4.5809 | 7.46% |
306
- | HeartMuLa | 5.4963 | 6.2483 | 0.3823 | 0.2786 | 3.4907 | 10.71% |
307
- | DiffRhythm 2 | 4.4775 | 5.2428 | 0.3782 | 0.3255 | 4.0870 | 18.41% |
308
- | Muse | 5.1692 | 6.0349 | 0.3937 | 0.3466 | 4.4038 | 33.42% |
309
- | MiniMax Music 3 | 5.3482 | 6.2830 | 0.3928 | 0.3609 | 4.4362 | **6.27%** |
310
- | **YuE2** | 5.9075 | 6.7316 | **0.5068** | **0.4054** | 4.6819 | 8.44% |
311
- | **YuE2 (best-of-8)** | **6.2666** | **6.9632** | 0.5051 | 0.3980 | **4.7009** | 9.79% |
312
-
313
- **🔒 Proprietary models**
314
-
315
- | Model | Musicality ↑ | SongBench Avg ↑ | MuLan ↑ | AllMusicCaps ↑ | Q3O ↑ | PER ↓ |
316
- |---|---:|---:|---:|---:|---:|---:|
317
- | Suno v5 | 5.9918 | 6.8721 | **0.5428** | **0.4353** | 4.5907 | 8.10% |
318
- | Suno v4.5 | 5.8317 | 6.6995 | 0.5022 | 0.3873 | 4.4149 | **5.80%** |
319
- | Suno v5.5 | 5.8087 | 6.7150 | 0.5089 | 0.3917 | 4.5914 | 5.96% |
320
- | Suno v6 | 5.6558 | 6.5562 | 0.4916 | 0.4305 | 4.6258 | 7.58% |
321
- | Suno v6 Wild | 5.5644 | 6.4195 | 0.4999 | 0.4316 | 4.5898 | 7.45% |
322
- | MiniMax Music 2.6 | 5.4437 | 6.3222 | 0.4251 | 0.3670 | 4.5688 | 24.55% |
323
- | Mureka 9 | 6.0488 | 6.9377 | 0.4394 | 0.4102 | 4.6368 | 11.69% |
324
- | **YuE2** | 5.9075 | 6.7316 | 0.5068 | 0.4054 | 4.6819 | 8.44% |
325
- | **YuE2 (best-of-8)** | **6.2666** | **6.9632** | 0.5051 | 0.3980 | **4.7009** | 9.79% |
326
-
327
- *192 prompts. Both YuE2 settings use symbolic planning and [🤗 YuE2-Vae-legacy](https://huggingface.co/m-a-p/YuE2-Vae-legacy). Standard YuE2 selects from two candidates; best-of-8 selects from eight.*
328
-
329
- <a id="shs100k--zero-shot-cover-generation"></a>
330
-
331
- ### 🎤 SHS100K · zero-shot cover generation
332
-
333
- | Method | CLEWS mAP ↑ | CLEWS Hit@1 ↑ | VINet mAP ↑ | MuLan ↑ | Musicality ↑ |
334
- |---|---:|---:|---:|---:|---:|
335
- | SongEcho | 0.419 | 48.4% | 0.122 | 0.366 | 3.286 |
336
- | ACE-Step 1.5 | 0.024 | 2.4% | 0.006 | 0.166 | 3.689 |
337
- | **YuE2 (full score)** | **0.647** | **71.3%** | **0.288** | 0.382 | 5.104 |
338
- | YuE2 (without chords) | 0.598 | 67.3% | 0.179 | 0.417 | 5.490 |
339
- | YuE2 (without score) | 0.006 | 0.3% | 0.004 | **0.474** | **5.691** |
340
-
341
- *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.*
342
-
343
- <details>
344
- <summary>📐 Evaluation protocols and metric definitions</summary>
345
-
346
- 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.
347
-
348
- 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.
349
-
350
- 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.
351
-
352
- </details>
353
-
354
- <details>
355
- <summary>🔊 Choosing a VAE</summary>
356
-
357
- 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.
358
-
359
- </details>
360
-
361
- <a id="citation"></a>
362
-
363
- ## 📚 Citation
364
-
365
- Please cite the [YuE2 paper](https://arxiv.org/abs/2609.33757) when using YuE2-3B in your research:
366
 
367
  ```bibtex
368
  @article{yuan2026yue2,
@@ -377,7 +137,7 @@ Please cite the [YuE2 paper](https://arxiv.org/abs/2609.33757) when using YuE2-3
377
  }
378
  ```
379
 
380
- When using SheetSage2 for transcription, covers, or score editing, please also cite the [SheetSage2 paper](https://arxiv.org/abs/2610.05336):
381
 
382
  ```bibtex
383
  @misc{jiang2026sheetsage2,
@@ -391,7 +151,7 @@ When using SheetSage2 for transcription, covers, or score editing, please also c
391
  }
392
  ```
393
 
394
- For the original YuE model, please cite:
395
 
396
  ```bibtex
397
  @article{yuan2025yue,
@@ -403,6 +163,4 @@ For the original YuE model, please cite:
403
  archivePrefix = {arXiv},
404
  url = {https://arxiv.org/abs/2503.08638}
405
  }
406
- ```
407
-
408
- Weights: [CC BY-NC 4.0](LICENSE). [Third-party code licenses](THIRD_PARTY_NOTICES.md).
 
1
  ---
2
  license: cc-by-nc-4.0
3
  base_model: m-a-p/YuE2-3B
4
+ base_model_relation: finetune
5
+ pipeline_tag: text-to-audio
6
+ library_name: transformers
7
+ tags:
8
+ - music
9
+ - music-generation
10
+ - text-to-music
11
+ - lora
12
+ - yue2
13
  ---
 
 
 
 
 
 
 
 
14
 
15
+ # OpenBeats-1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
+ **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.
18
 
19
+ > **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.
20
 
21
+ ## What's different from YuE2-3B
 
 
 
 
22
 
23
+ 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.
24
 
25
+ | | |
26
+ |---|---|
27
+ | **Base model** | [m-a-p/YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B) |
28
+ | **Modification** | Acoustic-branch LoRA, merged (no adapter needed at inference) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
 
30
 
31
+ The LoRA affects only the acoustic generation stage. Lyric and score planning and semantic token generation come from the base model.
32
 
33
+ ## Intended use
34
 
35
+ - Generating original songs from lyrics and a style prompt
36
+ - Covers and arrangements using a supplied melody ABC score
37
+ - Editing and regenerating from a modified score
38
+ - Research and personal, non-commercial creative projects
39
 
40
+ ## Limitations and out-of-scope use
41
 
42
+ - **No commercial use**, per the license.
43
+ - 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.
44
+ - Inherits the base model's limitations, including possible lyric errors, imperfect adherence to style prompts, and biases from its training data.
45
+ - Do not use it to imitate a specific real artist's voice or to present generated music as human-made where that would mislead.
46
+ - Do not use it to infringe the rights of others. You are responsible for the lyrics, scores, and prompts you supply.
47
 
48
+ ## Quick start
49
 
50
+ Requirements: Linux, Python 3.10+, a 24GB NVIDIA GPU with BF16 support.
51
 
52
+ The inference package is distributed with the base model repo:
53
 
54
  ```bash
55
  python -m pip install huggingface-hub==0.36.2
 
57
  python -m pip install ./yue2_infer-0.1.5-py3-none-any.whl
58
  ```
59
 
60
+ Load OpenBeats-1:
 
 
61
 
62
  ```python
63
  from pathlib import Path
64
  from yue2 import YuE2Pipeline
65
 
66
+ pipe = YuE2Pipeline.from_pretrained("YOUR_ORG/openbeats-1", device="cuda")
67
  ```
68
 
69
+ ### Create
 
 
 
 
 
 
70
 
71
  ```python
72
+ song = pipe(
73
+ style="Indie pop, warm female vocal, acoustic guitar, soft drums",
74
+ lyrics=Path("lyrics.txt").read_text(encoding="utf-8"),
75
+ cot="full",
76
+ seed=1234,
77
+ )
 
 
 
78
  song.save("song.flac")
79
+ song.save_artifacts("outputs/song") # ABC, tokens, latents, audio, settings
80
  ```
81
 
 
 
82
  | Option | What it does |
83
  |---|---|
84
  | `cot="full"` | Melody + chord planning (default) |
 
86
  | `cot="off"` | Generate without a symbolic plan |
87
  | `cfg_scale=1.2` | Experiment with stronger text guidance |
88
 
89
+ ### Cover or edit with your own score
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  ```python
92
  cover = pipe(
93
  style="Jazz-funk, warm lead vocal, Rhodes piano, electric bass, tight drums",
94
  lyrics=Path("cover_lyrics.txt").read_text(encoding="utf-8"),
95
  abc=Path("melody.abc").read_text(encoding="utf-8"),
96
+ cot="melody",
97
+ seed=831001,
98
  )
99
  cover.save("cover.flac")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  ```
101
 
102
+ 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"`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
+ ### Decoder
 
 
 
 
105
 
106
+ 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`.
 
107
 
108
+ ## Resources
109
 
110
+ 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.
111
 
112
+ ## License
113
 
114
+ - **Weights:** [CC BY-NC 4.0](LICENSE). Non-commercial use only, with attribution.
115
+ - 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.
116
+ - OpenBeats-1 is not affiliated with or endorsed by the YuE2 authors or M-A-P.
117
+ - 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).
118
 
119
+ ## Acknowledgements
120
 
121
+ 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/).
122
 
123
+ ## Citation
124
 
125
+ If you use OpenBeats-1, please cite the original YuE2 work it builds on:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  ```bibtex
128
  @article{yuan2026yue2,
 
137
  }
138
  ```
139
 
140
+ If you use SheetSage2 for transcription or score editing, also cite:
141
 
142
  ```bibtex
143
  @misc{jiang2026sheetsage2,
 
151
  }
152
  ```
153
 
154
+ and the original YuE paper:
155
 
156
  ```bibtex
157
  @article{yuan2025yue,
 
163
  archivePrefix = {arXiv},
164
  url = {https://arxiv.org/abs/2503.08638}
165
  }
166
+ ```