Text-to-Audio
TensorRT
moonbox
yue2
yue
music-generation
text-to-music
song-generation
lyrics-to-song
non-commercial
Instructions to use moonbox-dev/YuE2-3B-TensorRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use moonbox-dev/YuE2-3B-TensorRT with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Model card and the original license
Browse filesFiles changed (7)
- .gitattributes+2
- LICENSEAdded+429
- NOTICE.mdAdded+3
- README.mdAdded+558
- assets/architecture.pngAdded
- assets/figure1.pngAdded
- assets/logo.pngAdded
46 unmodified lines47484946 unmodified linesfp16/nar_3.engine filter=lfs diff=lfs merge=lfs -textfp16/nar_4.engine filter=lfs diff=lfs merge=lfs -textfp16/vae.engine filter=lfs diff=lfs merge=lfs -text46 unmodified lines474849505146 unmodified linesfp16/nar_3.engine filter=lfs diff=lfs merge=lfs -textfp16/nar_4.engine filter=lfs diff=lfs merge=lfs -textfp16/vae.engine filter=lfs diff=lfs merge=lfs -textassets/architecture.png filter=lfs diff=lfs merge=lfs -textassets/figure1.png filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429YuE2 model-weight license
The YuE2-3B, YuE2-Vae and YuE2-Vae-legacy checkpoint weights arelicensed under Creative Commons Attribution-NonCommercial 4.0 International(CC BY-NC 4.0): https://creativecommons.org/licenses/by-nc/4.0/
Scope: the YuE2 checkpoint weights in model.safetensors, or the correspondingmodels/<model-name>/model.safetensors files in the inference kit.For attribution, identify YuE2, the model name and its source repository:https://huggingface.co/m-a-p/YuE2-3Bhttps://huggingface.co/m-a-p/YuE2-Vaehttps://huggingface.co/m-a-p/YuE2-Vae-legacy
This weight license does not replace separately applicable licenses for code,text tokenization files, evaluation assets or other bundled material.Third-party source notices and their original license texts are preserved inTHIRD_PARTY_NOTICES.md and licenses/.
The official license text follows without modification.Source: https://creativecommons.org/licenses/by-nc/4.0/legalcode.txt
Attribution-NonCommercial 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm anddoes not provide legal services or legal advice. Distribution ofCreative Commons public licenses does not create a lawyer-client orother relationship. Creative Commons makes its licenses and relatedinformation available on an "as-is" basis. Creative Commons gives nowarranties regarding its licenses, any material licensed under theirterms and conditions, or any related information. Creative Commonsdisclaims all liability for damages resulting from their use to thefullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms andconditions that creators and other rights holders may use to shareoriginal works of authorship and other material subject to copyrightand certain other rights specified in the public license below. Thefollowing considerations are for informational purposes only, are notexhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public: wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution-NonCommercial 4.0 International PublicLicense
By exercising the Licensed Rights (defined below), You accept and agreeto be bound by the terms and conditions of this Creative CommonsAttribution-NonCommercial 4.0 International Public License ("PublicLicense"). To the extent this Public License may be interpreted as acontract, You are granted the Licensed Rights in consideration of Youracceptance of these terms and conditions, and the Licensor grants Yousuch rights in consideration of benefits the Licensor receives frommaking the Licensed Material available under these terms andconditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
i. NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
j. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
k. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
l. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
b. produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
b. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to thefollowing conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
a. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
b. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights thatapply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does notreplace Your obligations under this Public License where the LicensedRights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its publiclicenses. Notwithstanding, Creative Commons may elect to apply one ofits public licenses to material it publishes and in those instanceswill be considered the βLicensor.β The text of the Creative Commonspublic licenses is dedicated to the public domain under the CC0 PublicDomain Dedication. Except for the limited purpose of indicating thatmaterial is shared under a Creative Commons public license or asotherwise permitted by the Creative Commons policies published atcreativecommons.org/policies, Creative Commons does not authorize theuse of the trademark "Creative Commons" or any other trademark or logoof Creative Commons without its prior written consent including,without limitation, in connection with any unauthorized modificationsto any of its public licenses or any other arrangements,understandings, or agreements concerning use of licensed material. Forthe avoidance of doubt, this paragraph does not form part of thepublic licenses.
Creative Commons may be contacted at creativecommons.org.
123YuE2-3B and YuE2-Vae are released by m-a-p (Multimodal Art Projection) under CC BY-NC 4.0; see LICENSE and THIRD_PARTY_NOTICES.md.
Modified by Moonbox: the YuE2-3B weights (m-a-p/YuE2-3B, revision 8f24312f) were converted to MLX, split into the AR expert, the NAR expert and the token embedding / output head, and quantized (8bit, 6bit, 4bit: MLX affine quantization, group size 64); the decoder of m-a-p/YuE2-Vae (revision 152733a1) was converted to MLX with its weight normalisation folded in. mlx_model.py is Moonbox's port of the publisher's Apache-2.0 inference code. These files are not an official m-a-p release and are not endorsed by m-a-p. Non-commercial use only.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558---base_model: m-a-p/YuE2-3Bbase_model_relation: quantizedlicense: cc-by-nc-4.0pipeline_tag: text-to-audiolibrary_name: tensorrttags:- tensorrt- moonbox- yue2- yue- music-generation- text-to-music- song-generation- lyrics-to-song- non-commercial---
# YuE2-3B TensorRT
TensorRT engines of [YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B), made by Moonbox for NVIDIA RTX GPUs. Each precision is one folder holding theengine, `trt_runner.py` (a small numpy runner: TensorRT plus Polygraphy, no PyTorch) and a script that does the restof the pipeline. What the engine takes and returns is under *How to run*.
**Compatibility.** The engines are built *hardware compatible* (Ampere and newer: RTX 30, 40 and 50 series) and*version compatible* (any TensorRT 10.x from 10.13 on, through its lean runtime). That costs a little speed against anengine built for one GPU, but no rebuild is needed. Install the runtime with`pip install "tensorrt-cu12>=10.13,<11" "tensorrt-lean-cu12>=10.13,<11" polygraphy numpy`.
## Files
The last column is the benchmark (details under *How to run*).
| Precision | File | Size | sha256 | Benchmark ||---|---|---|---|---|| fp16 | [`fp16/LICENSE.txt`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/LICENSE.txt) | 20.3 kB | `060985741d20` | vs ONNX fp16: score KL 0.00001 / top-1 99.8 %; codes KL 0.00003 / top-1 99.3 %; audio from its codes 44.9 / 47.5 dB SNR (pass 26.3 / 33.0) || fp16 | [`fp16/THIRD_PARTY_NOTICES.md`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/THIRD_PARTY_NOTICES.md) | 0.8 kB | `14d3fd9f6fee` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_0.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_0.engine) | 800.9 MB | `ed2fafd5c520` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_1.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_1.engine) | 665.0 MB | `fe5364d0b1ed` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_2.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_2.engine) | 665.2 MB | `94d094c27ad5` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_3.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_3.engine) | 664.9 MB | `51df9d4773b8` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_4.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_4.engine) | 665.0 MB | `0a37f96055a3` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_5.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_5.engine) | 458.9 MB | `e79c11de804e` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_6.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_6.engine) | 800.9 MB | `84ac4e2a156d` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_7.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_7.engine) | 44.3 MB | `78744699634d` | (the same build: numbers in its first row) || fp16 | [`fp16/ar_split.json`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/ar_split.json) | 4.2 kB | `8751dad24dc1` | (the same build: numbers in its first row) || fp16 | [`fp16/device_chain.py`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/device_chain.py) | 8.3 kB | `e675d2e7e2d1` | (the same build: numbers in its first row) || fp16 | [`fp16/licenses/SnakeBeta-NVIDIA-MIT.txt`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/licenses/SnakeBeta-NVIDIA-MIT.txt) | 1.1 kB | `da9858d51604` | (the same build: numbers in its first row) || fp16 | [`fp16/licenses/stable-audio-tools-MIT.txt`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/licenses/stable-audio-tools-MIT.txt) | 1.1 kB | `a1fac33b7bcd` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_0.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_0.engine) | 698.6 MB | `fee3de79de23` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_1.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_1.engine) | 737.2 MB | `2dde1137935d` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_2.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_2.engine) | 687.5 MB | `e9ad79f29145` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_3.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_3.engine) | 737.2 MB | `5272a51489cf` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_4.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_4.engine) | 354.1 MB | `74ca548736a8` | (the same build: numbers in its first row) || fp16 | [`fp16/nar_split.json`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/nar_split.json) | 1.9 kB | `9540083794c5` | (the same build: numbers in its first row) || fp16 | [`fp16/pipeline.py`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/pipeline.py) | 16.4 kB | `736b0c3b8b89` | (the same build: numbers in its first row) || fp16 | [`fp16/pipeline_trt.py`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/pipeline_trt.py) | 5.7 kB | `d929bf06d92c` | (the same build: numbers in its first row) || fp16 | [`fp16/qwen.tiktoken`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/qwen.tiktoken) | 2.6 MB | `b2b1b8dfb5cc` | (the same build: numbers in its first row) || fp16 | [`fp16/trt_runner.py`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/trt_runner.py) | 4.4 kB | `cbc9abb1f59c` | (the same build: numbers in its first row) || fp16 | [`fp16/vae.engine`](https://huggingface.co/moonbox-dev/YuE2-3B-TensorRT/blob/main/fp16/vae.engine) | 335.0 MB | `649aea2f85c4` | (the same build: numbers in its first row) |
## How to run
YuE2-3B (M-A-P: text-to-song, style + lyrics -> a full song with vocals at 48 kHz stereo) as TensorRT engines builtfrom this model's fp16 ONNX graphs, plus `pipeline_trt.py`. The pipeline is the ONNX build's `pipeline.py` (a numpyruntime of the official `yue2_infer` 0.1.5 pipeline: the score, the codes, the NAR's 32-step midpoint ODE, the tiledVAE) with every graph run as engines. **Non-commercial use only:** YuE2-3B and YuE2-Vae are licensed CC BY-NC 4.0(`LICENSE.txt` in the folder; `THIRD_PARTY_NOTICES.md` and `licenses/` for the VAE's code).
```pythonimport syssys.path.insert(0, "fp16")from pipeline_trt import YuE2Trt, save_audiop = YuE2Trt("fp16")audio, info = p(style="Acoustic folk, warm male vocal, fingerpicked guitar", lyrics="[Verse]\nMorning light on the kitchen floor\n...\n[Chorus]\n...", seed=4242)save_audio("song.flac", audio) # 48 kHz stereo; info["abc"] is the generated score```
Or `python fp16/pipeline_trt.py "City Pop, upbeat" lyrics.txt song.flac --seed 0`. It needs numpy, tiktoken,TensorRT 10.13 (`tensorrt-cu12` or `tensorrt-lean-cu12`) and Polygraphy, plus soundfile for FLAC. No PyTorch and noONNX Runtime. The engines are version-compatible and built for Ampere or newer GPUs (RTX 30-series and up). They hold8.3 GB (AR 4.8, NAR 3.2, VAE 0.3); the towers are loaded one at a time, and the benchmark's process peaked at 6.7 GBof memory, GPU memory included. Everything the ONNX build's card says about the port (the prompt, the sampling rules, the bf16 ODE state,numpy's noise, no CFG) holds here.
**The engines.**- `ar_0..7.engine`: the AR tower (28 Qwen3-style layers, the token embedding, lm_head): `input_ids` [1, S], `past_key_values.{0..27}.key / .value` [1, 8, P, 128] (fp16) -> `logits` of the last position [1, 184704] (fp32) and `present.*`. The prompt is prefilled in chunks of 512.- `nar_0..4.engine`: one evaluation of the flow-matching velocity: `x_t` [T, 64], `t` [1], `past.{0..27}.key / .value` (the AR cache of the prompt, score and codes) -> `velocity` [T, 64].- `vae.engine`: the Oobleck decoder on `pipeline.py`'s tiles (512 latent frames with 16 more on each side).- `ar_split.json` / `nar_split.json`: the order of each tower's pieces and the tensors passed between them. Each tower is cut into pieces of at most 0.7 GB of weights (the embedding and lm_head are pieces of their own), so that each engine builds within the build machine's memory.
**Limits.** The AR's cache holds up to 6,144 positions: the prompt (style, lyrics and score) plus the codes. Asong's codes stop there, about 3 minutes of music after a typical prompt (the original allows up to 9,000 codes, 6minutes). A NAR chunk takes up to 5,120 frames.
**On the GPU.** The pipeline (`device_chain.py`) keeps the AR's KV cache on the GPU: each step reads one set ofbuffers and writes the longer cache into the other, so a step allocates nothing. For the NAR, the AR's engines arereleased and the NAR reads the AR's cache of the prompt and codes where it is. The activations between a tower'spieces never leave the GPU.
**Precisions.** `fp16/` is strongly typed: every tensor keeps the precision the ONNX graph gives it (the AR and NARfp16 with an fp32 residual stream and fp32 RMSNorms, the VAE fp32), with one change. The ONNX NAR's attention is ONNXRuntime's `com.microsoft` MultiHeadAttention, which TensorRT doesn't take. These engines are built from the same NARexported with plain attention (45.6 dB from the published graph in ONNX Runtime), its softmax computed in fp32 asthe fused kernel computes it. No int8: TensorRT's int8 needs calibrated activations, and the ONNX `int8/` build isweight-only `MatMulNBits`, which TensorRT doesn't take.
**Benchmark.** The ONNX build's two songs and rules, with the ONNX `fp16/` build in the original's place (theoriginal's runs aren't kept):- *nightcity*: the README demo's style and seed (12300) with its first verse and chorus. 839 score tokens, 1,720 codes, 69 s.- *folk*: our own English lyrics, seed 4242. 851 score tokens, 1,748 codes, 70 s.
The ONNX build generated both songs with recorded draws. Measures:- **Teacher forced:** the ONNX build's own score and code streams fed back. The KL divergence between its next-token distribution and the engines' (over the allowed tokens, its top 256), and how often the engines' top token is its top token.- **Audio:** the engines' NAR and VAE from the ONNX build's codes and noise, SNR against its audio.- **Pass mark** (set before the first run): KL <= 0.01 nats and top-1 >= 90 % per stage; audio at least the original's own noise floor - 1 dB. That floor is how far the original's audio moves when its ODE runs in fp32 instead of bf16 (27.3 / 34.0 dB).
| | score KL / top-1 | codes KL (p95) / top-1 | latents SNR | audio SNR (nightcity / folk) ||---|---|---|---|---|| pass mark | <= 0.01 / >= 90 % | <= 0.01 / >= 90 % | | >= 26.3 / 33.0 dB || TensorRT `fp16/` vs ONNX `fp16/` | 0.00001 / 99.8 % | 0.00003 (0.0003) / 99.3 % | 49.5 / 46.8 dB | 44.9 / 47.5 dB |
Replaying the ONNX build's draws, the engines regenerate the nightcity score token for token (839 tokens); the codespart ways after 15-16 tokens, where a draw lands close to a boundary, and stay plausible. The VAE alone matches theONNX build to 69 / 73 dB.
**Time.** The nightcity song (69 s of music) on an RTX 3080 Laptop GPU: the score in 19 s, the codes in 52 s, theNAR's ODE in 17 s, the VAE in 7 s: about 95 s in all, plus loading. The ONNX `fp16/` build takes about 2.5 minutes fora song that long (its card); its VAE is faster, 2 s.
## How these were made
From [YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B) at revision `8f24312f18`: each engine was built with TensorRT's builder from Moonbox's publishedONNX graph of the same model and precision. The network is *strongly typed*: every tensor keeps the precision theONNX graph gives it, so an fp16 engine computes what the fp16 ONNX build computes. Built on an RTX 3080 Laptop GPU,it was benchmarked against the original before upload, and 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: it is copied in thisrepository, and it governs your use of these files. The original model card follows unchanged.
---
# Original model card
<p align="center"> <img src="assets/logo.png" alt="YuE logo" width="144" /></p><h1 align="center">π€ YuE2-3B</h1><p align="center"><strong>Frontier music generation with editable scores</strong></p>
<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="https://arena.3-148-255-99.sslip.io:8080">π³οΈ Music Arena</a> Β· <a href="#quick-start">π Quick start</a> Β· <a href="#cover-an-existing-song">ποΈ Cover</a> Β· <a href="#export-a-plan-edit-it-and-generate">π€ Edit</a> Β· <a href="#speed-and-resources" title="Speed and resources">β‘ Speed</a> Β· <a href="#benchmarks">π Benchmarks</a> Β· <a href="https://arxiv.org/abs/2609.33757">π arXiv</a> Β· <a href="https://github.com/multimodal-art-projection/YuE/blob/main/docs/technical_report.pdf">PDF</a> Β· <a href="https://arxiv.org/abs/2610.05336">π SheetSage2 arXiv</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 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.
<a id="music-arena"></a>
> **π§ 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 β](https://arena.3-148-255-99.sslip.io:8080)** Β· 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.

*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](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).
- **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](https://map-yue2.github.io/#agentic-music-editing).- **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.

*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.*
<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).*
<a id="cover-song"></a>
### ποΈ Cover songs
Existing songs reimagined in a new style.
[Make your own cover β](#cover-an-existing-song)
**Auld Lang Syne Β· Jazz-funk cover Β· 3:10**
<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>
**ζη«ζ°ζι£ Β· Ballad cover Β· 4:45**
<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>
**Jingle Bells Β· Heavy metal cover Β· 1:09**
<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>
<a id="agentic-editing"></a>
### π€ Agentic editing
**[Explore the agentic editing demo β](https://map-yue2.github.io/#agentic-music-editing)**
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 β](#export-a-plan-edit-it-and-generate)
<a id="quick-start"></a>
## π Quick start
Linux Β· Python 3.10+ Β· 24GB NVIDIA GPU with BF16 support. Install the inference package:
```bashpython -m pip install huggingface-hub==0.36.2hf 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](#generate-a-song) Β· [Cover](#cover-an-existing-song) Β· [Edit & agentic edit](#export-a-plan-edit-it-and-generate)
Load the pipeline once for the examples below:
```pythonfrom pathlib import Pathfrom yue2 import YuE2Pipeline
pipe = YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda")```
<a id="generate-a-song"></a>
### πΆ Create
Turn a style prompt and lyrics into a complete song with vocals and accompaniment.
Use the [style and full lyrics from δ»ζδΈη ](examples/tonight-awake.json), the funk / nu-disco demo above.
```pythonimport jsonfrom 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](https://huggingface.co/m-a-p/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 |
<a id="cover-an-existing-song"></a>
### ποΈ 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](https://huggingface.co/m-a-p/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](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`.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:
```pythoncover = 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.
<a id="export-a-plan-edit-it-and-generate"></a>
### πΌ 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](https://map-yue2.github.io/#agentic-music-editing).
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:
```pythonplan = 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**:
```pythonedited_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")```
<details><summary>βοΈ CFG, individual stages, and decoder selection</summary>
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`.
</details>
<a id="speed-and-resources"></a>
## β‘ 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 |
<details><summary>π Measurement details</summary>
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.
</details>
<a id="benchmarks"></a>
## π Benchmarks
<a id="wildsongbench--full-song-generation"></a>
### π 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](https://huggingface.co/m-a-p/YuE2-Vae-legacy). Standard YuE2 selects from two candidates; best-of-8 selects from eight.*
<a id="shs100k--zero-shot-cover-generation"></a>
### π€ 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.*
<details><summary>π Evaluation protocols and metric definitions</summary>
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.
</details>
<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
Please cite the [YuE2 paper](https://arxiv.org/abs/2609.33757) when using YuE2-3B in your research:
```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}}```
When using SheetSage2 for transcription, covers, or score editing, please also cite the [SheetSage2 paper](https://arxiv.org/abs/2610.05336):
```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}}```
For the original YuE model, please cite:
```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)..gitattributes+2
LICENSEAdded+429
NOTICE.mdAdded+3
README.mdAdded+558
assets/architecture.pngAdded

Large File Pointer Details
- SHA256: 53345d556ec1762dc7071b76ab0d79518c8cdf52bbf48ad434c3c34926ff74a3
- Pointer size: 131 Bytes
- Size of remote file: 408 kB
assets/figure1.pngAdded

Large File Pointer Details
- SHA256: 0f7e859bfee94eb456a1c38650eb6474568721356349ef490ac4a7e8bc49c68f
- Pointer size: 131 Bytes
- Size of remote file: 172 kB
assets/logo.pngAdded
