Serveurperso HF Staff commited on
Commit
8d67791
·
verified ·
1 Parent(s): 8d2c618

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. LICENSE +429 -0
  2. README.md +140 -0
LICENSE ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ YuE2 model-weight license
2
+
3
+ The YuE2-3B, YuE2-Vae and YuE2-Vae-legacy checkpoint weights are
4
+ licensed under Creative Commons Attribution-NonCommercial 4.0 International
5
+ (CC BY-NC 4.0): https://creativecommons.org/licenses/by-nc/4.0/
6
+
7
+ Scope: the YuE2 checkpoint weights in model.safetensors, or the corresponding
8
+ models/<model-name>/model.safetensors files in the inference kit.
9
+ For attribution, identify YuE2, the model name and its source repository:
10
+ https://huggingface.co/m-a-p/YuE2-3B
11
+ https://huggingface.co/m-a-p/YuE2-Vae
12
+ https://huggingface.co/m-a-p/YuE2-Vae-legacy
13
+
14
+ This weight license does not replace separately applicable licenses for code,
15
+ text tokenization files, evaluation assets or other bundled material.
16
+ Third-party source notices and their original license texts are preserved in
17
+ THIRD_PARTY_NOTICES.md and licenses/.
18
+
19
+ The official license text follows without modification.
20
+ Source: https://creativecommons.org/licenses/by-nc/4.0/legalcode.txt
21
+
22
+ Attribution-NonCommercial 4.0 International
23
+
24
+ =======================================================================
25
+
26
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
27
+ does not provide legal services or legal advice. Distribution of
28
+ Creative Commons public licenses does not create a lawyer-client or
29
+ other relationship. Creative Commons makes its licenses and related
30
+ information available on an "as-is" basis. Creative Commons gives no
31
+ warranties regarding its licenses, any material licensed under their
32
+ terms and conditions, or any related information. Creative Commons
33
+ disclaims all liability for damages resulting from their use to the
34
+ fullest extent possible.
35
+
36
+ Using Creative Commons Public Licenses
37
+
38
+ Creative Commons public licenses provide a standard set of terms and
39
+ conditions that creators and other rights holders may use to share
40
+ original works of authorship and other material subject to copyright
41
+ and certain other rights specified in the public license below. The
42
+ following considerations are for informational purposes only, are not
43
+ exhaustive, and do not form part of our licenses.
44
+
45
+ Considerations for licensors: Our public licenses are
46
+ intended for use by those authorized to give the public
47
+ permission to use material in ways otherwise restricted by
48
+ copyright and certain other rights. Our licenses are
49
+ irrevocable. Licensors should read and understand the terms
50
+ and conditions of the license they choose before applying it.
51
+ Licensors should also secure all rights necessary before
52
+ applying our licenses so that the public can reuse the
53
+ material as expected. Licensors should clearly mark any
54
+ material not subject to the license. This includes other CC-
55
+ licensed material, or material used under an exception or
56
+ limitation to copyright. More considerations for licensors:
57
+ wiki.creativecommons.org/Considerations_for_licensors
58
+
59
+ Considerations for the public: By using one of our public
60
+ licenses, a licensor grants the public permission to use the
61
+ licensed material under specified terms and conditions. If
62
+ the licensor's permission is not necessary for any reason--for
63
+ example, because of any applicable exception or limitation to
64
+ copyright--then that use is not regulated by the license. Our
65
+ licenses grant only permissions under copyright and certain
66
+ other rights that a licensor has authority to grant. Use of
67
+ the licensed material may still be restricted for other
68
+ reasons, including because others have copyright or other
69
+ rights in the material. A licensor may make special requests,
70
+ such as asking that all changes be marked or described.
71
+ Although not required by our licenses, you are encouraged to
72
+ respect those requests where reasonable. More considerations
73
+ for the public:
74
+ wiki.creativecommons.org/Considerations_for_licensees
75
+
76
+ =======================================================================
77
+
78
+ Creative Commons Attribution-NonCommercial 4.0 International Public
79
+ License
80
+
81
+ By exercising the Licensed Rights (defined below), You accept and agree
82
+ to be bound by the terms and conditions of this Creative Commons
83
+ Attribution-NonCommercial 4.0 International Public License ("Public
84
+ License"). To the extent this Public License may be interpreted as a
85
+ contract, You are granted the Licensed Rights in consideration of Your
86
+ acceptance of these terms and conditions, and the Licensor grants You
87
+ such rights in consideration of benefits the Licensor receives from
88
+ making the Licensed Material available under these terms and
89
+ conditions.
90
+
91
+
92
+ Section 1 -- Definitions.
93
+
94
+ a. Adapted Material means material subject to Copyright and Similar
95
+ Rights that is derived from or based upon the Licensed Material
96
+ and in which the Licensed Material is translated, altered,
97
+ arranged, transformed, or otherwise modified in a manner requiring
98
+ permission under the Copyright and Similar Rights held by the
99
+ Licensor. For purposes of this Public License, where the Licensed
100
+ Material is a musical work, performance, or sound recording,
101
+ Adapted Material is always produced where the Licensed Material is
102
+ synched in timed relation with a moving image.
103
+
104
+ b. Adapter's License means the license You apply to Your Copyright
105
+ and Similar Rights in Your contributions to Adapted Material in
106
+ accordance with the terms and conditions of this Public License.
107
+
108
+ c. Copyright and Similar Rights means copyright and/or similar rights
109
+ closely related to copyright including, without limitation,
110
+ performance, broadcast, sound recording, and Sui Generis Database
111
+ Rights, without regard to how the rights are labeled or
112
+ categorized. For purposes of this Public License, the rights
113
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
114
+ Rights.
115
+ d. Effective Technological Measures means those measures that, in the
116
+ absence of proper authority, may not be circumvented under laws
117
+ fulfilling obligations under Article 11 of the WIPO Copyright
118
+ Treaty adopted on December 20, 1996, and/or similar international
119
+ agreements.
120
+
121
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
122
+ any other exception or limitation to Copyright and Similar Rights
123
+ that applies to Your use of the Licensed Material.
124
+
125
+ f. Licensed Material means the artistic or literary work, database,
126
+ or other material to which the Licensor applied this Public
127
+ License.
128
+
129
+ g. Licensed Rights means the rights granted to You subject to the
130
+ terms and conditions of this Public License, which are limited to
131
+ all Copyright and Similar Rights that apply to Your use of the
132
+ Licensed Material and that the Licensor has authority to license.
133
+
134
+ h. Licensor means the individual(s) or entity(ies) granting rights
135
+ under this Public License.
136
+
137
+ i. NonCommercial means not primarily intended for or directed towards
138
+ commercial advantage or monetary compensation. For purposes of
139
+ this Public License, the exchange of the Licensed Material for
140
+ other material subject to Copyright and Similar Rights by digital
141
+ file-sharing or similar means is NonCommercial provided there is
142
+ no payment of monetary compensation in connection with the
143
+ exchange.
144
+
145
+ j. Share means to provide material to the public by any means or
146
+ process that requires permission under the Licensed Rights, such
147
+ as reproduction, public display, public performance, distribution,
148
+ dissemination, communication, or importation, and to make material
149
+ available to the public including in ways that members of the
150
+ public may access the material from a place and at a time
151
+ individually chosen by them.
152
+
153
+ k. Sui Generis Database Rights means rights other than copyright
154
+ resulting from Directive 96/9/EC of the European Parliament and of
155
+ the Council of 11 March 1996 on the legal protection of databases,
156
+ as amended and/or succeeded, as well as other essentially
157
+ equivalent rights anywhere in the world.
158
+
159
+ l. You means the individual or entity exercising the Licensed Rights
160
+ under this Public License. Your has a corresponding meaning.
161
+
162
+
163
+ Section 2 -- Scope.
164
+
165
+ a. License grant.
166
+
167
+ 1. Subject to the terms and conditions of this Public License,
168
+ the Licensor hereby grants You a worldwide, royalty-free,
169
+ non-sublicensable, non-exclusive, irrevocable license to
170
+ exercise the Licensed Rights in the Licensed Material to:
171
+
172
+ a. reproduce and Share the Licensed Material, in whole or
173
+ in part, for NonCommercial purposes only; and
174
+
175
+ b. produce, reproduce, and Share Adapted Material for
176
+ NonCommercial purposes only.
177
+
178
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
179
+ Exceptions and Limitations apply to Your use, this Public
180
+ License does not apply, and You do not need to comply with
181
+ its terms and conditions.
182
+
183
+ 3. Term. The term of this Public License is specified in Section
184
+ 6(a).
185
+
186
+ 4. Media and formats; technical modifications allowed. The
187
+ Licensor authorizes You to exercise the Licensed Rights in
188
+ all media and formats whether now known or hereafter created,
189
+ and to make technical modifications necessary to do so. The
190
+ Licensor waives and/or agrees not to assert any right or
191
+ authority to forbid You from making technical modifications
192
+ necessary to exercise the Licensed Rights, including
193
+ technical modifications necessary to circumvent Effective
194
+ Technological Measures. For purposes of this Public License,
195
+ simply making modifications authorized by this Section 2(a)
196
+ (4) never produces Adapted Material.
197
+
198
+ 5. Downstream recipients.
199
+
200
+ a. Offer from the Licensor -- Licensed Material. Every
201
+ recipient of the Licensed Material automatically
202
+ receives an offer from the Licensor to exercise the
203
+ Licensed Rights under the terms and conditions of this
204
+ Public License.
205
+
206
+ b. No downstream restrictions. You may not offer or impose
207
+ any additional or different terms or conditions on, or
208
+ apply any Effective Technological Measures to, the
209
+ Licensed Material if doing so restricts exercise of the
210
+ Licensed Rights by any recipient of the Licensed
211
+ Material.
212
+
213
+ 6. No endorsement. Nothing in this Public License constitutes or
214
+ may be construed as permission to assert or imply that You
215
+ are, or that Your use of the Licensed Material is, connected
216
+ with, or sponsored, endorsed, or granted official status by,
217
+ the Licensor or others designated to receive attribution as
218
+ provided in Section 3(a)(1)(A)(i).
219
+
220
+ b. Other rights.
221
+
222
+ 1. Moral rights, such as the right of integrity, are not
223
+ licensed under this Public License, nor are publicity,
224
+ privacy, and/or other similar personality rights; however, to
225
+ the extent possible, the Licensor waives and/or agrees not to
226
+ assert any such rights held by the Licensor to the limited
227
+ extent necessary to allow You to exercise the Licensed
228
+ Rights, but not otherwise.
229
+
230
+ 2. Patent and trademark rights are not licensed under this
231
+ Public License.
232
+
233
+ 3. To the extent possible, the Licensor waives any right to
234
+ collect royalties from You for the exercise of the Licensed
235
+ Rights, whether directly or through a collecting society
236
+ under any voluntary or waivable statutory or compulsory
237
+ licensing scheme. In all other cases the Licensor expressly
238
+ reserves any right to collect such royalties, including when
239
+ the Licensed Material is used other than for NonCommercial
240
+ purposes.
241
+
242
+
243
+ Section 3 -- License Conditions.
244
+
245
+ Your exercise of the Licensed Rights is expressly made subject to the
246
+ following conditions.
247
+
248
+ a. Attribution.
249
+
250
+ 1. If You Share the Licensed Material (including in modified
251
+ form), You must:
252
+
253
+ a. retain the following if it is supplied by the Licensor
254
+ with the Licensed Material:
255
+
256
+ i. identification of the creator(s) of the Licensed
257
+ Material and any others designated to receive
258
+ attribution, in any reasonable manner requested by
259
+ the Licensor (including by pseudonym if
260
+ designated);
261
+
262
+ ii. a copyright notice;
263
+
264
+ iii. a notice that refers to this Public License;
265
+
266
+ iv. a notice that refers to the disclaimer of
267
+ warranties;
268
+
269
+ v. a URI or hyperlink to the Licensed Material to the
270
+ extent reasonably practicable;
271
+
272
+ b. indicate if You modified the Licensed Material and
273
+ retain an indication of any previous modifications; and
274
+
275
+ c. indicate the Licensed Material is licensed under this
276
+ Public License, and include the text of, or the URI or
277
+ hyperlink to, this Public License.
278
+
279
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
280
+ reasonable manner based on the medium, means, and context in
281
+ which You Share the Licensed Material. For example, it may be
282
+ reasonable to satisfy the conditions by providing a URI or
283
+ hyperlink to a resource that includes the required
284
+ information.
285
+
286
+ 3. If requested by the Licensor, You must remove any of the
287
+ information required by Section 3(a)(1)(A) to the extent
288
+ reasonably practicable.
289
+
290
+ 4. If You Share Adapted Material You produce, the Adapter's
291
+ License You apply must not prevent recipients of the Adapted
292
+ Material from complying with this Public License.
293
+
294
+
295
+ Section 4 -- Sui Generis Database Rights.
296
+
297
+ Where the Licensed Rights include Sui Generis Database Rights that
298
+ apply to Your use of the Licensed Material:
299
+
300
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
301
+ to extract, reuse, reproduce, and Share all or a substantial
302
+ portion of the contents of the database for NonCommercial purposes
303
+ only;
304
+
305
+ b. if You include all or a substantial portion of the database
306
+ contents in a database in which You have Sui Generis Database
307
+ Rights, then the database in which You have Sui Generis Database
308
+ Rights (but not its individual contents) is Adapted Material; and
309
+
310
+ c. You must comply with the conditions in Section 3(a) if You Share
311
+ all or a substantial portion of the contents of the database.
312
+
313
+ For the avoidance of doubt, this Section 4 supplements and does not
314
+ replace Your obligations under this Public License where the Licensed
315
+ Rights include other Copyright and Similar Rights.
316
+
317
+
318
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
319
+
320
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
321
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
322
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
323
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
324
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
325
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
326
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
327
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
328
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
329
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
330
+
331
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
332
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
333
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
334
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
335
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
336
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
337
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
338
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
339
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
340
+
341
+ c. The disclaimer of warranties and limitation of liability provided
342
+ above shall be interpreted in a manner that, to the extent
343
+ possible, most closely approximates an absolute disclaimer and
344
+ waiver of all liability.
345
+
346
+
347
+ Section 6 -- Term and Termination.
348
+
349
+ a. This Public License applies for the term of the Copyright and
350
+ Similar Rights licensed here. However, if You fail to comply with
351
+ this Public License, then Your rights under this Public License
352
+ terminate automatically.
353
+
354
+ b. Where Your right to use the Licensed Material has terminated under
355
+ Section 6(a), it reinstates:
356
+
357
+ 1. automatically as of the date the violation is cured, provided
358
+ it is cured within 30 days of Your discovery of the
359
+ violation; or
360
+
361
+ 2. upon express reinstatement by the Licensor.
362
+
363
+ For the avoidance of doubt, this Section 6(b) does not affect any
364
+ right the Licensor may have to seek remedies for Your violations
365
+ of this Public License.
366
+
367
+ c. For the avoidance of doubt, the Licensor may also offer the
368
+ Licensed Material under separate terms or conditions or stop
369
+ distributing the Licensed Material at any time; however, doing so
370
+ will not terminate this Public License.
371
+
372
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
373
+ License.
374
+
375
+
376
+ Section 7 -- Other Terms and Conditions.
377
+
378
+ a. The Licensor shall not be bound by any additional or different
379
+ terms or conditions communicated by You unless expressly agreed.
380
+
381
+ b. Any arrangements, understandings, or agreements regarding the
382
+ Licensed Material not stated herein are separate from and
383
+ independent of the terms and conditions of this Public License.
384
+
385
+
386
+ Section 8 -- Interpretation.
387
+
388
+ a. For the avoidance of doubt, this Public License does not, and
389
+ shall not be interpreted to, reduce, limit, restrict, or impose
390
+ conditions on any use of the Licensed Material that could lawfully
391
+ be made without permission under this Public License.
392
+
393
+ b. To the extent possible, if any provision of this Public License is
394
+ deemed unenforceable, it shall be automatically reformed to the
395
+ minimum extent necessary to make it enforceable. If the provision
396
+ cannot be reformed, it shall be severed from this Public License
397
+ without affecting the enforceability of the remaining terms and
398
+ conditions.
399
+
400
+ c. No term or condition of this Public License will be waived and no
401
+ failure to comply consented to unless expressly agreed to by the
402
+ Licensor.
403
+
404
+ d. Nothing in this Public License constitutes or may be interpreted
405
+ as a limitation upon, or waiver of, any privileges and immunities
406
+ that apply to the Licensor or You, including from the legal
407
+ processes of any jurisdiction or authority.
408
+
409
+ =======================================================================
410
+
411
+ Creative Commons is not a party to its public
412
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
413
+ its public licenses to material it publishes and in those instances
414
+ will be considered the “Licensor.” The text of the Creative Commons
415
+ public licenses is dedicated to the public domain under the CC0 Public
416
+ Domain Dedication. Except for the limited purpose of indicating that
417
+ material is shared under a Creative Commons public license or as
418
+ otherwise permitted by the Creative Commons policies published at
419
+ creativecommons.org/policies, Creative Commons does not authorize the
420
+ use of the trademark "Creative Commons" or any other trademark or logo
421
+ of Creative Commons without its prior written consent including,
422
+ without limitation, in connection with any unauthorized modifications
423
+ to any of its public licenses or any other arrangements,
424
+ understandings, or agreements concerning use of licensed material. For
425
+ the avoidance of doubt, this paragraph does not form part of the
426
+ public licenses.
427
+
428
+ Creative Commons may be contacted at creativecommons.org.
429
+
README.md ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ja
6
+ - ko
7
+ - fr
8
+ - es
9
+ tags:
10
+ - music-generation
11
+ - text-to-music
12
+ - ggml
13
+ - gguf
14
+ - cpp
15
+ - yue2
16
+ - flow-matching
17
+ - abc-notation
18
+ license: cc-by-nc-4.0
19
+ base_model:
20
+ - m-a-p/YuE2-3B
21
+ - m-a-p/YuE2-Vae
22
+ ---
23
+
24
+ # YuE2 GGUF
25
+
26
+ Pre-quantized GGUF models for [yue2.cpp](https://github.com/ServeurpersoCom/yue2.cpp), a portable C++17 implementation of YuE2 song generation using GGML.
27
+
28
+ Style tags and lyrics in, stereo 48kHz audio out, with the ABC score the model composed on the way. Runs on CPU, CUDA, Vulkan.
29
+
30
+ ## Quick start
31
+
32
+ ```bash
33
+ git clone --recurse-submodules https://github.com/ServeurpersoCom/yue2.cpp
34
+ cd yue2.cpp
35
+
36
+ pip install hf
37
+ ./models.sh # downloads the Q8_0 set (~4.4 GB)
38
+
39
+ mkdir build && cd build
40
+ cmake .. -DGGML_CUDA=ON
41
+ cmake --build . --config Release -j$(nproc)
42
+ cd ..
43
+
44
+ ./build/yue-server --host 0.0.0.0 --port 8087 \
45
+ --model models/YuE2-3B-Q8_0.gguf \
46
+ --vae models/YuE2-Vae-F32.gguf
47
+ ```
48
+
49
+ Open http://localhost:8087 in your browser. The embedded WebUI handles everything: write style tags and lyrics, generate, read the score the model wrote, play and download tracks.
50
+
51
+ <details>
52
+ <summary>CLI tools (without the server)</summary>
53
+
54
+ ```bash
55
+ # full pipeline: score, semantic codes, flow matching, VAE
56
+ ./build/yue-synth \
57
+ --model models/YuE2-3B-Q8_0.gguf \
58
+ --vae models/YuE2-Vae-F32.gguf \
59
+ --style style.txt \
60
+ --lyrics lyrics.txt \
61
+ --out song.mp3
62
+
63
+ # symbolic stage alone: the ABC score the model intends to play
64
+ ./build/yue-plan \
65
+ --model models/YuE2-3B-Q8_0.gguf \
66
+ --style style.txt \
67
+ --lyrics lyrics.txt \
68
+ --out score.abc
69
+ ```
70
+
71
+ </details>
72
+
73
+ ## Available models
74
+
75
+ ### Backbone (3.6B Mixture-of-Transformers)
76
+
77
+ | File | Quant | Size |
78
+ |------|-------|------|
79
+ | YuE2-3B-BF16.gguf | BF16 | 7.17 GB |
80
+ | YuE2-3B-Q8_0.gguf | Q8_0 | 3.81 GB |
81
+ | YuE2-3B-Q6_K.gguf | Q6_K | 2.94 GB |
82
+ | YuE2-3B-Q5_K_M.gguf | Q5_K_M | 2.62 GB |
83
+
84
+ One file holds two complete transformers sharing their attention: the autoregressive half writes the score then the semantic codes, the non-autoregressive half renders them by flow matching. Q8_0 is near lossless and is what the scripts load. No Q4: an audio code LM breaks below Q5.
85
+
86
+ ### VAE
87
+
88
+ | File | Quant | Size |
89
+ |------|-------|------|
90
+ | YuE2-Vae-F32.gguf | F32 | 530 MB |
91
+
92
+ Oobleck SnakeBeta decoder, 48 kHz stereo, 1920x upsample. Never quantized: its weights are the audio.
93
+
94
+ The converter keeps the native dtype of the source byte for byte, so no dtype exists in a GGUF that does not exist in the checkpoint.
95
+
96
+ ## Pipeline
97
+
98
+ ```
99
+ Style tags + lyrics
100
+ v
101
+ backbone, autoregressive path ABC score, then semantic codes at 25 Hz
102
+ v KV cache, read not rebuilt
103
+ backbone, flow matching path midpoint ODE on 64 channel latents
104
+ v
105
+ Oobleck VAE decoder 1920x upsample -> 48 kHz stereo
106
+ ```
107
+
108
+ The two halves share one KV cache: the flow matching side reads what the autoregressive side just wrote, so it never pays a prefill of its own. The ABC score is the white box of the pipeline: read it, edit a chord or a bar, hand it back, and the model realizes your version instead of writing a new one.
109
+
110
+ ## License
111
+
112
+ The model weights are licensed by their authors under [Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/) (CC BY-NC 4.0), and this repository redistributes them under the same terms. **Non-commercial use only.**
113
+
114
+ - Original work: YuE2 by [MAP](https://huggingface.co/m-a-p), from [m-a-p/YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B) and [m-a-p/YuE2-Vae](https://huggingface.co/m-a-p/YuE2-Vae).
115
+ - Modifications: the checkpoint tensors are converted to the GGUF container, keeping their native dtype, and quantized to Q8_0, Q6_K and Q5_K_M for the backbone. No weight is retrained, fine tuned or otherwise altered in substance.
116
+ - The upstream license text ships in this repository as `LICENSE`, and the weights are offered as-is, without warranties of any kind.
117
+
118
+ Nothing here is endorsed by or affiliated with the authors of YuE2.
119
+
120
+ ## Acknowledgements
121
+
122
+ Independent C++/GGML implementation based on [YuE2](https://github.com/multimodal-art-projection/YuE) by MAP. All original model weights are theirs, this is a native backend.
123
+
124
+ ```bibtex
125
+ @article{yuan2025yue,
126
+ title = {{YuE}: Scaling Open Foundation Models for Long-Form Music Generation},
127
+ 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 Ye, Zhen and Ma, Yinghao and Xue, Wei and Tan, Xu and Guo, Yike},
128
+ journal = {arXiv preprint arXiv:2503.08638},
129
+ year = {2025},
130
+ eprint = {2503.08638},
131
+ archivePrefix = {arXiv},
132
+ url = {https://arxiv.org/abs/2503.08638}
133
+ }
134
+ ```
135
+
136
+ ## Links
137
+
138
+ - [yue2.cpp](https://github.com/ServeurpersoCom/yue2.cpp) - source code
139
+ - [YuE](https://github.com/multimodal-art-projection/YuE) - original Python implementation
140
+ - [m-a-p on Hugging Face](https://huggingface.co/m-a-p) - original weights