Text-to-Audio
Safetensors
MLX
mlx-audio
minimax_music3
apple-silicon
music-generation
text-to-music
quantized
6bit
6-bit
Instructions to use mlx-community/MiniMax-Music3-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/MiniMax-Music3-6bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir MiniMax-Music3-6bit mlx-community/MiniMax-Music3-6bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload MiniMax Music 3 affine 6-bit MLX weights
Browse files- .gitattributes +1 -0
- LICENSE +127 -0
- README.md +100 -0
- config.json +63 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +0 -0
- scheduler/scheduler_config.json +18 -0
- tokenizer/chat_template.jinja +89 -0
- tokenizer/tokenizer.json +3 -0
- tokenizer/tokenizer_config.json +15 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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 |
+
tokenizer/tokenizer.json 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,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: mlx-audio
|
| 3 |
+
pipeline_tag: text-to-audio
|
| 4 |
+
base_model: MiniMaxAI/MiniMax-Music3
|
| 5 |
+
license: other
|
| 6 |
+
license_name: minimax-music3-community-license
|
| 7 |
+
license_link: https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/main/LICENSE
|
| 8 |
+
inference: false
|
| 9 |
+
tags:
|
| 10 |
+
- mlx
|
| 11 |
+
- mlx-audio
|
| 12 |
+
- apple-silicon
|
| 13 |
+
- music-generation
|
| 14 |
+
- text-to-music
|
| 15 |
+
- text-to-audio
|
| 16 |
+
- quantized
|
| 17 |
+
- 6bit
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# MiniMax Music 3 · MLX 6-bit
|
| 21 |
+
|
| 22 |
+
Native MLX affine 6-bit weights for
|
| 23 |
+
[`MiniMaxAI/MiniMax-Music3`](https://huggingface.co/MiniMaxAI/MiniMax-Music3),
|
| 24 |
+
converted for lyric-conditioned song generation on Apple Silicon with
|
| 25 |
+
[`mlx-audio`](https://github.com/Blaizzy/mlx-audio).
|
| 26 |
+
|
| 27 |
+
> Community conversion, not an official MiniMax release. All model credit goes
|
| 28 |
+
> to MiniMax. Review the original model card and license before use.
|
| 29 |
+
|
| 30 |
+
Other MLX variants:
|
| 31 |
+
[`BF16`](https://huggingface.co/mlx-community/MiniMax-Music3-bf16)
|
| 32 |
+
· [`8-bit`](https://huggingface.co/mlx-community/MiniMax-Music3-8bit)
|
| 33 |
+
· [`4-bit`](https://huggingface.co/mlx-community/MiniMax-Music3-4bit)
|
| 34 |
+
· [`MXFP8`](https://huggingface.co/mlx-community/MiniMax-Music3-mxfp8)
|
| 35 |
+
· [`MXFP4 (experimental)`](https://huggingface.co/mlx-community/MiniMax-Music3-mxfp4)
|
| 36 |
+
· [`NVFP4 (experimental)`](https://huggingface.co/mlx-community/MiniMax-Music3-nvfp4)
|
| 37 |
+
|
| 38 |
+
## Install
|
| 39 |
+
|
| 40 |
+
MiniMax Music 3 support is proposed in
|
| 41 |
+
[`Blaizzy/mlx-audio#888`](https://github.com/Blaizzy/mlx-audio/pull/888).
|
| 42 |
+
Until that PR is released, install the tested commit directly:
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
python -m pip install "mlx-audio @ git+https://github.com/pinglin/mlx-audio.git@c2fa486ddf98ea8268c227b6d624b2f9ba00dbab"
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Generate
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
python -m mlx_audio.music.generate \
|
| 52 |
+
--model mlx-community/MiniMax-Music3-6bit \
|
| 53 |
+
--caption "Warm acoustic pop, 96 BPM, intimate female vocal" \
|
| 54 |
+
--lyrics $'[verse]\nMorning light across the room\n[chorus]\nSing with me' \
|
| 55 |
+
--duration 30 \
|
| 56 |
+
--steps 30 \
|
| 57 |
+
--seed 7 \
|
| 58 |
+
--output song.wav
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from mlx_audio.music import load
|
| 63 |
+
|
| 64 |
+
model = load("mlx-community/MiniMax-Music3-6bit")
|
| 65 |
+
result = next(
|
| 66 |
+
model.generate(
|
| 67 |
+
text="Warm acoustic pop, 96 BPM, intimate female vocal",
|
| 68 |
+
lyrics="[verse]\nMorning light across the room\n[chorus]\nSing with me",
|
| 69 |
+
duration=30,
|
| 70 |
+
steps=30,
|
| 71 |
+
seed=7,
|
| 72 |
+
)
|
| 73 |
+
)
|
| 74 |
+
print(result.audio.shape, result.sample_rate) # stereo, 44100 Hz
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
Lyrics are required by the checkpoint contract. Use `[instrumental]` explicitly
|
| 78 |
+
for instrumental generation. Duration is a requested upper bound: the
|
| 79 |
+
autoregressive stage may emit its end token early. Style, tempo, instrument, and
|
| 80 |
+
vocal controls are probabilistic rather than strict.
|
| 81 |
+
|
| 82 |
+
## Quantization and verification
|
| 83 |
+
|
| 84 |
+
- Affine 6-bit weight quantization with group size 64.
|
| 85 |
+
- Large linears in the global language model, RVQ depth decoder, and flow
|
| 86 |
+
transformer are quantized. Embeddings, output heads, convolutions, condition
|
| 87 |
+
encoder, and vocoder remain dense for fidelity.
|
| 88 |
+
- The three weight shards total 11,683,414,161 bytes.
|
| 89 |
+
- Strict loading and real generation produced finite 44.1 kHz stereo audio.
|
| 90 |
+
- The mlx-audio regression suite passed 1,738 tests with 34 expected skips; the
|
| 91 |
+
focused music, converter, and registry suite passed 43 tests and 3 subtests.
|
| 92 |
+
|
| 93 |
+
Converted with `mlx-audio` 0.4.8 development commit `c2fa486` and MLX 0.31.2.
|
| 94 |
+
|
| 95 |
+
## License
|
| 96 |
+
|
| 97 |
+
The weights remain subject to the
|
| 98 |
+
[`MiniMax-Music3 Community License`](https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/main/LICENSE),
|
| 99 |
+
including its acceptable-use and commercial terms. The full license text is
|
| 100 |
+
included in this repository.
|
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MiniMaxMusic3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"audio_cfg_token_id": 151654,
|
| 6 |
+
"audio_code_offset": 151675,
|
| 7 |
+
"audio_end_token_id": 151670,
|
| 8 |
+
"audio_vocab_size": 1024,
|
| 9 |
+
"condition_out_dim": 2048,
|
| 10 |
+
"depth_intermediate_size": 6144,
|
| 11 |
+
"depth_max_position_embeddings": 16,
|
| 12 |
+
"depth_num_heads": 16,
|
| 13 |
+
"depth_num_layers": 4,
|
| 14 |
+
"dit_ff_inner_dim": 8192,
|
| 15 |
+
"dit_fourier_dim": 256,
|
| 16 |
+
"dit_head_dim": 64,
|
| 17 |
+
"dit_in_channels": 128,
|
| 18 |
+
"dit_num_heads": 32,
|
| 19 |
+
"dit_num_layers": 36,
|
| 20 |
+
"dit_rotary_dim": 32,
|
| 21 |
+
"extra": {},
|
| 22 |
+
"frame_rate": 25.0,
|
| 23 |
+
"head_dim": 128,
|
| 24 |
+
"hidden_size": 4096,
|
| 25 |
+
"input_hop_length": 960,
|
| 26 |
+
"input_sampling_rate": 24000,
|
| 27 |
+
"intermediate_size": 12288,
|
| 28 |
+
"max_position_embeddings": 10240,
|
| 29 |
+
"model_path": "",
|
| 30 |
+
"model_type": "minimax_music3",
|
| 31 |
+
"num_attention_heads": 32,
|
| 32 |
+
"num_codebooks": 8,
|
| 33 |
+
"num_condition_layers": 8,
|
| 34 |
+
"num_hidden_layers": 36,
|
| 35 |
+
"num_key_value_heads": 8,
|
| 36 |
+
"output_hop_length": 512,
|
| 37 |
+
"output_sampling_rate": 44100,
|
| 38 |
+
"quantization": {
|
| 39 |
+
"group_size": 64,
|
| 40 |
+
"bits": 6,
|
| 41 |
+
"mode": "affine"
|
| 42 |
+
},
|
| 43 |
+
"quantization_config": {
|
| 44 |
+
"group_size": 64,
|
| 45 |
+
"bits": 6,
|
| 46 |
+
"mode": "affine"
|
| 47 |
+
},
|
| 48 |
+
"rms_norm_eps": 1e-06,
|
| 49 |
+
"rope_theta": 1000000.0,
|
| 50 |
+
"sample_rate": 44100,
|
| 51 |
+
"semantic_vocab_size": 16384,
|
| 52 |
+
"tie_word_embeddings": false,
|
| 53 |
+
"torch_dtype": "bfloat16",
|
| 54 |
+
"vocab_size": 200000,
|
| 55 |
+
"vocoder_hidden_dim": 1536,
|
| 56 |
+
"vocoder_input_dim": 1024,
|
| 57 |
+
"vocoder_upsampling_ratios": [
|
| 58 |
+
8,
|
| 59 |
+
8,
|
| 60 |
+
4,
|
| 61 |
+
2
|
| 62 |
+
]
|
| 63 |
+
}
|
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca63cd232df770c53e9876bf907fbd8ac2e1ef7bc4a730a8bb9e4ec6bffdb025
|
| 3 |
+
size 5360262051
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebbb125d07eddd8474904b2ff5b069b237d25ee1373553ce41aba537fdf809bc
|
| 3 |
+
size 5354916312
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8ca83f74f2d7c92759d951bca69bdd415ec2b6da725671b66def15ad8fe3925
|
| 3 |
+
size 968235798
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "FlowMatchEulerDiscreteScheduler",
|
| 3 |
+
"_diffusers_version": "0.40.0.dev0",
|
| 4 |
+
"base_image_seq_len": 256,
|
| 5 |
+
"base_shift": 0.5,
|
| 6 |
+
"invert_sigmas": true,
|
| 7 |
+
"max_image_seq_len": 4096,
|
| 8 |
+
"max_shift": 1.15,
|
| 9 |
+
"num_train_timesteps": 1,
|
| 10 |
+
"shift": 1.0,
|
| 11 |
+
"shift_terminal": null,
|
| 12 |
+
"stochastic_sampling": false,
|
| 13 |
+
"time_shift_type": "exponential",
|
| 14 |
+
"use_beta_sigmas": false,
|
| 15 |
+
"use_dynamic_shifting": false,
|
| 16 |
+
"use_exponential_sigmas": false,
|
| 17 |
+
"use_karras_sigmas": false
|
| 18 |
+
}
|
tokenizer/chat_template.jinja
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0].role == 'system' %}
|
| 4 |
+
{{- messages[0].content + '\n\n' }}
|
| 5 |
+
{%- endif %}
|
| 6 |
+
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 7 |
+
{%- for tool in tools %}
|
| 8 |
+
{{- "\n" }}
|
| 9 |
+
{{- tool | tojson }}
|
| 10 |
+
{%- endfor %}
|
| 11 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 12 |
+
{%- else %}
|
| 13 |
+
{%- if messages[0].role == 'system' %}
|
| 14 |
+
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
|
| 15 |
+
{%- endif %}
|
| 16 |
+
{%- endif %}
|
| 17 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 18 |
+
{%- for message in messages[::-1] %}
|
| 19 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 20 |
+
{%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
|
| 21 |
+
{%- set ns.multi_step_tool = false %}
|
| 22 |
+
{%- set ns.last_query_index = index %}
|
| 23 |
+
{%- endif %}
|
| 24 |
+
{%- endfor %}
|
| 25 |
+
{%- for message in messages %}
|
| 26 |
+
{%- if message.content is string %}
|
| 27 |
+
{%- set content = message.content %}
|
| 28 |
+
{%- else %}
|
| 29 |
+
{%- set content = '' %}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
| 32 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 33 |
+
{%- elif message.role == "assistant" %}
|
| 34 |
+
{%- set reasoning_content = '' %}
|
| 35 |
+
{%- if message.reasoning_content is string %}
|
| 36 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 37 |
+
{%- else %}
|
| 38 |
+
{%- if '</think>' in content %}
|
| 39 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 40 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 41 |
+
{%- endif %}
|
| 42 |
+
{%- endif %}
|
| 43 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 44 |
+
{%- if loop.last or (not loop.last and reasoning_content) %}
|
| 45 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
|
| 46 |
+
{%- else %}
|
| 47 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 48 |
+
{%- endif %}
|
| 49 |
+
{%- else %}
|
| 50 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- if message.tool_calls %}
|
| 53 |
+
{%- for tool_call in message.tool_calls %}
|
| 54 |
+
{%- if (loop.first and content) or (not loop.first) %}
|
| 55 |
+
{{- '\n' }}
|
| 56 |
+
{%- endif %}
|
| 57 |
+
{%- if tool_call.function %}
|
| 58 |
+
{%- set tool_call = tool_call.function %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 61 |
+
{{- tool_call.name }}
|
| 62 |
+
{{- '", "arguments": ' }}
|
| 63 |
+
{%- if tool_call.arguments is string %}
|
| 64 |
+
{{- tool_call.arguments }}
|
| 65 |
+
{%- else %}
|
| 66 |
+
{{- tool_call.arguments | tojson }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{{- '}\n</tool_call>' }}
|
| 69 |
+
{%- endfor %}
|
| 70 |
+
{%- endif %}
|
| 71 |
+
{{- '<|im_end|>\n' }}
|
| 72 |
+
{%- elif message.role == "tool" %}
|
| 73 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 74 |
+
{{- '<|im_start|>user' }}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{{- '\n<tool_response>\n' }}
|
| 77 |
+
{{- content }}
|
| 78 |
+
{{- '\n</tool_response>' }}
|
| 79 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 80 |
+
{{- '<|im_end|>\n' }}
|
| 81 |
+
{%- endif %}
|
| 82 |
+
{%- endif %}
|
| 83 |
+
{%- endfor %}
|
| 84 |
+
{%- if add_generation_prompt %}
|
| 85 |
+
{{- '<|im_start|>assistant\n' }}
|
| 86 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 87 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{%- endif %}
|
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 |
+
}
|