Text-to-Speech
TensorRT
Safetensors
Qwen3-TTS
Chinese
English
qwen3-tts
streaming
token-level
custom-voice
x2streaming-tts
Instructions to use x-square-robot/X2Streaming-TTS-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use x-square-robot/X2Streaming-TTS-1.7B 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
Update model card, assets and license (2026-09-10)
Browse files- .gitattributes +2 -0
- LICENSE +202 -0
- MODEL_VERSION +1 -0
- NOTICE +23 -0
- README.md +236 -0
- SHA256SUMS +12 -0
- assets/native_cursor_use_cases.png +3 -0
- assets/x-square-logo.png +3 -0
- config.json +169 -0
- generation_config.json +12 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- preprocessor_config.json +6 -0
- speech_tokenizer/config.json +94 -0
- speech_tokenizer/configuration.json +1 -0
- speech_tokenizer/model.safetensors +3 -0
- speech_tokenizer/preprocessor_config.json +10 -0
- tokenizer_config.json +316 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
assets/native_cursor_use_cases.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/x-square-logo.png filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
MODEL_VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
cont7e3-f2b8ed5
|
NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
X2Streaming-TTS-1.7B
|
| 2 |
+
Copyright (c) 2026 XSquareRobot.
|
| 3 |
+
|
| 4 |
+
This model release is distributed under the Apache License, Version 2.0.
|
| 5 |
+
See LICENSE for the full terms.
|
| 6 |
+
|
| 7 |
+
Upstream components
|
| 8 |
+
|
| 9 |
+
1. Qwen3-TTS-12Hz-1.7B-Base, released by the Qwen team under Apache-2.0:
|
| 10 |
+
https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-Base
|
| 11 |
+
X Square Robot fine-tuned the base checkpoint for the robot_service_v1
|
| 12 |
+
CustomVoice speaker and supplies the configuration and generation defaults
|
| 13 |
+
described in README.md. The base model's authors retain their rights in
|
| 14 |
+
the upstream work.
|
| 15 |
+
|
| 16 |
+
2. Qwen3-TTS-Tokenizer-12Hz, released by the Qwen team under Apache-2.0:
|
| 17 |
+
https://huggingface.co/Qwen/Qwen3-TTS-Tokenizer-12Hz
|
| 18 |
+
The speech tokenizer in speech_tokenizer/ is included unchanged, as
|
| 19 |
+
identified by the checksums in SHA256SUMS.
|
| 20 |
+
|
| 21 |
+
The related X2Streaming-TTS method code has its own MIT license:
|
| 22 |
+
https://github.com/X-Square-Robot/X2Streaming-TTS
|
| 23 |
+
That separate code license does not replace the license for these weights.
|
README.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3-TTS-12Hz-1.7B-Base
|
| 4 |
+
pipeline_tag: text-to-speech
|
| 5 |
+
language:
|
| 6 |
+
- zh
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- qwen3-tts
|
| 10 |
+
- text-to-speech
|
| 11 |
+
- streaming
|
| 12 |
+
- token-level
|
| 13 |
+
- custom-voice
|
| 14 |
+
- tensorrt
|
| 15 |
+
- x2streaming-tts
|
| 16 |
+
- arxiv:2608.18661
|
| 17 |
+
- arxiv:2609.09677
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
<div align="center">
|
| 21 |
+
<img src="assets/x-square-logo.png" width="140" alt="X Square Robot beaver mascot holding the moon">
|
| 22 |
+
<h1>X2Streaming-TTS-1.7B</h1>
|
| 23 |
+
<p><strong>The deployed CustomVoice checkpoint behind X2Streaming-TTS</strong></p>
|
| 24 |
+
<p>
|
| 25 |
+
<a href="https://github.com/X-Square-Robot/X2Streaming-TTS"><img src="https://img.shields.io/badge/GitHub-X2Streaming--TTS-black" alt="X2Streaming-TTS"></a>
|
| 26 |
+
<a href="https://github.com/X-Square-Robot/Qwen3TTS-Streaming"><img src="https://img.shields.io/badge/Engine-Qwen3TTS--Streaming-6f42c1" alt="Qwen3TTS-Streaming"></a>
|
| 27 |
+
<a href="https://arxiv.org/abs/2608.18661"><img src="https://img.shields.io/badge/arXiv-2608.18661-b31b1b" alt="paper"></a>
|
| 28 |
+
<a href="https://huggingface.co/x-square-robot/X2-NativeCursor-Qwen3TTS-12Hz"><img src="https://img.shields.io/badge/Hugging%20Face-X2--NativeCursor-yellow" alt="X2-NativeCursor head"></a>
|
| 29 |
+
<a href="https://arxiv.org/abs/2609.09677"><img src="https://img.shields.io/badge/arXiv-2609.09677-b31b1b" alt="X2-NativeCursor paper"></a>
|
| 30 |
+
</p>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div align="center">
|
| 34 |
+
<img src="assets/native_cursor_use_cases.png" width="1000" alt="X2Streaming-TTS and X2-NativeCursor: streaming speech, continuous narration, synchronized highlighting, playback-aware interruption, and dialogue-history updates">
|
| 35 |
+
<p><em>Speak as text arrives, track reading progress, and use the playback clock to keep interruptions and dialogue history aligned with played audio.</em></p>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
X2Streaming-TTS-1.7B is a Qwen3-TTS 12 Hz CustomVoice model with one built-in
|
| 39 |
+
Mandarin voice, `robot_service_v1`, fine-tuned by X Square Robot from
|
| 40 |
+
[Qwen3-TTS-12Hz-1.7B-Base](https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-Base).
|
| 41 |
+
It is the checkpoint served by the
|
| 42 |
+
[Qwen3TTS-Streaming](https://github.com/X-Square-Robot/Qwen3TTS-Streaming) engine in
|
| 43 |
+
X Square Robot's spoken-dialogue stack and the checkpoint the
|
| 44 |
+
[X2Streaming-TTS](https://github.com/X-Square-Robot/X2Streaming-TTS) method and the
|
| 45 |
+
[X2-NativeCursor](https://huggingface.co/x-square-robot/X2-NativeCursor-Qwen3TTS-12Hz)
|
| 46 |
+
progress observer are released against.
|
| 47 |
+
|
| 48 |
+
The files are in the standard Qwen3-TTS Hugging Face layout, so the checkpoint loads
|
| 49 |
+
with the `qwen_tts` Python package for offline synthesis and exports unchanged through
|
| 50 |
+
the Qwen3TTS-Streaming pipeline for token-level streaming on TensorRT.
|
| 51 |
+
|
| 52 |
+
## Model details
|
| 53 |
+
|
| 54 |
+
| | |
|
| 55 |
+
| --- | --- |
|
| 56 |
+
| Architecture | `Qwen3TTSForConditionalGeneration`, 1.7B Talker + Code Predictor, 12 Hz multi-codebook speech tokenizer, Code2Wav decoder |
|
| 57 |
+
| Base model | Qwen/Qwen3-TTS-12Hz-1.7B-Base |
|
| 58 |
+
| Model type | `custom_voice` (built-in speaker table) |
|
| 59 |
+
| Speaker | `robot_service_v1` (speaker id 3000), a Mandarin service-assistant voice |
|
| 60 |
+
| Languages | Mandarin Chinese (primary), English (secondary) |
|
| 61 |
+
| Output | 24 kHz mono waveform |
|
| 62 |
+
| Precision | bfloat16 weights |
|
| 63 |
+
| Release version | `cont7e3-f2b8ed5` (`MODEL_VERSION` file; the engine reports it in its version diagnostics) |
|
| 64 |
+
| License | Apache-2.0 |
|
| 65 |
+
|
| 66 |
+
## Files
|
| 67 |
+
|
| 68 |
+
| File | Size | SHA-256 |
|
| 69 |
+
| --- | --: | --- |
|
| 70 |
+
| `model.safetensors` | 3.83 GB | `666b32d4b73e861d39aad1495d95b6fa5dacad186c42d00ff39d52297cf67966` |
|
| 71 |
+
| `config.json` | 4.5 KB | `c9bb0eedce066142902c7c219585189acb559d66cca956f08ca8731581a437c3` |
|
| 72 |
+
| `generation_config.json` | 245 B | `f1b90b4513f3b34c62851049e2492d7b4c5940daf1276f89c82b8ef04127f3aa` |
|
| 73 |
+
| `preprocessor_config.json` | 127 B | `efdde1022ea9d76928bf7a9cd53139138f5ba2e466e837f08f6105ab1af1c119` |
|
| 74 |
+
| `tokenizer_config.json` | 7.3 KB | `dc3c31c3bdaedd5016382bb3cbe07323026775ad51f5a4fb564505992ae4a670` |
|
| 75 |
+
| `vocab.json` | 2.78 MB | `ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910` |
|
| 76 |
+
| `merges.txt` | 1.67 MB | `599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3` |
|
| 77 |
+
| `MODEL_VERSION` | 15 B | `46a822304a74dcb49ce29ed087590c042ea59d57737882394c7d456c3649ef14` |
|
| 78 |
+
| `speech_tokenizer/model.safetensors` | 0.68 GB | `836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258` |
|
| 79 |
+
| `speech_tokenizer/config.json` | 2.3 KB | `ee65bb901c876664ab8707c487157aa1a6ee57c65969b28fb5ec9dc211e68167` |
|
| 80 |
+
| `speech_tokenizer/configuration.json` | 76 B | `6bc26d64eb5024b4d1dab5a52371958b429256d6c9d59787f1f5294a54e0cebd` |
|
| 81 |
+
| `speech_tokenizer/preprocessor_config.json` | 234 B | `fcb3805e597e786d4067706e602f6688524640f8d3396790e2e09b5942fcbdfb` |
|
| 82 |
+
|
| 83 |
+
`SHA256SUMS` in the repository lists the same digests in `sha256sum` format.
|
| 84 |
+
|
| 85 |
+
## Quick start
|
| 86 |
+
|
| 87 |
+
### Download
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
pip install -U "huggingface_hub[cli]"
|
| 91 |
+
huggingface-cli download x-square-robot/X2Streaming-TTS-1.7B \
|
| 92 |
+
--local-dir ./weights/X2Streaming-TTS-1.7B
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
### Offline synthesis with `qwen_tts`
|
| 96 |
+
|
| 97 |
+
Install the official package from [QwenLM/Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS),
|
| 98 |
+
then call `generate_custom_voice` with the built-in speaker:
|
| 99 |
+
|
| 100 |
+
```python
|
| 101 |
+
import torch
|
| 102 |
+
import soundfile as sf
|
| 103 |
+
from qwen_tts import Qwen3TTSModel
|
| 104 |
+
|
| 105 |
+
model = Qwen3TTSModel.from_pretrained(
|
| 106 |
+
"./weights/X2Streaming-TTS-1.7B",
|
| 107 |
+
device_map="cuda:0",
|
| 108 |
+
dtype=torch.bfloat16,
|
| 109 |
+
)
|
| 110 |
+
print(model.get_supported_speakers()) # ['robot_service_v1']
|
| 111 |
+
|
| 112 |
+
wavs, sr = model.generate_custom_voice(
|
| 113 |
+
text="您好,我是服务助手,今天的室外温度是二十三摄氏度。",
|
| 114 |
+
language="Chinese",
|
| 115 |
+
speaker="robot_service_v1",
|
| 116 |
+
)
|
| 117 |
+
sf.write("output.wav", wavs[0], sr)
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
`generation_config.json` carries the sampling defaults used in production:
|
| 121 |
+
`temperature 0.9`, `top_k 50`, `top_p 1.0`, `repetition_penalty 1.05`.
|
| 122 |
+
|
| 123 |
+
### Token-level streaming with Qwen3TTS-Streaming
|
| 124 |
+
|
| 125 |
+
The engine's `autorun` pipeline exports the checkpoint to ONNX, builds the TensorRT
|
| 126 |
+
engines and starts the service. The `custom-1.7b` variant reads its weights from
|
| 127 |
+
`workspace/models/Qwen3-TTS-12Hz-1.7B-CustomVoice`, so place (or symlink) the
|
| 128 |
+
downloaded directory there and skip the official download:
|
| 129 |
+
|
| 130 |
+
```bash
|
| 131 |
+
git clone --recursive https://github.com/X-Square-Robot/Qwen3TTS-Streaming.git
|
| 132 |
+
cd Qwen3TTS-Streaming
|
| 133 |
+
mkdir -p workspace/models
|
| 134 |
+
ln -s /path/to/weights/X2Streaming-TTS-1.7B workspace/models/Qwen3-TTS-12Hz-1.7B-CustomVoice
|
| 135 |
+
SKIP_MODELS=1 bash scripts/bash/autorun.sh all -m custom-1.7b --model-release-version cont7e3-f2b8ed5
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
Once the service is up, `GET /v1/capabilities` lists the exported speaker and the
|
| 139 |
+
supported tasks; the Python and browser SDKs, the native WebSocket protocol and the
|
| 140 |
+
OpenAI Realtime-compatible gateway are documented in the engine's
|
| 141 |
+
[user guide](https://github.com/X-Square-Robot/Qwen3TTS-Streaming/blob/main/docs/user/README.md)
|
| 142 |
+
and [deployment guide](https://github.com/X-Square-Robot/Qwen3TTS-Streaming/blob/main/docs/user/deployment.md).
|
| 143 |
+
|
| 144 |
+
### With the X2Streaming-TTS method
|
| 145 |
+
|
| 146 |
+
[X2Streaming-TTS](https://github.com/X-Square-Robot/X2Streaming-TTS) adds causal
|
| 147 |
+
commitment and causal speech-state inheritance on top of the engine through two hook
|
| 148 |
+
patches. Its README walks through applying the patches and running
|
| 149 |
+
`scripts/run_checkpoint_e2e.py` against this checkpoint.
|
| 150 |
+
|
| 151 |
+
### With the X2-NativeCursor progress observer
|
| 152 |
+
|
| 153 |
+
[X2-NativeCursor-Qwen3TTS-12Hz](https://huggingface.co/x-square-robot/X2-NativeCursor-Qwen3TTS-12Hz)
|
| 154 |
+
is an 8.2 MB observer head that reads this model's codebook-0 tokens inside the engine
|
| 155 |
+
and publishes a reading cursor into the source text. Its model card explains how to
|
| 156 |
+
enable it (`text_progress.estimator: native`). The [X2-NativeCursor paper](https://arxiv.org/abs/2609.09677)
|
| 157 |
+
describes the observer and its evaluation.
|
| 158 |
+
|
| 159 |
+
## Training summary
|
| 160 |
+
|
| 161 |
+
The voice was obtained by fine-tuning Qwen3-TTS-12Hz-1.7B-Base in two stages on an
|
| 162 |
+
internal synthetic Mandarin corpus for a single service-assistant speaker:
|
| 163 |
+
|
| 164 |
+
| Stage | Data | Epochs | Learning rate | Batch | Precision |
|
| 165 |
+
| --- | --- | --: | --: | --: | --- |
|
| 166 |
+
| 1 | 493 sentence-level utterances from an internal synthetic Mandarin corpus | 8 | 2e-6 | 8 | bf16 |
|
| 167 |
+
| 2 (this release) | the same 493 utterances, continued from stage 1 | 4 | 4e-7 | 8 | bf16 |
|
| 168 |
+
|
| 169 |
+
The speech tokenizer (`speech_tokenizer/`) is the official Qwen3-TTS-Tokenizer-12Hz,
|
| 170 |
+
included unchanged so that the directory is self-contained.
|
| 171 |
+
|
| 172 |
+
## Intended use and limitations
|
| 173 |
+
|
| 174 |
+
- **Intended use.** Mandarin spoken-dialogue and service-assistant applications that
|
| 175 |
+
need low first-audio latency, in particular token-level streaming from an upstream
|
| 176 |
+
language model through Qwen3TTS-Streaming.
|
| 177 |
+
- **Single voice.** The checkpoint contains one speaker. Instruction-based style
|
| 178 |
+
control (`instruct`) is supported by the architecture but was not a training target
|
| 179 |
+
for this voice.
|
| 180 |
+
- **English.** English text is synthesized, with lower naturalness than Mandarin.
|
| 181 |
+
- **Streaming caveats.** Token-level streaming can still produce hallucinated,
|
| 182 |
+
repeated or dropped words on some inputs; the rate depends on the text and the
|
| 183 |
+
segmentation policy. The engine's
|
| 184 |
+
[known limitations](https://github.com/X-Square-Robot/Qwen3TTS-Streaming/blob/main/docs/user/known_limitations.md)
|
| 185 |
+
and the X2Streaming-TTS paper describe the failure modes and the mitigations
|
| 186 |
+
(causal commitment, health-gated state inheritance).
|
| 187 |
+
- **Numbers, dates and units.** Read the text through a text normalizer before
|
| 188 |
+
synthesis; the X2Streaming-TTS release includes the Chinese normalizer used in the
|
| 189 |
+
paper. Some date, time and unit formats are misread when passed raw.
|
| 190 |
+
- **Evaluation.** The streaming evaluation protocol and results for the method are in
|
| 191 |
+
the [paper](https://arxiv.org/abs/2608.18661).
|
| 192 |
+
|
| 193 |
+
## Citation
|
| 194 |
+
|
| 195 |
+
```bibtex
|
| 196 |
+
@article{wen2026x2streamingtts,
|
| 197 |
+
title = {X2Streaming-TTS: Causal Token-Level Text-to-Speech from Streaming Text with Speech-State Inheritance},
|
| 198 |
+
author = {Wen, Rime and Liu, Zehan and Qin, Shawn and Shi, Lights and Gan, Roy and Wang, Hao and Wang, Qian},
|
| 199 |
+
journal = {arXiv preprint arXiv:2608.18661},
|
| 200 |
+
year = {2026},
|
| 201 |
+
}
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
If you use the X2-NativeCursor progress observer with this checkpoint, also cite:
|
| 205 |
+
|
| 206 |
+
```bibtex
|
| 207 |
+
@article{liu2026x2nativecursor,
|
| 208 |
+
title = {X2-NativeCursor: Native-Token Text Progress Tracking for Incremental-Text Streaming Codec TTS},
|
| 209 |
+
author = {Liu, Zehan and Chen, Carl and Wen, Rime and Fu, Kaiqi and Lin, Altman and Qin, Shawn and Shi, Lights and Gan, Roy and Wang, Hao and Wang, Qian},
|
| 210 |
+
journal = {arXiv preprint arXiv:2609.09677},
|
| 211 |
+
year = {2026},
|
| 212 |
+
url = {https://arxiv.org/abs/2609.09677},
|
| 213 |
+
}
|
| 214 |
+
```
|
| 215 |
+
|
| 216 |
+
## License
|
| 217 |
+
|
| 218 |
+
See [LICENSE](LICENSE) for the full Apache-2.0 terms and [NOTICE](NOTICE) for
|
| 219 |
+
component provenance and attribution.
|
| 220 |
+
|
| 221 |
+
The weights are released under the Apache License 2.0, Copyright (c) 2026 XSquareRobot.
|
| 222 |
+
They derive from Qwen3-TTS-12Hz-1.7B-Base and include the Qwen3-TTS-Tokenizer-12Hz,
|
| 223 |
+
both released by the Qwen team under Apache-2.0; their notices apply to the
|
| 224 |
+
corresponding components.
|
| 225 |
+
|
| 226 |
+
## 中文简介
|
| 227 |
+
|
| 228 |
+
X2Streaming-TTS-1.7B 是 X Square Robot 基于 Qwen3-TTS-12Hz-1.7B-Base 微调的
|
| 229 |
+
CustomVoice 模型,内置一个中文服务助手音色 `robot_service_v1`。它是 Qwen3TTS-Streaming
|
| 230 |
+
引擎在线服务所用的 checkpoint,也是 X2Streaming-TTS 方法与 X2-NativeCursor 进度观察器
|
| 231 |
+
发布时所对应的权重。文件采用 Qwen3-TTS 的标准 Hugging Face 布局:用 `qwen_tts` 包可以
|
| 232 |
+
离线合成,交给 Qwen3TTS-Streaming 的 `autorun` 流水线即可导出 TensorRT 做 token 级流式
|
| 233 |
+
合成。合成前请先做文本正则化(数字、日期、单位)。许可为 Apache-2.0。
|
| 234 |
+
|
| 235 |
+
论文:[X2Streaming-TTS](https://arxiv.org/abs/2608.18661);如使用朗读进度观察器,
|
| 236 |
+
请同时引用 [X2-NativeCursor](https://arxiv.org/abs/2609.09677)。
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
c9bb0eedce066142902c7c219585189acb559d66cca956f08ca8731581a437c3 config.json
|
| 2 |
+
f1b90b4513f3b34c62851049e2492d7b4c5940daf1276f89c82b8ef04127f3aa generation_config.json
|
| 3 |
+
599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3 merges.txt
|
| 4 |
+
efdde1022ea9d76928bf7a9cd53139138f5ba2e466e837f08f6105ab1af1c119 preprocessor_config.json
|
| 5 |
+
dc3c31c3bdaedd5016382bb3cbe07323026775ad51f5a4fb564505992ae4a670 tokenizer_config.json
|
| 6 |
+
ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910 vocab.json
|
| 7 |
+
46a822304a74dcb49ce29ed087590c042ea59d57737882394c7d456c3649ef14 MODEL_VERSION
|
| 8 |
+
666b32d4b73e861d39aad1495d95b6fa5dacad186c42d00ff39d52297cf67966 model.safetensors
|
| 9 |
+
ee65bb901c876664ab8707c487157aa1a6ee57c65969b28fb5ec9dc211e68167 speech_tokenizer/config.json
|
| 10 |
+
6bc26d64eb5024b4d1dab5a52371958b429256d6c9d59787f1f5294a54e0cebd speech_tokenizer/configuration.json
|
| 11 |
+
836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258 speech_tokenizer/model.safetensors
|
| 12 |
+
fcb3805e597e786d4067706e602f6688524640f8d3396790e2e09b5942fcbdfb speech_tokenizer/preprocessor_config.json
|
assets/native_cursor_use_cases.png
ADDED
|
Git LFS Details
|
assets/x-square-logo.png
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3TTSForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"assistant_token_id": 77091,
|
| 6 |
+
"im_end_token_id": 151645,
|
| 7 |
+
"im_start_token_id": 151644,
|
| 8 |
+
"tts_bos_token_id": 151672,
|
| 9 |
+
"tts_eos_token_id": 151673,
|
| 10 |
+
"tts_pad_token_id": 151671,
|
| 11 |
+
"model_type": "qwen3_tts",
|
| 12 |
+
"tokenizer_type": "qwen3_tts_tokenizer_12hz",
|
| 13 |
+
"tts_model_size": "1b7",
|
| 14 |
+
"tts_model_type": "custom_voice",
|
| 15 |
+
"speaker_encoder_config": {
|
| 16 |
+
"enc_dim": 2048,
|
| 17 |
+
"sample_rate": 24000
|
| 18 |
+
},
|
| 19 |
+
"talker_config": {
|
| 20 |
+
"attention_bias": false,
|
| 21 |
+
"attention_dropout": 0,
|
| 22 |
+
"code_predictor_config": {
|
| 23 |
+
"_name_or_path": "",
|
| 24 |
+
"add_cross_attention": false,
|
| 25 |
+
"architectures": null,
|
| 26 |
+
"attention_bias": false,
|
| 27 |
+
"attention_dropout": 0,
|
| 28 |
+
"bad_words_ids": null,
|
| 29 |
+
"begin_suppress_tokens": null,
|
| 30 |
+
"bos_token_id": null,
|
| 31 |
+
"chunk_size_feed_forward": 0,
|
| 32 |
+
"cross_attention_hidden_size": null,
|
| 33 |
+
"decoder_start_token_id": null,
|
| 34 |
+
"diversity_penalty": 0.0,
|
| 35 |
+
"do_sample": false,
|
| 36 |
+
"early_stopping": false,
|
| 37 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 38 |
+
"eos_token_id": null,
|
| 39 |
+
"exponential_decay_length_penalty": null,
|
| 40 |
+
"finetuning_task": null,
|
| 41 |
+
"forced_bos_token_id": null,
|
| 42 |
+
"forced_eos_token_id": null,
|
| 43 |
+
"head_dim": 128,
|
| 44 |
+
"hidden_act": "silu",
|
| 45 |
+
"hidden_size": 1024,
|
| 46 |
+
"id2label": {
|
| 47 |
+
"0": "LABEL_0",
|
| 48 |
+
"1": "LABEL_1"
|
| 49 |
+
},
|
| 50 |
+
"initializer_range": 0.02,
|
| 51 |
+
"intermediate_size": 3072,
|
| 52 |
+
"is_decoder": false,
|
| 53 |
+
"is_encoder_decoder": false,
|
| 54 |
+
"label2id": {
|
| 55 |
+
"LABEL_0": 0,
|
| 56 |
+
"LABEL_1": 1
|
| 57 |
+
},
|
| 58 |
+
"layer_types": [
|
| 59 |
+
"full_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention"
|
| 64 |
+
],
|
| 65 |
+
"length_penalty": 1.0,
|
| 66 |
+
"max_length": 20,
|
| 67 |
+
"max_position_embeddings": 65536,
|
| 68 |
+
"max_window_layers": 28,
|
| 69 |
+
"min_length": 0,
|
| 70 |
+
"model_type": "qwen3_tts_talker_code_predictor",
|
| 71 |
+
"no_repeat_ngram_size": 0,
|
| 72 |
+
"num_attention_heads": 16,
|
| 73 |
+
"num_beam_groups": 1,
|
| 74 |
+
"num_beams": 1,
|
| 75 |
+
"num_code_groups": 16,
|
| 76 |
+
"num_hidden_layers": 5,
|
| 77 |
+
"num_key_value_heads": 8,
|
| 78 |
+
"num_return_sequences": 1,
|
| 79 |
+
"output_attentions": false,
|
| 80 |
+
"output_hidden_states": false,
|
| 81 |
+
"output_scores": false,
|
| 82 |
+
"pad_token_id": null,
|
| 83 |
+
"prefix": null,
|
| 84 |
+
"problem_type": null,
|
| 85 |
+
"pruned_heads": {},
|
| 86 |
+
"remove_invalid_values": false,
|
| 87 |
+
"repetition_penalty": 1.0,
|
| 88 |
+
"return_dict": true,
|
| 89 |
+
"return_dict_in_generate": false,
|
| 90 |
+
"rms_norm_eps": 1e-06,
|
| 91 |
+
"rope_scaling": null,
|
| 92 |
+
"rope_theta": 1000000,
|
| 93 |
+
"sep_token_id": null,
|
| 94 |
+
"sliding_window": null,
|
| 95 |
+
"suppress_tokens": null,
|
| 96 |
+
"task_specific_params": null,
|
| 97 |
+
"temperature": 1.0,
|
| 98 |
+
"tf_legacy_loss": false,
|
| 99 |
+
"tie_encoder_decoder": false,
|
| 100 |
+
"tie_word_embeddings": false,
|
| 101 |
+
"tokenizer_class": null,
|
| 102 |
+
"top_k": 50,
|
| 103 |
+
"top_p": 1.0,
|
| 104 |
+
"dtype": null,
|
| 105 |
+
"torchscript": false,
|
| 106 |
+
"typical_p": 1.0,
|
| 107 |
+
"use_bfloat16": false,
|
| 108 |
+
"use_cache": true,
|
| 109 |
+
"use_sliding_window": false,
|
| 110 |
+
"vocab_size": 2048
|
| 111 |
+
},
|
| 112 |
+
"codec_bos_id": 2149,
|
| 113 |
+
"codec_eos_token_id": 2150,
|
| 114 |
+
"codec_think_id": 2154,
|
| 115 |
+
"codec_language_id": {
|
| 116 |
+
"chinese": 2055,
|
| 117 |
+
"english": 2050,
|
| 118 |
+
"german": 2053,
|
| 119 |
+
"italian": 2070,
|
| 120 |
+
"portuguese": 2071,
|
| 121 |
+
"spanish": 2054,
|
| 122 |
+
"japanese": 2058,
|
| 123 |
+
"korean": 2064,
|
| 124 |
+
"french": 2061,
|
| 125 |
+
"russian": 2069
|
| 126 |
+
},
|
| 127 |
+
"codec_nothink_id": 2155,
|
| 128 |
+
"codec_pad_id": 2148,
|
| 129 |
+
"codec_think_bos_id": 2156,
|
| 130 |
+
"codec_think_eos_id": 2157,
|
| 131 |
+
"spk_id": {
|
| 132 |
+
"robot_service_v1": 3000
|
| 133 |
+
},
|
| 134 |
+
"spk_is_dialect": {
|
| 135 |
+
"robot_service_v1": false
|
| 136 |
+
},
|
| 137 |
+
"head_dim": 128,
|
| 138 |
+
"hidden_act": "silu",
|
| 139 |
+
"hidden_size": 2048,
|
| 140 |
+
"initializer_range": 0.02,
|
| 141 |
+
"intermediate_size": 6144,
|
| 142 |
+
"max_position_embeddings": 32768,
|
| 143 |
+
"model_type": "qwen3_tts_talker",
|
| 144 |
+
"num_attention_heads": 16,
|
| 145 |
+
"num_code_groups": 16,
|
| 146 |
+
"num_hidden_layers": 28,
|
| 147 |
+
"num_key_value_heads": 8,
|
| 148 |
+
"position_id_per_seconds": 13,
|
| 149 |
+
"rms_norm_eps": 1e-06,
|
| 150 |
+
"rope_scaling": {
|
| 151 |
+
"interleaved": true,
|
| 152 |
+
"mrope_section": [
|
| 153 |
+
24,
|
| 154 |
+
20,
|
| 155 |
+
20
|
| 156 |
+
],
|
| 157 |
+
"rope_type": "default",
|
| 158 |
+
"type": "default"
|
| 159 |
+
},
|
| 160 |
+
"rope_theta": 1000000,
|
| 161 |
+
"sliding_window": null,
|
| 162 |
+
"text_hidden_size": 2048,
|
| 163 |
+
"text_vocab_size": 151936,
|
| 164 |
+
"use_cache": true,
|
| 165 |
+
"use_sliding_window": false,
|
| 166 |
+
"vocab_size": 3072
|
| 167 |
+
},
|
| 168 |
+
"transformers_version": "4.57.3"
|
| 169 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_sample": true,
|
| 3 |
+
"repetition_penalty": 1.05,
|
| 4 |
+
"temperature": 0.9,
|
| 5 |
+
"top_p": 1.0,
|
| 6 |
+
"top_k": 50,
|
| 7 |
+
"subtalker_dosample": true,
|
| 8 |
+
"subtalker_temperature": 0.9,
|
| 9 |
+
"subtalker_top_p": 1.0,
|
| 10 |
+
"subtalker_top_k": 50,
|
| 11 |
+
"max_new_tokens": 8192
|
| 12 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:666b32d4b73e861d39aad1495d95b6fa5dacad186c42d00ff39d52297cf67966
|
| 3 |
+
size 3833402520
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"padding_side": "left",
|
| 3 |
+
"padding_value": 0.0,
|
| 4 |
+
"processor_class": "Qwen3TTSProcessor",
|
| 5 |
+
"return_attention_mask": true
|
| 6 |
+
}
|
speech_tokenizer/config.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3TTSTokenizerV2Model"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "qwen3_tts_tokenizer_12hz",
|
| 6 |
+
"encoder_valid_num_quantizers": 16,
|
| 7 |
+
"input_sample_rate": 24000,
|
| 8 |
+
"output_sample_rate": 24000,
|
| 9 |
+
"decode_upsample_rate": 1920,
|
| 10 |
+
"encode_downsample_rate": 1920,
|
| 11 |
+
"decoder_config": {
|
| 12 |
+
"attention_bias": false,
|
| 13 |
+
"attention_dropout": 0.0,
|
| 14 |
+
"latent_dim": 1024,
|
| 15 |
+
"codebook_dim": 512,
|
| 16 |
+
"codebook_size": 2048,
|
| 17 |
+
"decoder_dim": 1536,
|
| 18 |
+
"hidden_act": "silu",
|
| 19 |
+
"hidden_size": 512,
|
| 20 |
+
"intermediate_size": 1024,
|
| 21 |
+
"layer_scale_initial_scale": 0.01,
|
| 22 |
+
"max_position_embeddings": 8000,
|
| 23 |
+
"head_dim": 64,
|
| 24 |
+
"num_attention_heads": 16,
|
| 25 |
+
"num_hidden_layers": 8,
|
| 26 |
+
"num_key_value_heads": 16,
|
| 27 |
+
"num_quantizers": 16,
|
| 28 |
+
"num_semantic_quantizers": 1,
|
| 29 |
+
"rms_norm_eps": 1e-05,
|
| 30 |
+
"rope_theta": 10000,
|
| 31 |
+
"semantic_codebook_size": 4096,
|
| 32 |
+
"sliding_window": 72,
|
| 33 |
+
"upsample_rates": [
|
| 34 |
+
8,
|
| 35 |
+
5,
|
| 36 |
+
4,
|
| 37 |
+
3
|
| 38 |
+
],
|
| 39 |
+
"upsampling_ratios": [
|
| 40 |
+
2,
|
| 41 |
+
2
|
| 42 |
+
],
|
| 43 |
+
"vector_quantization_hidden_dimension": 512
|
| 44 |
+
},
|
| 45 |
+
"encoder_config": {
|
| 46 |
+
"_frame_rate": 12.5,
|
| 47 |
+
"attention_bias": false,
|
| 48 |
+
"attention_dropout": 0.0,
|
| 49 |
+
"audio_channels": 1,
|
| 50 |
+
"codebook_dim": 256,
|
| 51 |
+
"codebook_size": 2048,
|
| 52 |
+
"compress": 2,
|
| 53 |
+
"dilation_growth_rate": 2,
|
| 54 |
+
"dtype": "float32",
|
| 55 |
+
"head_dim": 64,
|
| 56 |
+
"hidden_act": "gelu",
|
| 57 |
+
"hidden_size": 512,
|
| 58 |
+
"initializer_range": 0.02,
|
| 59 |
+
"intermediate_size": 2048,
|
| 60 |
+
"kernel_size": 7,
|
| 61 |
+
"last_kernel_size": 3,
|
| 62 |
+
"layer_scale_initial_scale": 0.01,
|
| 63 |
+
"max_position_embeddings": 8000,
|
| 64 |
+
"norm_eps": 1e-05,
|
| 65 |
+
"normalize": false,
|
| 66 |
+
"num_attention_heads": 8,
|
| 67 |
+
"num_filters": 64,
|
| 68 |
+
"num_hidden_layers": 8,
|
| 69 |
+
"num_key_value_heads": 8,
|
| 70 |
+
"num_quantizers": 32,
|
| 71 |
+
"num_residual_layers": 1,
|
| 72 |
+
"num_semantic_quantizers": 1,
|
| 73 |
+
"pad_mode": "constant",
|
| 74 |
+
"residual_kernel_size": 3,
|
| 75 |
+
"rope_theta": 10000.0,
|
| 76 |
+
"sampling_rate": 24000,
|
| 77 |
+
"sliding_window": 250,
|
| 78 |
+
"transformers_version": "4.57.0.dev0",
|
| 79 |
+
"trim_right_ratio": 1.0,
|
| 80 |
+
"upsample_groups": 512,
|
| 81 |
+
"upsampling_ratios": [
|
| 82 |
+
8,
|
| 83 |
+
6,
|
| 84 |
+
5,
|
| 85 |
+
4
|
| 86 |
+
],
|
| 87 |
+
"use_cache": false,
|
| 88 |
+
"use_causal_conv": true,
|
| 89 |
+
"use_conv_shortcut": false,
|
| 90 |
+
"use_streaming": false,
|
| 91 |
+
"vector_quantization_hidden_dimension": 256
|
| 92 |
+
},
|
| 93 |
+
"transformers_version": "4.57.3"
|
| 94 |
+
}
|
speech_tokenizer/configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"framework": "pytorch", "task": "feature-extraction", "allow_remote": true}
|
speech_tokenizer/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258
|
| 3 |
+
size 682293092
|
speech_tokenizer/preprocessor_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chunk_length_s": null,
|
| 3 |
+
"feature_extractor_type": "EncodecFeatureExtractor",
|
| 4 |
+
"feature_size": 1,
|
| 5 |
+
"overlap": null,
|
| 6 |
+
"padding_side": "right",
|
| 7 |
+
"padding_value": 0.0,
|
| 8 |
+
"return_attention_mask": true,
|
| 9 |
+
"sampling_rate": 24000
|
| 10 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
},
|
| 213 |
+
"151669": {
|
| 214 |
+
"content": "<|audio_start|>",
|
| 215 |
+
"lstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"rstrip": false,
|
| 218 |
+
"single_word": false,
|
| 219 |
+
"special": true
|
| 220 |
+
},
|
| 221 |
+
"151670": {
|
| 222 |
+
"content": "<|audio_end|>",
|
| 223 |
+
"lstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"rstrip": false,
|
| 226 |
+
"single_word": false,
|
| 227 |
+
"special": true
|
| 228 |
+
},
|
| 229 |
+
"151671": {
|
| 230 |
+
"content": "<tts_pad>",
|
| 231 |
+
"lstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"rstrip": false,
|
| 234 |
+
"single_word": false,
|
| 235 |
+
"special": true
|
| 236 |
+
},
|
| 237 |
+
"151672": {
|
| 238 |
+
"content": "<tts_text_bos>",
|
| 239 |
+
"lstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"rstrip": false,
|
| 242 |
+
"single_word": false,
|
| 243 |
+
"special": true
|
| 244 |
+
},
|
| 245 |
+
"151673": {
|
| 246 |
+
"content": "<tts_text_eod>",
|
| 247 |
+
"lstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"rstrip": false,
|
| 250 |
+
"single_word": false,
|
| 251 |
+
"special": true
|
| 252 |
+
},
|
| 253 |
+
"151674": {
|
| 254 |
+
"content": "<tts_text_bos_single>",
|
| 255 |
+
"lstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"rstrip": false,
|
| 258 |
+
"single_word": false,
|
| 259 |
+
"special": true
|
| 260 |
+
},
|
| 261 |
+
"151675": {
|
| 262 |
+
"content": "<|audio_pad|>",
|
| 263 |
+
"lstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"rstrip": false,
|
| 266 |
+
"single_word": false,
|
| 267 |
+
"special": true
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"additional_special_tokens": [
|
| 271 |
+
"<|im_start|>",
|
| 272 |
+
"<|im_end|>",
|
| 273 |
+
"<|object_ref_start|>",
|
| 274 |
+
"<|object_ref_end|>",
|
| 275 |
+
"<|box_start|>",
|
| 276 |
+
"<|box_end|>",
|
| 277 |
+
"<|quad_start|>",
|
| 278 |
+
"<|quad_end|>",
|
| 279 |
+
"<|vision_start|>",
|
| 280 |
+
"<|vision_end|>",
|
| 281 |
+
"<|vision_pad|>",
|
| 282 |
+
"<|image_pad|>",
|
| 283 |
+
"<|video_pad|>",
|
| 284 |
+
"<|audio_start|>",
|
| 285 |
+
"<|audio_end|>",
|
| 286 |
+
"<tts_pad>",
|
| 287 |
+
"<tts_text_bos>",
|
| 288 |
+
"<tts_text_bos_single>",
|
| 289 |
+
"<|audio_pad|>"
|
| 290 |
+
],
|
| 291 |
+
"extra_special_tokens": {
|
| 292 |
+
"image_token": "<|image_pad|>",
|
| 293 |
+
"audio_token": "<|audio_pad|>",
|
| 294 |
+
"video_token": "<|video_pad|>",
|
| 295 |
+
"vision_bos_token": "<|vision_start|>",
|
| 296 |
+
"vision_eos_token": "<|vision_end|>",
|
| 297 |
+
"audio_bos_token": "<|audio_start|>",
|
| 298 |
+
"audio_eos_token": "<|audio_end|>"
|
| 299 |
+
},
|
| 300 |
+
"bos_token": null,
|
| 301 |
+
"clean_up_tokenization_spaces": false,
|
| 302 |
+
"eos_token": "<|im_end|>",
|
| 303 |
+
"errors": "replace",
|
| 304 |
+
"model_max_length": 131072,
|
| 305 |
+
"pad_token": "<|endoftext|>",
|
| 306 |
+
"split_special_tokens": false,
|
| 307 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 308 |
+
"unk_token": null,
|
| 309 |
+
"image_token": "<|image_pad|>",
|
| 310 |
+
"audio_token": "<|audio_pad|>",
|
| 311 |
+
"video_token": "<|video_pad|>",
|
| 312 |
+
"vision_bos_token": "<|vision_start|>",
|
| 313 |
+
"vision_eos_token": "<|vision_end|>",
|
| 314 |
+
"audio_bos_token": "<|audio_start|>",
|
| 315 |
+
"audio_eos_token": "<|audio_end|>"
|
| 316 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|