audio-cpp commited on
Commit
da36da5
·
verified ·
1 Parent(s): 27e79e0

Add MiniMax Music3 GGUF package

Browse files
.gitattributes CHANGED
@@ -33,3 +33,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ condition_encoder.gguf filter=lfs diff=lfs merge=lfs -text
37
+ language_model_bf16.gguf filter=lfs diff=lfs merge=lfs -text
38
+ language_model_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
39
+ rvq_depth_decoder_bf16.gguf filter=lfs diff=lfs merge=lfs -text
40
+ rvq_depth_decoder_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
41
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
+ transformer_bf16.gguf filter=lfs diff=lfs merge=lfs -text
43
+ transformer_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
44
+ vocoder.gguf filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MiniMax-Music3 COMMUNITY LICENSE
2
+
3
+ Copyright (c) 2026 MiniMax
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this Software,
6
+ including the model weights, parameters, configuration files, inference code and associated
7
+ documentation (the “Software”), to deal in the Software, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or provide copies of the Software,
9
+ and to permit persons to whom the Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ 1. The above copyright notice and this permission notice shall be included in all copies or
13
+ substantial portions of the Software.
14
+
15
+ 2. Your use of the Software must comply with applicable laws and regulations (including
16
+ trade-compliance laws and regulations) and must comply with the Acceptable Use Policy in Exhibit A.
17
+ Especially, you must not violate any third party’s intellectual-property or other rights while using
18
+ the Software.
19
+
20
+ 3. Commercial Terms
21
+
22
+ 1. You shall prominently display “MiniMax-Music3” on the user interface of commercial product or
23
+ service that uses the Software.
24
+
25
+ 2. You shall obtain a separate, prior written authorization from MiniMax by contacting
26
+ api@minimax.io with the subject line “MiniMax-Music3 licensing - authorization request”, if the
27
+ aggregate yearly revenue generated from such products and services provided by you and/or any of
28
+ your affiliates exceeds 20 million US dollars (or equivalent in other currencies).
29
+
30
+ 4. If you provide or make available to any third party a product, service, or hosted service that
31
+ permits the generation of outputs using the Software, you must, before making that product or
32
+ service available and throughout its operation, implement, maintain, test, and periodically review
33
+ reasonable and proportionate technical and organizational safeguards designed to prevent and
34
+ mitigate access, uses, and outputs that violate this License, including uses or outputs that
35
+ infringe, misappropriate, or otherwise violate any third party’s intellectual-property or other
36
+ rights. You must not knowingly disable, materially weaken, or permit the circumvention of those
37
+ safeguards. You are responsible for implementing and enforcing these requirements with respect to
38
+ your products, services, systems, users, and downstream recipients.
39
+
40
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
41
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
43
+ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
44
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. YOU SHALL BE SOLELY
45
+ RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING,
46
+ DISPLAYING OR DISTRIBUTING ANY OF THE SOFTWARE OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED
47
+ WITH YOUR OR A THIRD PARTY’S USE OR DISTRIBUTION OF ANY OF THE SOFTWARE OR OUTPUTS AND YOUR EXERCISE
48
+ OF RIGHTS AND PERMISSIONS UNDER THIS LICENSE. YOU SHALL INDEMNIFY AND HOLD HARMLESS MINIMAX FROM AND
49
+ AGAINST ANY AND ALL LOSSES, LIABILITIES, DAMAGES, CLAIMS, COSTS, AND EXPENSES ARISING OUT OF OR
50
+ RELATING TO ANY OF YOUR BREACH OF THIS LICENSE.
51
+
52
+ Please note that MiniMax-Music3 was fine-tuned from Qwen3-8B (https://huggingface.co/Qwen/Qwen3-8B),
53
+ which is licensed under the Apache License 2.0
54
+ (https://huggingface.co/Qwen/Qwen3-8B/blob/main/LICENSE). DiT-2B was modified from the Stable Audio
55
+ code (https://github.com/Stability-AI/stable-audio-tools), which is licensed under the MIT License
56
+ (https://github.com/Stability-AI/stable-audio-tools/blob/main/LICENSE). The VAE was modified from
57
+ the DAC code (https://github.com/descriptinc/descript-audio-codec), which is licensed under the MIT
58
+ License (https://github.com/descriptinc/descript-audio-codec/blob/main/LICENSE).
59
+
60
+ Exhibit A — Acceptable Use Policy
61
+
62
+ MiniMax reserves the right to update this Acceptable Use Policy from time to time.
63
+
64
+ Last revised: August [6], 2026.
65
+
66
+ MiniMax is committed to promoting the safe and responsible use of its tools and features. You agree
67
+ not to use the Software and in any of the following ways:
68
+
69
+ 1. Use in any manner that violates any applicable national, federal, state, local, or international
70
+ law, regulation, or other legal requirement, or that infringes, misappropriates, or otherwise
71
+ violates any third party’s intellectual-property or other proprietary rights, including without
72
+ limitation, through unauthorized reproduction, distribution, public display, public performance, or
73
+ creation of derivative works;
74
+
75
+ 2. Use in any manner that may harm yourself or others;
76
+
77
+ 3. Use to generate, repurpose or distribute any content to harm yourself or others;
78
+
79
+ 4. Use to circumvent or bypass any safety guardrails or safeguards we have implemented;
80
+
81
+ 5. Use in any manner that exploits or harms, or intends to exploit or harm, minors;
82
+
83
+ 6. Use to generate or disseminate verifiably false information and/or content for the purpose of
84
+ harming others or influencing elections;
85
+
86
+ 7. Use to manufacture or facilitate false online engagement, including fake reviews and other means
87
+ of false online engagement;
88
+
89
+ 8. Use to intentionally defame, disparage, or otherwise harass others;
90
+
91
+ 9. Use to generate and/or disseminate malware (including ransomware) or any other content intended
92
+ to damage electronic systems;
93
+
94
+ 10. Use to generate or disseminate personally identifiable information for the purpose of harming
95
+ others;
96
+
97
+ 11. Use to generate or disseminate information (including images, code, posts, or articles) in or to
98
+ any public environment (including via bot tweets or similar means) without clearly and prominently
99
+ disclosing that such information and/or content is machine-generated;
100
+
101
+ 12. Use to impersonate another person without that person’s consent, authorization, or lawful right
102
+ to do so;
103
+
104
+ 13. Use to make high-risk automated decisions in critical domains that affect individual safety,
105
+ rights, or well-being (such as law enforcement, immigration, healthcare or medical services,
106
+ critical-infrastructure management, product-safety components, essential services, credit,
107
+ employment, housing, education, social scoring, or insurance);
108
+
109
+ 14. Use in any manner that violates or disregards the social, ethical, or moral standards of other
110
+ countries or regions;
111
+
112
+ 15. Use to carry out, assist, threaten, incite, plan, advocate for, or encourage violent extremism
113
+ or terrorism;
114
+
115
+ 16. Use for any purpose intended to discriminate against, or harm, individuals or groups based on
116
+ protected characteristics or categories, online or offline social behavior, or known or predicted
117
+ personality traits;
118
+
119
+ 17. Use to intentionally exploit the vulnerabilities of specific populations based on age, social,
120
+ physical, or psychological characteristics, so as to materially distort the behavior of a member of
121
+ that group in a manner that causes, or is likely to cause, physical or psychological harm to that
122
+ person or to others;
123
+
124
+ 18. Use for military purposes; and
125
+
126
+ 19. Use to engage in any unauthorized or unlicensed professional activity, including but not limited
127
+ to financial, legal, medical or healthcare, or other professional practice.
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: audio.cpp
3
+ pipeline_tag: text-to-audio
4
+ license: other
5
+ license_name: minimax-music3-community-license
6
+ base_model:
7
+ - MiniMaxAI/MiniMax-Music3
8
+ tags:
9
+ - audio.cpp
10
+ - gguf
11
+ - minimax-music3
12
+ ---
13
+
14
+ # MiniMax Music 3 GGUF
15
+
16
+ GGUF package for MiniMax Music 3 for audio.cpp.
17
+
18
+ Upstream model: https://huggingface.co/MiniMaxAI/MiniMax-Music3
19
+ Upstream license: https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/main/LICENSE
20
+
21
+ The audio.cpp implementation is being staged on the `preview/minimax-music-3`
22
+ branch while the runtime surface is iterated quickly.
23
+
24
+ ## Quick Start
25
+
26
+ ```bash
27
+ audiocpp_cli \
28
+ --task gen \
29
+ --family minimax_music3 \
30
+ --model MiniMax-Music3-GGUF \
31
+ --backend cuda \
32
+ --text "A bright pop rock song with clean drums and a clear male vocal." \
33
+ --request-option 'lyrics=[verse] City lights are shining low. I keep moving with the glow. [chorus] Turn it up and let it fly. Sing the melody tonight.' \
34
+ --request-option duration_sec=20 \
35
+ --request-option num_inference_steps=30 \
36
+ --out output.wav
37
+ ```
38
+
39
+ ## Components
40
+
41
+ Default audio.cpp component mix:
42
+
43
+ - `language_model_q4_k.gguf`
44
+ - `rvq_depth_decoder_bf16.gguf`
45
+ - `transformer_q4_k.gguf`
46
+ - `condition_encoder.gguf`
47
+ - `vocoder.gguf`
48
+
49
+ The BF16 and Q4_K component variants are included for measurement and quality/performance comparison.
50
+
51
+ Component GGUFs can be selected explicitly for experiments:
52
+
53
+ ```bash
54
+ --session-option minimax_music3.language_model_gguf=language_model_bf16.gguf
55
+ --session-option minimax_music3.rvq_depth_decoder_gguf=rvq_depth_decoder_q4_k.gguf
56
+ --session-option minimax_music3.flow_transformer_gguf=transformer_bf16.gguf
57
+ ```
58
+
59
+ ## License
60
+
61
+ This GGUF package follows the upstream MiniMax-Music3 COMMUNITY LICENSE. The
62
+ license text is included in `LICENSE`; review it before use, especially for
63
+ commercial deployment.
64
+
65
+ ## Preview Notes
66
+
67
+ - The current runtime uses model-local resource loading instead of treating the v1 spec as the runtime contract. This keeps component selection flexible while the package layout and option surface settle.
68
+ - The best quality/performance component combination is still being measured. The default favors Q4_K for the large language model and flow transformer, with BF16 kept for the RVQ depth decoder.
69
+ - Longer generations such as five-minute songs are supported as long-form runs, but they are currently tuned for completion and quality checks rather than realtime throughput.
70
+ - Memory usage is an active optimization target for larger durations and alternate component mixes.
condition_encoder.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f9414097b1f6ad154dae08ed69ce88fd0db6d7fd422f4d1a847216ca28ba1bf
3
+ size 100677184
config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MiniMaxMusic3ForConditionalGeneration"
4
+ ],
5
+ "model_type": "minimax_music3"
6
+ }
config/condition_encoder.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "MiniMaxMusic3ConditionEncoder",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "condition_hidden_dim": 4096,
5
+ "input_hop_length": 960,
6
+ "input_sampling_rate": 24000,
7
+ "num_condition_layers": 8,
8
+ "out_dim": 2048,
9
+ "output_hop_length": 512,
10
+ "output_sampling_rate": 44100
11
+ }
config/language_model.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": null,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 12288,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention"
52
+ ],
53
+ "max_position_embeddings": 10240,
54
+ "max_window_layers": 28,
55
+ "model_type": "qwen3",
56
+ "num_attention_heads": 32,
57
+ "num_hidden_layers": 36,
58
+ "num_key_value_heads": 8,
59
+ "pad_token_id": null,
60
+ "rms_norm_eps": 1e-06,
61
+ "rope_parameters": {
62
+ "rope_theta": 1000000,
63
+ "rope_type": "default"
64
+ },
65
+ "sliding_window": null,
66
+ "tie_word_embeddings": false,
67
+ "transformers_version": "5.13.0.dev0",
68
+ "use_cache": true,
69
+ "use_sliding_window": false,
70
+ "vocab_size": 200000
71
+ }
config/rvq_depth_decoder.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "MiniMaxMusic3RVQDepthDecoder",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "audio_vocab_size": 1024,
5
+ "hidden_size": 4096,
6
+ "intermediate_size": 6144,
7
+ "max_position_embeddings": 16,
8
+ "num_attention_heads": 16,
9
+ "num_codebooks": 8,
10
+ "num_layers": 4
11
+ }
config/transformer.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "MiniMaxMusic3Transformer1DModel",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "attention_head_dim": 64,
5
+ "condition_dim": 2048,
6
+ "ff_inner_dim": 8192,
7
+ "fourier_embedding_dim": 256,
8
+ "in_channels": 128,
9
+ "num_attention_heads": 32,
10
+ "num_layers": 36,
11
+ "rotary_dim": 32
12
+ }
config/vocoder.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "MiniMaxMusic3Vocoder",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "decoder_hidden_dim": 1536,
5
+ "decoder_input_dim": 1024,
6
+ "latent_channels": 128,
7
+ "sampling_rate": 44100,
8
+ "upsampling_ratios": [
9
+ 8,
10
+ 8,
11
+ 4,
12
+ 2
13
+ ]
14
+ }
language_model_bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76ccb207d9ec49a53558f242a084087f59242abfc7805db46e3e8b4454e1f237
3
+ size 17169011872
language_model_q4_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:019300ae45ae28b193b3deb2ec519c7ae8e255abe90a29b39e2a7044166e05ce
3
+ size 7184471360
rvq_depth_decoder_bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f7adfb54a9e156682555dc7ddc575c20a6f038c8d036e364881a3ea80400fd0
3
+ size 1292061152
rvq_depth_decoder_q4_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c5d41b27418d9c1046345f649cb61d7cde0e3bbda4af7f7cb142df2c70cbdd0
3
+ size 405752480
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1537fa9e59a537276ecbc2e12d0438edff635a1f4a4948e679774b5feb3e610
3
+ size 11423801
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "is_local": true,
9
+ "local_files_only": false,
10
+ "model_max_length": 131072,
11
+ "pad_token": "<|endoftext|>",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
transformer_bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f855f1f285fccf9fdcb0b88d0d3514cbed1d884dc5ea290d4745886888159f5
3
+ size 9727686016
transformer_q4_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ab8a79d251d05a128964bb0e104fdacbed7199dfe9e5b9e5e1e5b0605d2e5b2
3
+ size 1396397600
vocoder.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a768b596516678fc850da1aff36556b8bc6bafcb7b42bc7ba7cb46cb9927a42
3
+ size 216704192