Audio-Text-to-Text
Safetensors
GGUF
English
Chinese
simultaneous-translation
speech-translation
streaming
qwen3-omni
vllm
fp8
llama.cpp
conversational
Instructions to use timekettle/Babelfish-SimulST with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use timekettle/Babelfish-SimulST with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Use Docker
docker model run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use timekettle/Babelfish-SimulST with Ollama:
ollama run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Unsloth Desktop
- Pi
How to use timekettle/Babelfish-SimulST with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "timekettle/Babelfish-SimulST:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use timekettle/Babelfish-SimulST with Docker Model Runner:
docker model run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Lemonade
How to use timekettle/Babelfish-SimulST with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull timekettle/Babelfish-SimulST:Q4_K_M
Run and chat with the model
lemonade run user.Babelfish-SimulST-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use timekettle/Babelfish-SimulST with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default timekettle/Babelfish-SimulST:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use timekettle/Babelfish-SimulST with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "timekettle/Babelfish-SimulST:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add Babelfish-30B-A3B-FP8 configs and model card
Browse files- Babelfish-30B-A3B-FP8/LICENSE +201 -0
- Babelfish-30B-A3B-FP8/NOTICE +12 -0
- Babelfish-30B-A3B-FP8/README.md +204 -0
- Babelfish-30B-A3B-FP8/README_zh.md +185 -0
- Babelfish-30B-A3B-FP8/chat_template.json +1 -0
- Babelfish-30B-A3B-FP8/config.json +546 -0
- Babelfish-30B-A3B-FP8/merges.tx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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
Babelfish-30B-A3B-FP8/NOTICE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Babelfish
|
| 2 |
+
Copyright 2026 TimeKettle
|
| 3 |
+
|
| 4 |
+
This repository (code) and the Babelfish-30B-A3B model weights, including the FP8 and GGUF versions, are licensed
|
| 5 |
+
under the Apache License, Version 2.0 (see LICENSE).
|
| 6 |
+
|
| 7 |
+
The model weights are a fine-tuned derivative of Qwen3-Omni-30B-A3B-Instruct (Qwen team, Alibaba Cloud), licensed
|
| 8 |
+
under the Apache License, Version 2.0: https://huggingface.co/Qwen/Qwen3-Omni-30B-A3B-Instruct
|
| 9 |
+
Modifications: fine-tuned for streaming simultaneous speech-to-text translation; the speech-generation part of the
|
| 10 |
+
original model is not included.
|
| 11 |
+
|
| 12 |
+
The GGUF files are produced with and run on llama.cpp (MIT License): https://github.com/ggml-org/llama.cpp
|
Babelfish-30B-A3B-FP8/README.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
base_model:
|
| 7 |
+
- TimeKettle/Babelfish-30B-A3B
|
| 8 |
+
base_model_relation: quantized
|
| 9 |
+
pipeline_tag: audio-text-to-text
|
| 10 |
+
library_name: transformers
|
| 11 |
+
tags:
|
| 12 |
+
- simultaneous-translation
|
| 13 |
+
- speech-translation
|
| 14 |
+
- streaming
|
| 15 |
+
- qwen3-omni
|
| 16 |
+
- vllm
|
| 17 |
+
- fp8
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
**English** | [简体中文](README_zh.md)
|
| 21 |
+
|
| 22 |
+
<h1 align="center">Babelfish-30B-A3B-FP8</h1>
|
| 23 |
+
|
| 24 |
+
<p align="center"><b>Low-latency, high-quality streaming simultaneous translation between English and Chinese</b></p>
|
| 25 |
+
|
| 26 |
+
<div align="center">
|
| 27 |
+
|
| 28 |
+
[](https://github.com/timekettle/Babelfish-SimulST)
|
| 29 |
+
[](https://huggingface.co/timekettle/Babelfish-SimulST)
|
| 30 |
+
[](LICENSE)
|
| 31 |
+
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
> This repository contains the FP8 weights (30 GiB): attention and expert weights in FP8 E4M3 with one scale per 128×128 block, activations quantized dynamically; router, embeddings and the audio encoder in FP16.
|
| 35 |
+
|
| 36 |
+
## Introduction
|
| 37 |
+
|
| 38 |
+
**Babelfish-30B-A3B** is a speech-to-text simultaneous interpretation model for **English → Chinese** and **Chinese → English**: speech streams in, the model translates while listening, and text that has been output is never revised. It is fine-tuned for streaming from [Qwen3-Omni-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Omni-30B-A3B-Instruct) (mixture of experts, about 3B parameters active per token), deciding when to speak without VAD or thresholds; see the technical report (link to be added) for the method and training details. Inference and deployment code (web page, real-time WebSocket API, file upload, offline evaluation): [GitHub](https://github.com/timekettle/Babelfish-SimulST).
|
| 39 |
+
|
| 40 |
+
## FP8 vs FP16
|
| 41 |
+
|
| 42 |
+
COMET is on a 0–100 scale.
|
| 43 |
+
|
| 44 |
+
| Test set | FP16: COMET / latency (s) | FP8: COMET / latency (s) | ΔCOMET |
|
| 45 |
+
|---|---|---|---|
|
| 46 |
+
| MCIF | 86.80 / 1.50 | 86.84 / 1.48 | +0.04 |
|
| 47 |
+
| RealSI long-form en→zh | 82.83 / 1.74 | 82.64 / 1.70 | -0.19 |
|
| 48 |
+
| FLEURS en→zh | 88.33 / 1.66 | 88.11 / 1.62 | -0.22 |
|
| 49 |
+
| CoVoST 2 en→zh | 87.06 / 1.81 | 87.02 / 1.78 | -0.04 |
|
| 50 |
+
| ACL 60/60 dev | 85.66 / 1.81 | 85.55 / 1.77 | -0.11 |
|
| 51 |
+
| ACL 60/60 eval | 85.17 / 1.92 | 85.04 / 1.84 | -0.13 |
|
| 52 |
+
| RealSI sentences en→zh | 82.94 / 1.75 | 83.02 / 1.73 | +0.08 |
|
| 53 |
+
| RealSI long-form zh→en | 77.84 / 1.97 | 77.49 / 1.92 | -0.35 |
|
| 54 |
+
| FLEURS zh→en | 85.70 / 2.07 | 85.66 / 2.03 | -0.04 |
|
| 55 |
+
| CoVoST 2 zh→en | 80.61 / 2.11 | 80.59 / 2.08 | -0.02 |
|
| 56 |
+
| RealSI sentences zh→en | 79.48 / 2.15 | 79.47 / 2.11 | -0.01 |
|
| 57 |
+
|
| 58 |
+
Mean over the 11 sets: COMET −0.09 (0–100 scale), latency 40 ms lower (both with beam size 2; FP8 runs with weight-only Marlin kernels on A800).
|
| 59 |
+
|
| 60 |
+
## Results
|
| 61 |
+
|
| 62 |
+
We evaluated on every test set reported by Hy-SimulMT (FLEURS, CoVoST 2, ACL 60/60, RealSI sentences, RealSI long-form) plus MCIF long-form, 11 test sets in total, against the open Hy-SimulMT and four commercial simultaneous interpretation services.
|
| 63 |
+
|
| 64 |
+
- **Quality**: the highest COMET on 10 of the 11 test sets and the highest CometKiwi on 9. Average COMET is 85.5 for English → Chinese and 80.9 for Chinese → English; the next best, Qwen3.8-LiveTranslate, has 84.3 and 79.7. The only set without the highest COMET is Chinese → English RealSI long-form, 0.2 below Seed LiveInterpret 2.0.
|
| 65 |
+
- **Against Hy-SimulMT**: higher COMET on all 11 test sets, by 2.9 (English → Chinese) and 2.3 (Chinese → English) on average, and lower latency on 7 of them.
|
| 66 |
+
- **Latency**: LAAL of 1.50–1.92 s for English → Chinese and 1.97–2.15 s for Chinese → English, 1.74 s and 2.08 s on average.
|
| 67 |
+
|
| 68 |
+
COMET and CometKiwi are on a 0–100 scale. The best value in each column of each metric is in bold (the lowest for latency). † marks commercial services, whose latency is measured differently (see the notes below the tables).
|
| 69 |
+
|
| 70 |
+
**English → Chinese**
|
| 71 |
+
|
| 72 |
+
| System | MCIF | RealSI long-form | RealSI sentences | FLEURS | CoVoST 2 | ACL 60/60 dev | ACL 60/60 eval |
|
| 73 |
+
|---|---|---|---|---|---|---|---|
|
| 74 |
+
| *COMET ↑* | | | | | | | |
|
| 75 |
+
| **Babelfish-30B-A3B** | **86.8** | **82.8** | **82.9** | **88.3** | **87.1** | **85.7** | **85.2** |
|
| 76 |
+
| Hy-SimulMT-30B-A3B | 85.2 | 79.4 | 77.7 | 86.7 | 83.9 | 83.3 | 82.5 |
|
| 77 |
+
| Qwen3.8-LiveTranslate † | 86.6 | 82.2 | 80.4 | 86.9 | 85.6 | 84.3 | 84.0 |
|
| 78 |
+
| Seed LiveInterpret 2.0 † | 86.2 | 81.7 | 79.2 | 85.8 | 81.2 | 83.3 | 81.2 |
|
| 79 |
+
| GPT-Realtime-Translate † | 84.1 | 77.5 | 77.6 | 83.0 | 75.0\* | 80.6 | 80.6 |
|
| 80 |
+
| Gemini 3.5 Live Translate † | 83.1 | 76.3 | 75.6 | 84.0 | 80.4 | 80.8 | 78.9 |
|
| 81 |
+
| *CometKiwi ↑* | | | | | | | |
|
| 82 |
+
| **Babelfish-30B-A3B** | **79.7** | **73.2** | **75.5** | **84.2** | **80.8** | **78.4** | **76.6** |
|
| 83 |
+
| Hy-SimulMT-30B-A3B | 76.9 | 70.4 | 70.6 | 81.9 | 76.8 | 74.4 | 72.5 |
|
| 84 |
+
| Qwen3.8-LiveTranslate † | 78.5 | 71.3 | 72.1 | 81.3 | 78.0 | 75.3 | 73.0 |
|
| 85 |
+
| Seed LiveInterpret 2.0 † | 77.5 | 71.4 | 69.7 | 80.4 | 72.4 | 73.7 | 69.7 |
|
| 86 |
+
| GPT-Realtime-Translate † | 76.7 | 67.5 | 69.8 | 78.0 | 66.7\* | 72.5 | 70.9 |
|
| 87 |
+
| Gemini 3.5 Live Translate † | 74.2 | 67.8 | 67.7 | 78.3 | 72.0 | 70.7 | 67.8 |
|
| 88 |
+
| *BLEU ↑* | | | | | | | |
|
| 89 |
+
| **Babelfish-30B-A3B** | 40.2 | 25.2 | 24.0 | 40.3 | **41.4** | 41.8 | 41.9 |
|
| 90 |
+
| Hy-SimulMT-30B-A3B | 52.3 | 29.8 | 28.5 | 42.6 | 38.2 | 49.9 | 48.3 |
|
| 91 |
+
| Qwen3.8-LiveTranslate † | 45.1 | 27.0 | 25.3 | 38.2 | 38.1 | 43.1 | 43.0 |
|
| 92 |
+
| Seed LiveInterpret 2.0 † | **55.6** | **33.3** | **31.3** | **43.1** | 39.6 | **51.9** | **48.9** |
|
| 93 |
+
| GPT-Realtime-Translate † | 38.4 | 25.0 | 22.8 | 31.1 | 28.0\* | 33.8 | 34.6 |
|
| 94 |
+
| Gemini 3.5 Live Translate † | 48.3 | 28.4 | 27.0 | 40.3 | 38.7 | 46.5 | 46.1 |
|
| 95 |
+
| *LAAL (s) ↓* | | | | | | | |
|
| 96 |
+
| **Babelfish-30B-A3B** | **1.50** | **1.74** | **1.75** | **1.66** | **1.81** | 1.81 | 1.92 |
|
| 97 |
+
| Hy-SimulMT-30B-A3B | 2.15 | 2.66 | 1.88 | 2.09 | 1.96 | **1.77** | **1.74** |
|
| 98 |
+
| Qwen3.8-LiveTranslate † | 4.07 | 3.69 | 2.18 | 2.30 | 2.66 | 2.44 | 2.51 |
|
| 99 |
+
| Seed LiveInterpret 2.0 † | 2.51 | 2.78 | 2.02 | 2.15 | 1.86 | 2.10 | 2.02 |
|
| 100 |
+
| GPT-Realtime-Translate † | 4.50 | 4.86 | 2.92 | 3.55 | 3.31\* | 2.87 | 2.92 |
|
| 101 |
+
| Gemini 3.5 Live Translate † | 1.98 | 2.24 | 2.74 | 2.53 | 2.95 | 2.67 | 2.55 |
|
| 102 |
+
|
| 103 |
+
**Chinese → English**
|
| 104 |
+
|
| 105 |
+
| System | RealSI long-form | RealSI sentences | FLEURS | CoVoST 2 |
|
| 106 |
+
|---|---|---|---|---|
|
| 107 |
+
| *COMET ↑* | | | | |
|
| 108 |
+
| **Babelfish-30B-A3B** | 77.8 | **79.5** | **85.7** | **80.6** |
|
| 109 |
+
| Hy-SimulMT-30B-A3B | 75.1 | 75.9 | 85.2 | 78.3 |
|
| 110 |
+
| Qwen3.8-LiveTranslate † | 77.5 | 77.7 | 84.4 | 79.0 |
|
| 111 |
+
| Seed LiveInterpret 2.0 † | **78.0** | 77.8 | 84.5 | 75.2 |
|
| 112 |
+
| GPT-Realtime-Translate † | 74.5 | 73.3 | 79.6 | 65.8\* |
|
| 113 |
+
| Gemini 3.5 Live Translate † | 72.2 | 72.3 | 80.4 | 66.0 |
|
| 114 |
+
| *CometKiwi ↑* | | | | |
|
| 115 |
+
| **Babelfish-30B-A3B** | 67.8 | 73.5 | **83.6** | **77.3** |
|
| 116 |
+
| Hy-SimulMT-30B-A3B | **68.7** | 72.5 | 82.5 | 74.1 |
|
| 117 |
+
| Qwen3.8-LiveTranslate † | 67.9 | **73.9** | 81.9 | 74.8 |
|
| 118 |
+
| Seed LiveInterpret 2.0 † | 67.0 | 69.5 | 81.4 | 69.9 |
|
| 119 |
+
| GPT-Realtime-Translate † | 65.1 | 67.8 | 76.2 | 59.8\* |
|
| 120 |
+
| Gemini 3.5 Live Translate † | 65.6 | 67.2 | 75.8 | 59.7 |
|
| 121 |
+
| *BLEU ↑* | | | | |
|
| 122 |
+
| **Babelfish-30B-A3B** | 21.0 | 20.3 | 22.7 | **23.6** |
|
| 123 |
+
| Hy-SimulMT-30B-A3B | 22.1 | 19.7 | **23.7** | 22.9 |
|
| 124 |
+
| Qwen3.8-LiveTranslate † | 20.4 | 19.5 | 20.7 | 21.5 |
|
| 125 |
+
| Seed LiveInterpret 2.0 † | **28.3** | **25.3** | 22.7 | 22.2 |
|
| 126 |
+
| GPT-Realtime-Translate † | 17.2 | 14.4 | 16.1 | 11.8\* |
|
| 127 |
+
| Gemini 3.5 Live Translate † | 16.8 | 16.8 | 19.4 | 14.6 |
|
| 128 |
+
| *LAAL (s) ↓* | | | | |
|
| 129 |
+
| **Babelfish-30B-A3B** | 1.97 | 2.15 | **2.07** | **2.11** |
|
| 130 |
+
| Hy-SimulMT-30B-A3B | **1.91** | **1.59** | 2.30 | 2.20 |
|
| 131 |
+
| Qwen3.8-LiveTranslate † | 3.56 | 2.42 | 2.73 | 3.24 |
|
| 132 |
+
| Seed LiveInterpret 2.0 † | 2.82 | 2.19 | 2.70 | 2.13 |
|
| 133 |
+
| GPT-Realtime-Translate † | 4.15 | 3.10 | 3.56 | 3.79\* |
|
| 134 |
+
| Gemini 3.5 Live Translate † | 2.06 | 2.80 | 2.82 | 3.05 |
|
| 135 |
+
|
| 136 |
+
<details>
|
| 137 |
+
<summary>Test conditions and metrics</summary>
|
| 138 |
+
|
| 139 |
+
- **COMET**: wmt22-comet-da; **CometKiwi**: wmt22-cometkiwi-da (reference-free); **BLEU**: SacreBLEU (zh tokenizer for Chinese output, 13a for English). The raw output is scored (punctuation kept); sentence-level sets are scored per sentence; long-form sets (MCIF, RealSI long-form) are first re-segmented to the official reference sentences with OmniSTEval.
|
| 140 |
+
- **Latency**: LAAL for sentence-level sets, StreamLAAL (LAAL after re-segmentation) for long-form sets; characters for Chinese output, words for English output.
|
| 141 |
+
- **The two groups of latencies are measured differently and are not directly comparable**: Babelfish and Hy-SimulMT are simulated offline on the audio timeline, without computation time; the commercial services were fed audio in real time and their latency is the wall-clock time at which the text arrived, including network round trips and server-side computation.
|
| 142 |
+
- Babelfish results use beam size 2 (`--beams 2`); the released default is greedy decoding with the repetition guard, of comparable quality (slightly higher on FLEURS, 0.5 lower on MCIF; see [deployment guide 3.3](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/DEPLOYMENT.md#33-decoding-greedy-or-beam-size-2)). Hy-SimulMT-30B-A3B uses the official SimulInfer defaults (1.6 s chunks, VAD on).
|
| 143 |
+
- \* Approximate: GPT-Realtime-Translate produced valid results for only part of CoVoST 2; the values measured on those sentences are extrapolated to the full set with the average difference of the other systems (about ±0.5 COMET).
|
| 144 |
+
- Test set sizes: MCIF 21 talks; RealSI long-form 10 recordings per direction; FLEURS 646 / 945 sentences; CoVoST 2 15,530 / 4,898; ACL 60/60 dev 468, eval 416; RealSI sentences 346 / 431.
|
| 145 |
+
- Raw scores on a 0–1 scale, quantized versions and decoding settings: [docs/EVALUATION.md](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/EVALUATION.md).
|
| 146 |
+
|
| 147 |
+
</details>
|
| 148 |
+
|
| 149 |
+
## Model links
|
| 150 |
+
|
| 151 |
+
| Model | Description | Framework | Download |
|
| 152 |
+
|---|---|---|---|
|
| 153 |
+
| Babelfish-30B-A3B | original FP16 model | vLLM | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B) |
|
| 154 |
+
| Babelfish-30B-A3B-FP8 | FP8 (one scale per 128×128 block) | vLLM | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B-FP8) |
|
| 155 |
+
| Babelfish-30B-A3B-GGUF | Q8_0 / Q4_K_M + audio encoder | llama.cpp | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B-GGUF) |
|
| 156 |
+
|
| 157 |
+
| Version | Weights | GPU memory | Quality | Use |
|
| 158 |
+
|---|---|---|---|---|
|
| 159 |
+
| FP16 | 58 GiB | 80 GB × 1, or 48 GB × 2 | used for the reported results | servers |
|
| 160 |
+
| FP8 | 30 GiB | 48 GB × 1 | mean COMET 0.09 lower over the 11 test sets (0–100 scale) | one 48 GB GPU; native FP8 on H100 / H20 / L40S |
|
| 161 |
+
| GGUF Q8_0 / Q4_K_M | 30.3 / 17.3 GiB + 1.2 GiB audio encoder | about 36 / 23 GB | on par with vLLM with the llama.cpp audio patch | llama.cpp; environments without vLLM, offline jobs |
|
| 162 |
+
|
| 163 |
+
## Quick start
|
| 164 |
+
|
| 165 |
+
Serve the model with the code on [GitHub](https://github.com/timekettle/Babelfish-SimulST) using a conda environment (vLLM; web page, real-time WebSocket and file upload APIs):
|
| 166 |
+
|
| 167 |
+
```bash
|
| 168 |
+
git clone https://github.com/timekettle/Babelfish-SimulST.git && cd Babelfish-SimulST
|
| 169 |
+
conda create -n babelfish python=3.12 -y && conda activate babelfish
|
| 170 |
+
pip install vllm==0.28.0 && pip install -e .
|
| 171 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulST/Babelfish-30B-A3B-FP8
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
Or pass `--install` to let `scripts/deploy.sh` create and set up the `babelfish` conda environment automatically (add `--cu129` for CUDA 12.x drivers).
|
| 175 |
+
|
| 176 |
+
When it prints `Ready: http://127.0.0.1:8080/`, open the page (microphone or file), or call the APIs:
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
python -m simulst.client audio.wav --direction en2zh --url http://127.0.0.1:8080
|
| 180 |
+
curl -N http://127.0.0.1:8080/translate/stream -F direction=zh2en -F file=@audio.wav
|
| 181 |
+
```
|
| 182 |
+
|
| 183 |
+
Hardware: one GPU with 48 GB or more. Hopper / Ada GPUs (H100, H20, L40S, ...) compute in FP8; on Ampere (A100, A800) vLLM uses weight-only FP8 Marlin kernels (tested on A800). Default decoding is greedy with the repetition guard (`--beams 2` optional); see the [deployment guide](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/DEPLOYMENT.md).
|
| 184 |
+
|
| 185 |
+
## License
|
| 186 |
+
|
| 187 |
+
Apache License 2.0 (see LICENSE). Fine-tuned from Qwen3-Omni-30B-A3B-Instruct (Apache License 2.0); see NOTICE.
|
| 188 |
+
|
| 189 |
+
## Contributors
|
| 190 |
+
|
| 191 |
+
Shiyang Deng, Nanjie Li, Xiaoyong Guo, Haihua Xu, Wei Shi, Hao Huang, Xiansu Deng, Jun Guo, Yuanming Luo, Wangzheng Wu
|
| 192 |
+
|
| 193 |
+
## Citation
|
| 194 |
+
|
| 195 |
+
If Babelfish helps your work, please cite:
|
| 196 |
+
|
| 197 |
+
```bibtex
|
| 198 |
+
@misc{babelfish2026,
|
| 199 |
+
title = {Babelfish: Low-Latency Streaming Simultaneous Speech Translation between English and Chinese},
|
| 200 |
+
author = {Shiyang Deng and Nanjie Li and Xiaoyong Guo and Haihua Xu and Wei Shi and Hao Huang and Xiansu Deng and Jun Guo and Yuanming Luo and Wangzheng Wu},
|
| 201 |
+
year = {2026},
|
| 202 |
+
url = {https://github.com/timekettle/Babelfish-SimulST}
|
| 203 |
+
}
|
| 204 |
+
```
|
Babelfish-30B-A3B-FP8/README_zh.md
ADDED
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[English](README.md) | **简体中文**
|
| 2 |
+
|
| 3 |
+
<h1 align="center">Babelfish-30B-A3B-FP8</h1>
|
| 4 |
+
|
| 5 |
+
<p align="center"><b>低延迟、高质量的英中双向流式同声传译模型</b></p>
|
| 6 |
+
|
| 7 |
+
<div align="center">
|
| 8 |
+
|
| 9 |
+
[](https://github.com/timekettle/Babelfish-SimulST)
|
| 10 |
+
[](https://huggingface.co/timekettle/Babelfish-SimulST)
|
| 11 |
+
[](LICENSE)
|
| 12 |
+
|
| 13 |
+
</div>
|
| 14 |
+
|
| 15 |
+
> 本仓库是 FP8 权重(30 GiB):注意力和专家权重为 FP8 E4M3,每 128×128 块一个缩放系数,激活运行时动态量化;路由、词表和音频编码器保持 FP16。
|
| 16 |
+
|
| 17 |
+
## 模型介绍
|
| 18 |
+
|
| 19 |
+
**Babelfish-30B-A3B** 是一个语音到文字的同声传译模型,支持**英文 → 中文**和**中文 → 英文**两个方向:说话人的声音持续输入,模型边听边译,已经输出的译文不再修改。模型由 [Qwen3-Omni-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Omni-30B-A3B-Instruct) 流式微调得到(MoE 结构,每个 token 约激活 3B 参数),无需 VAD 或阈值由模型自行决定何时开口;方法与训练细节见技术报告(链接待补)。推理与部署代码(网页、实时 WebSocket 接口、文件上传、离线评测)见 [GitHub](https://github.com/timekettle/Babelfish-SimulST)。
|
| 20 |
+
|
| 21 |
+
## FP8 与 FP16 对比
|
| 22 |
+
|
| 23 |
+
COMET 为百分制(0–100)。
|
| 24 |
+
|
| 25 |
+
| 测试集 | FP16:COMET / 延迟(秒) | FP8:COMET / 延迟(秒) | ΔCOMET |
|
| 26 |
+
|---|---|---|---|
|
| 27 |
+
| MCIF | 86.80 / 1.50 | 86.84 / 1.48 | +0.04 |
|
| 28 |
+
| RealSI 长音频 英→中 | 82.83 / 1.74 | 82.64 / 1.70 | -0.19 |
|
| 29 |
+
| FLEURS 英→中 | 88.33 / 1.66 | 88.11 / 1.62 | -0.22 |
|
| 30 |
+
| CoVoST 2 英→中 | 87.06 / 1.81 | 87.02 / 1.78 | -0.04 |
|
| 31 |
+
| ACL 60/60 dev | 85.66 / 1.81 | 85.55 / 1.77 | -0.11 |
|
| 32 |
+
| ACL 60/60 eval | 85.17 / 1.92 | 85.04 / 1.84 | -0.13 |
|
| 33 |
+
| RealSI 单句 英→中 | 82.94 / 1.75 | 83.02 / 1.73 | +0.08 |
|
| 34 |
+
| RealSI 长音频 中→英 | 77.84 / 1.97 | 77.49 / 1.92 | -0.35 |
|
| 35 |
+
| FLEURS 中→英 | 85.70 / 2.07 | 85.66 / 2.03 | -0.04 |
|
| 36 |
+
| CoVoST 2 中→英 | 80.61 / 2.11 | 80.59 / 2.08 | -0.02 |
|
| 37 |
+
| RealSI 单句 中→英 | 79.48 / 2.15 | 79.47 / 2.11 | -0.01 |
|
| 38 |
+
|
| 39 |
+
11 个测试集 COMET 平均 −0.09(百分制),延迟平均快 40 ms(两者都用束宽 2 解码;FP8 在 A800 上经 Marlin 只量化权重运行)。
|
| 40 |
+
|
| 41 |
+
## 效果
|
| 42 |
+
|
| 43 |
+
我们在 Hy-SimulMT 公布的全部测试集(FLEURS、CoVoST 2、ACL 60/60、RealSI 单句、RealSI 长音频)加上 MCIF 长音频,共 11 个测试集上,对比了开源的 Hy-SimulMT 和四家商业同传服务。
|
| 44 |
+
|
| 45 |
+
- **质量**:COMET 在 11 个测试集中有 10 个最高,CometKiwi 有 9 个最高;平均 COMET 英→中 85.5、中→英 80.9,次高的 Qwen3.8-LiveTranslate 为 84.3 和 79.7。唯一没有拿到最高 COMET 的是中→英 RealSI 长音频,比 Seed LiveInterpret 2.0 低 0.2。
|
| 46 |
+
- **对比 Hy-SimulMT**:COMET 在全部 11 个测试集上都更高,英→中平均高 2.9、中→英平均高 2.3;延迟在其中 7 个测试集上更低。
|
| 47 |
+
- **延迟**:LAAL 英→中 1.50–1.92 秒、中→英 1.97–2.15 秒,平均 1.74 秒和 2.08 秒。
|
| 48 |
+
|
| 49 |
+
COMET 和 CometKiwi 为百分制(0–100);每个指标每列最好的值加粗(延迟取最低);† 为商业同传服务,延迟测法不同,见表下说明。
|
| 50 |
+
|
| 51 |
+
**英文 → 中文**
|
| 52 |
+
|
| 53 |
+
| 系统 | MCIF | RealSI 长音频 | RealSI 单句 | FLEURS | CoVoST 2 | ACL 60/60 dev | ACL 60/60 eval |
|
| 54 |
+
|---|---|---|---|---|---|---|---|
|
| 55 |
+
| *COMET ↑* | | | | | | | |
|
| 56 |
+
| **Babelfish-30B-A3B** | **86.8** | **82.8** | **82.9** | **88.3** | **87.1** | **85.7** | **85.2** |
|
| 57 |
+
| Hy-SimulMT-30B-A3B | 85.2 | 79.4 | 77.7 | 86.7 | 83.9 | 83.3 | 82.5 |
|
| 58 |
+
| Qwen3.8-LiveTranslate † | 86.6 | 82.2 | 80.4 | 86.9 | 85.6 | 84.3 | 84.0 |
|
| 59 |
+
| Seed LiveInterpret 2.0 † | 86.2 | 81.7 | 79.2 | 85.8 | 81.2 | 83.3 | 81.2 |
|
| 60 |
+
| GPT-Realtime-Translate † | 84.1 | 77.5 | 77.6 | 83.0 | 75.0\* | 80.6 | 80.6 |
|
| 61 |
+
| Gemini 3.5 Live Translate † | 83.1 | 76.3 | 75.6 | 84.0 | 80.4 | 80.8 | 78.9 |
|
| 62 |
+
| *CometKiwi ↑* | | | | | | | |
|
| 63 |
+
| **Babelfish-30B-A3B** | **79.7** | **73.2** | **75.5** | **84.2** | **80.8** | **78.4** | **76.6** |
|
| 64 |
+
| Hy-SimulMT-30B-A3B | 76.9 | 70.4 | 70.6 | 81.9 | 76.8 | 74.4 | 72.5 |
|
| 65 |
+
| Qwen3.8-LiveTranslate † | 78.5 | 71.3 | 72.1 | 81.3 | 78.0 | 75.3 | 73.0 |
|
| 66 |
+
| Seed LiveInterpret 2.0 † | 77.5 | 71.4 | 69.7 | 80.4 | 72.4 | 73.7 | 69.7 |
|
| 67 |
+
| GPT-Realtime-Translate † | 76.7 | 67.5 | 69.8 | 78.0 | 66.7\* | 72.5 | 70.9 |
|
| 68 |
+
| Gemini 3.5 Live Translate † | 74.2 | 67.8 | 67.7 | 78.3 | 72.0 | 70.7 | 67.8 |
|
| 69 |
+
| *BLEU ↑* | | | | | | | |
|
| 70 |
+
| **Babelfish-30B-A3B** | 40.2 | 25.2 | 24.0 | 40.3 | **41.4** | 41.8 | 41.9 |
|
| 71 |
+
| Hy-SimulMT-30B-A3B | 52.3 | 29.8 | 28.5 | 42.6 | 38.2 | 49.9 | 48.3 |
|
| 72 |
+
| Qwen3.8-LiveTranslate † | 45.1 | 27.0 | 25.3 | 38.2 | 38.1 | 43.1 | 43.0 |
|
| 73 |
+
| Seed LiveInterpret 2.0 † | **55.6** | **33.3** | **31.3** | **43.1** | 39.6 | **51.9** | **48.9** |
|
| 74 |
+
| GPT-Realtime-Translate † | 38.4 | 25.0 | 22.8 | 31.1 | 28.0\* | 33.8 | 34.6 |
|
| 75 |
+
| Gemini 3.5 Live Translate † | 48.3 | 28.4 | 27.0 | 40.3 | 38.7 | 46.5 | 46.1 |
|
| 76 |
+
| *LAAL(秒)↓* | | | | | | | |
|
| 77 |
+
| **Babelfish-30B-A3B** | **1.50** | **1.74** | **1.75** | **1.66** | **1.81** | 1.81 | 1.92 |
|
| 78 |
+
| Hy-SimulMT-30B-A3B | 2.15 | 2.66 | 1.88 | 2.09 | 1.96 | **1.77** | **1.74** |
|
| 79 |
+
| Qwen3.8-LiveTranslate † | 4.07 | 3.69 | 2.18 | 2.30 | 2.66 | 2.44 | 2.51 |
|
| 80 |
+
| Seed LiveInterpret 2.0 † | 2.51 | 2.78 | 2.02 | 2.15 | 1.86 | 2.10 | 2.02 |
|
| 81 |
+
| GPT-Realtime-Translate † | 4.50 | 4.86 | 2.92 | 3.55 | 3.31\* | 2.87 | 2.92 |
|
| 82 |
+
| Gemini 3.5 Live Translate † | 1.98 | 2.24 | 2.74 | 2.53 | 2.95 | 2.67 | 2.55 |
|
| 83 |
+
|
| 84 |
+
**中文 → 英文**
|
| 85 |
+
|
| 86 |
+
| 系统 | RealSI 长音频 | RealSI 单句 | FLEURS | CoVoST 2 |
|
| 87 |
+
|---|---|---|---|---|
|
| 88 |
+
| *COMET ↑* | | | | |
|
| 89 |
+
| **Babelfish-30B-A3B** | 77.8 | **79.5** | **85.7** | **80.6** |
|
| 90 |
+
| Hy-SimulMT-30B-A3B | 75.1 | 75.9 | 85.2 | 78.3 |
|
| 91 |
+
| Qwen3.8-LiveTranslate † | 77.5 | 77.7 | 84.4 | 79.0 |
|
| 92 |
+
| Seed LiveInterpret 2.0 † | **78.0** | 77.8 | 84.5 | 75.2 |
|
| 93 |
+
| GPT-Realtime-Translate † | 74.5 | 73.3 | 79.6 | 65.8\* |
|
| 94 |
+
| Gemini 3.5 Live Translate † | 72.2 | 72.3 | 80.4 | 66.0 |
|
| 95 |
+
| *CometKiwi ↑* | | | | |
|
| 96 |
+
| **Babelfish-30B-A3B** | 67.8 | 73.5 | **83.6** | **77.3** |
|
| 97 |
+
| Hy-SimulMT-30B-A3B | **68.7** | 72.5 | 82.5 | 74.1 |
|
| 98 |
+
| Qwen3.8-LiveTranslate † | 67.9 | **73.9** | 81.9 | 74.8 |
|
| 99 |
+
| Seed LiveInterpret 2.0 † | 67.0 | 69.5 | 81.4 | 69.9 |
|
| 100 |
+
| GPT-Realtime-Translate † | 65.1 | 67.8 | 76.2 | 59.8\* |
|
| 101 |
+
| Gemini 3.5 Live Translate † | 65.6 | 67.2 | 75.8 | 59.7 |
|
| 102 |
+
| *BLEU ↑* | | | | |
|
| 103 |
+
| **Babelfish-30B-A3B** | 21.0 | 20.3 | 22.7 | **23.6** |
|
| 104 |
+
| Hy-SimulMT-30B-A3B | 22.1 | 19.7 | **23.7** | 22.9 |
|
| 105 |
+
| Qwen3.8-LiveTranslate † | 20.4 | 19.5 | 20.7 | 21.5 |
|
| 106 |
+
| Seed LiveInterpret 2.0 † | **28.3** | **25.3** | 22.7 | 22.2 |
|
| 107 |
+
| GPT-Realtime-Translate † | 17.2 | 14.4 | 16.1 | 11.8\* |
|
| 108 |
+
| Gemini 3.5 Live Translate † | 16.8 | 16.8 | 19.4 | 14.6 |
|
| 109 |
+
| *LAAL(秒)↓* | | | | |
|
| 110 |
+
| **Babelfish-30B-A3B** | 1.97 | 2.15 | **2.07** | **2.11** |
|
| 111 |
+
| Hy-SimulMT-30B-A3B | **1.91** | **1.59** | 2.30 | 2.20 |
|
| 112 |
+
| Qwen3.8-LiveTranslate † | 3.56 | 2.42 | 2.73 | 3.24 |
|
| 113 |
+
| Seed LiveInterpret 2.0 † | 2.82 | 2.19 | 2.70 | 2.13 |
|
| 114 |
+
| GPT-Realtime-Translate † | 4.15 | 3.10 | 3.56 | 3.79\* |
|
| 115 |
+
| Gemini 3.5 Live Translate † | 2.06 | 2.80 | 2.82 | 3.05 |
|
| 116 |
+
|
| 117 |
+
<details>
|
| 118 |
+
<summary>测试条件与指标口径</summary>
|
| 119 |
+
|
| 120 |
+
- **COMET**:wmt22-comet-da;**CometKiwi**:wmt22-cometkiwi-da(不看参考译文);**BLEU**:SacreBLEU(英→中 zh 分词,中→英 13a)。译文保留标点原样打分;单句集逐句打分,长音频(MCIF、RealSI 长音频)先用 OmniSTEval 按官方句子重新切分再打分。
|
| 121 |
+
- **延迟**:单句集为 LAAL,长音频为重新切分后计算的 StreamLAAL;英→中按字、中→英按词计算。
|
| 122 |
+
- **两组延迟测法不同,不能直接比较**:Babelfish 和 Hy-SimulMT 按音频时间离线模拟,不含计算耗时;四家商业服务按实时速度送入音频,记录收到译文时的墙钟时间,包含网络往返和服务端计算。
|
| 123 |
+
- Babelfish 的成绩用束宽 2 解码(`--beams 2`);发布版默认改为贪心解码 + 复读保护,质量相当(FLEURS 略高、MCIF 低 0.5),见[部署教程 3.3](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/DEPLOYMENT_zh.md#33-解码方式贪心还是束宽-2)。Hy-SimulMT-30B-A3B 使用其 SimulInfer 官方默认设置(1.6 秒一块,开启 VAD)。
|
| 124 |
+
- 带 * 的格子为近似值:GPT-Realtime-Translate 在 CoVoST 2 上只有部分句子有有效结果,按其余系统在同一批句子上的差值推算到全集(COMET 误差约 ±0.5)。
|
| 125 |
+
- 测试集规模:MCIF 21 段、RealSI 长音频每个方向 10 段、FLEURS 646 / 945 句、CoVoST 2 15,530 / 4,898 句、ACL 60/60 dev 468 句、eval 416 句、RealSI 单句 346 / 431 句。
|
| 126 |
+
- 0–1 分制的原始分数、量化版和不同解码方式的对比见 [docs/EVALUATION_zh.md](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/EVALUATION_zh.md)。
|
| 127 |
+
|
| 128 |
+
</details>
|
| 129 |
+
|
| 130 |
+
## 模型链接
|
| 131 |
+
|
| 132 |
+
| 模型名 | 简介 | 推理框架 | 下载 |
|
| 133 |
+
|---|---|---|---|
|
| 134 |
+
| Babelfish-30B-A3B | FP16 原版 | vLLM | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B) |
|
| 135 |
+
| Babelfish-30B-A3B-FP8 | FP8 量化(逐 128×128 块缩放) | vLLM | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B-FP8) |
|
| 136 |
+
| Babelfish-30B-A3B-GGUF | Q8_0 / Q4_K_M + 音频编码器 | llama.cpp | [Hugging Face](https://huggingface.co/timekettle/Babelfish-SimulST/tree/main/Babelfish-30B-A3B-GGUF) |
|
| 137 |
+
|
| 138 |
+
| 版本 | 权重大小 | 显存 | 质量 | 适合 |
|
| 139 |
+
|---|---|---|---|---|
|
| 140 |
+
| FP16 | 58 GiB | 80 GB × 1,或 48 GB × 2 | 发布成绩所用版本 | 服务器部署 |
|
| 141 |
+
| FP8 | 30 GiB | 48 GB × 1 | 11 个测试集 COMET 平均低 0.09(百分制) | 单张 48 GB 卡;H100 / H20 / L40S 原生 FP8 |
|
| 142 |
+
| GGUF Q8_0 / Q4_K_M | 30.3 / 17.3 GiB + 1.2 GiB 音频编码器 | 约 36 / 23 GB | 打上 llama.cpp 音频补丁后与 vLLM 持平 | llama.cpp;没有 vLLM 的环境、离线转写 |
|
| 143 |
+
|
| 144 |
+
## 快速开始
|
| 145 |
+
|
| 146 |
+
用 [GitHub](https://github.com/timekettle/Babelfish-SimulST) 上的代码在 conda 环境中部署(vLLM;网页、实时 WebSocket、文件上传接口):
|
| 147 |
+
|
| 148 |
+
```bash
|
| 149 |
+
git clone https://github.com/timekettle/Babelfish-SimulST.git && cd Babelfish-SimulST
|
| 150 |
+
conda create -n babelfish python=3.12 -y && conda activate babelfish
|
| 151 |
+
pip install vllm==0.28.0 && pip install -e .
|
| 152 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulST/Babelfish-30B-A3B-FP8
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
也可给 `scripts/deploy.sh` 加 `--install` 自动创建并配置 `babelfish` conda 环境(驱动只到 CUDA 12.x 时加 `--cu129`)。
|
| 156 |
+
|
| 157 |
+
看到 `Ready: http://127.0.0.1:8080/` 后打开网页(麦克风或上传文件),或调用接口:
|
| 158 |
+
|
| 159 |
+
```bash
|
| 160 |
+
python -m simulst.client audio.wav --direction en2zh --url http://127.0.0.1:8080
|
| 161 |
+
curl -N http://127.0.0.1:8080/translate/stream -F direction=zh2en -F file=@audio.wav
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
硬件:1 张 48 GB 及以上的显卡。Hopper / Ada(H100、H20、L40S 等)上用 FP8 计算;Ampere(A100、A800)上 vLLM 自动改用 Marlin 内核(只量化权重,已在 A800 上测试)。默认贪心解码 + 复读保护(可选 `--beams 2`),详见[部署教程](https://github.com/timekettle/Babelfish-SimulST/blob/main/docs/DEPLOYMENT_zh.md)。
|
| 165 |
+
|
| 166 |
+
## 许可证
|
| 167 |
+
|
| 168 |
+
Apache License 2.0(见 LICENSE)。模型由 Qwen3-Omni-30B-A3B-Instruct(Apache License 2.0)微调得到,见 NOTICE。
|
| 169 |
+
|
| 170 |
+
## 贡献者
|
| 171 |
+
|
| 172 |
+
邓士洋,李男杰,郭晓勇,徐海华,石伟,黄浩,邓贤苏,郭俊,罗元明,吴王政
|
| 173 |
+
|
| 174 |
+
## 引用
|
| 175 |
+
|
| 176 |
+
如果 Babelfish 对你有帮助,欢迎引用:
|
| 177 |
+
|
| 178 |
+
```bibtex
|
| 179 |
+
@misc{babelfish2026,
|
| 180 |
+
title = {Babelfish: Low-Latency Streaming Simultaneous Speech Translation between English and Chinese},
|
| 181 |
+
author = {Shiyang Deng and Nanjie Li and Xiaoyong Guo and Haihua Xu and Wei Shi and Hao Huang and Xiansu Deng and Jun Guo and Yuanming Luo and Wangzheng Wu},
|
| 182 |
+
year = {2026},
|
| 183 |
+
url = {https://github.com/timekettle/Babelfish-SimulST}
|
| 184 |
+
}
|
| 185 |
+
```
|
Babelfish-30B-A3B-FP8/chat_template.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {%- if messages[0].content is string %}\n {{- messages[0].content }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {{- \"<|vision_start|><|image_pad|><|vision_end|>\" }}\n {%- elif content.type == 'audio' or 'audio' in content or 'audio_url' in content %}\n {{- \"<|audio_start|><|audio_pad|><|audio_end|>\" }}\n {%- elif content.type == 'video' or 'video' in content %}\n {{- \"<|vision_start|><|video_pad|><|vision_end|>\" }}\n {%- elif content.type == 'text' %}\n {{- content.text }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {%- endif %}\n {{- '\\n\\n' }}\n {{- \"# 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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- if messages[0].content is string %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- else %}\n {%- for content in messages[0].content %}\n {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}\n {{- '<|im_start|>system\\n' +\"<|vision_start|><|image_pad|><|vision_end|>\"+ '<|im_end|>\\n' }}\n {%- elif content.type == 'audio' or 'audio' in content or 'audio_url' in content %}\n {{- '<|im_start|>system\\n' +\"<|audio_start|><|audio_pad|><|audio_end|>\"+ '<|im_end|>\\n' }}\n {%- elif content.type == 'video' or 'video' in content %}\n {{- '<|im_start|>system\\n' +\"<|vision_start|><|video_pad|><|vision_end|>\"+ '<|im_end|>\\n' }}\n {%- elif content.type == 'text' %}\n {{- '<|im_start|>system\\n' +content.text+ '<|im_end|>\\n' }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- 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>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = namespace(text=\"\") %}\n {%- for mcontent in message.content %}\n {%- if mcontent.type == 'image' or 'image' in mcontent or 'image_url' in mcontent %}\n {%- set content.text = content.text~\"<|vision_start|><|image_pad|><|vision_end|>\" %}\n {%- elif mcontent.type == 'audio' or 'audio' in mcontent or 'audio_url' in mcontent %}\n {%- set content.text = content.text~\"<|audio_start|><|audio_pad|><|audio_end|>\" %}\n {%- elif mcontent.type == 'video' or 'video' in mcontent %}\n {%- set content.text = content.text~\"<|vision_start|><|video_pad|><|vision_end|>\" %}\n {%- elif mcontent.type == 'text' %}\n {%- set content.text = content.text~mcontent.text %}\n {%- endif %}\n {%- endfor %}\n {%- set content = content.text %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = \"\" %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip(\"\\n\") + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}{{- '\\n' }}{%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}{{- '<|im_start|>user' }}{%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}{{- '<|im_end|>\\n' }}{%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}{{- '<think>\\n\\n</think>\\n\\n' }}{%- endif %}\n{%- endif %}"}
|
Babelfish-30B-A3B-FP8/config.json
ADDED
|
@@ -0,0 +1,546 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3OmniMoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"assistant_token_id": 77091,
|
| 6 |
+
"dtype": "float16",
|
| 7 |
+
"enable_audio_output": false,
|
| 8 |
+
"im_end_token_id": 151645,
|
| 9 |
+
"im_start_token_id": 151644,
|
| 10 |
+
"model_type": "qwen3_omni_moe",
|
| 11 |
+
"system_token_id": 8948,
|
| 12 |
+
"thinker_config": {
|
| 13 |
+
"audio_config": {
|
| 14 |
+
"_name_or_path": "",
|
| 15 |
+
"activation_dropout": 0,
|
| 16 |
+
"activation_function": "gelu",
|
| 17 |
+
"add_cross_attention": false,
|
| 18 |
+
"architectures": null,
|
| 19 |
+
"attention_dropout": 0,
|
| 20 |
+
"bad_words_ids": null,
|
| 21 |
+
"begin_suppress_tokens": null,
|
| 22 |
+
"bos_token_id": null,
|
| 23 |
+
"chunk_size_feed_forward": 0,
|
| 24 |
+
"conv_chunksize": 500,
|
| 25 |
+
"cross_attention_hidden_size": null,
|
| 26 |
+
"d_model": 1280,
|
| 27 |
+
"decoder_start_token_id": null,
|
| 28 |
+
"diversity_penalty": 0.0,
|
| 29 |
+
"do_sample": false,
|
| 30 |
+
"downsample_hidden_size": 480,
|
| 31 |
+
"dropout": 0,
|
| 32 |
+
"dtype": null,
|
| 33 |
+
"early_stopping": false,
|
| 34 |
+
"encoder_attention_heads": 20,
|
| 35 |
+
"encoder_ffn_dim": 5120,
|
| 36 |
+
"encoder_layers": 32,
|
| 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 |
+
"id2label": {
|
| 44 |
+
"0": "LABEL_0",
|
| 45 |
+
"1": "LABEL_1"
|
| 46 |
+
},
|
| 47 |
+
"initializer_range": 0.02,
|
| 48 |
+
"is_decoder": false,
|
| 49 |
+
"is_encoder_decoder": false,
|
| 50 |
+
"label2id": {
|
| 51 |
+
"LABEL_0": 0,
|
| 52 |
+
"LABEL_1": 1
|
| 53 |
+
},
|
| 54 |
+
"length_penalty": 1.0,
|
| 55 |
+
"max_length": 20,
|
| 56 |
+
"max_source_positions": 1500,
|
| 57 |
+
"min_length": 0,
|
| 58 |
+
"model_type": "qwen3_omni_moe_audio_encoder",
|
| 59 |
+
"n_window": 50,
|
| 60 |
+
"n_window_infer": 800,
|
| 61 |
+
"no_repeat_ngram_size": 0,
|
| 62 |
+
"num_beam_groups": 1,
|
| 63 |
+
"num_beams": 1,
|
| 64 |
+
"num_hidden_layers": 32,
|
| 65 |
+
"num_mel_bins": 128,
|
| 66 |
+
"num_return_sequences": 1,
|
| 67 |
+
"output_attentions": false,
|
| 68 |
+
"output_dim": 2048,
|
| 69 |
+
"output_hidden_states": false,
|
| 70 |
+
"output_scores": false,
|
| 71 |
+
"pad_token_id": null,
|
| 72 |
+
"prefix": null,
|
| 73 |
+
"problem_type": null,
|
| 74 |
+
"pruned_heads": {},
|
| 75 |
+
"remove_invalid_values": false,
|
| 76 |
+
"repetition_penalty": 1.0,
|
| 77 |
+
"return_dict": true,
|
| 78 |
+
"return_dict_in_generate": false,
|
| 79 |
+
"scale_embedding": false,
|
| 80 |
+
"sep_token_id": null,
|
| 81 |
+
"suppress_tokens": null,
|
| 82 |
+
"task_specific_params": null,
|
| 83 |
+
"temperature": 1.0,
|
| 84 |
+
"tf_legacy_loss": false,
|
| 85 |
+
"tie_encoder_decoder": false,
|
| 86 |
+
"tie_word_embeddings": true,
|
| 87 |
+
"tokenizer_class": null,
|
| 88 |
+
"top_k": 50,
|
| 89 |
+
"top_p": 1.0,
|
| 90 |
+
"torchscript": false,
|
| 91 |
+
"typical_p": 1.0,
|
| 92 |
+
"use_bfloat16": false
|
| 93 |
+
},
|
| 94 |
+
"audio_end_token_id": 151670,
|
| 95 |
+
"audio_start_token_id": 151669,
|
| 96 |
+
"audio_token_id": 151675,
|
| 97 |
+
"dtype": "float16",
|
| 98 |
+
"image_token_id": 151655,
|
| 99 |
+
"initializer_range": 0.02,
|
| 100 |
+
"model_type": "qwen3_omni_moe_thinker",
|
| 101 |
+
"position_id_per_seconds": 13,
|
| 102 |
+
"seconds_per_chunk": 2,
|
| 103 |
+
"text_config": {
|
| 104 |
+
"_name_or_path": "",
|
| 105 |
+
"add_cross_attention": false,
|
| 106 |
+
"architectures": null,
|
| 107 |
+
"attention_bias": false,
|
| 108 |
+
"attention_dropout": 0.0,
|
| 109 |
+
"bad_words_ids": null,
|
| 110 |
+
"begin_suppress_tokens": null,
|
| 111 |
+
"bos_token_id": null,
|
| 112 |
+
"chunk_size_feed_forward": 0,
|
| 113 |
+
"cross_attention_hidden_size": null,
|
| 114 |
+
"decoder_sparse_step": 1,
|
| 115 |
+
"decoder_start_token_id": null,
|
| 116 |
+
"diversity_penalty": 0.0,
|
| 117 |
+
"do_sample": false,
|
| 118 |
+
"dtype": null,
|
| 119 |
+
"early_stopping": false,
|
| 120 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 121 |
+
"eos_token_id": null,
|
| 122 |
+
"exponential_decay_length_penalty": null,
|
| 123 |
+
"finetuning_task": null,
|
| 124 |
+
"forced_bos_token_id": null,
|
| 125 |
+
"forced_eos_token_id": null,
|
| 126 |
+
"head_dim": 128,
|
| 127 |
+
"hidden_act": "silu",
|
| 128 |
+
"hidden_size": 2048,
|
| 129 |
+
"id2label": {
|
| 130 |
+
"0": "LABEL_0",
|
| 131 |
+
"1": "LABEL_1"
|
| 132 |
+
},
|
| 133 |
+
"initializer_range": 0.02,
|
| 134 |
+
"intermediate_size": 768,
|
| 135 |
+
"is_decoder": false,
|
| 136 |
+
"is_encoder_decoder": false,
|
| 137 |
+
"label2id": {
|
| 138 |
+
"LABEL_0": 0,
|
| 139 |
+
"LABEL_1": 1
|
| 140 |
+
},
|
| 141 |
+
"length_penalty": 1.0,
|
| 142 |
+
"max_length": 20,
|
| 143 |
+
"max_position_embeddings": 65536,
|
| 144 |
+
"min_length": 0,
|
| 145 |
+
"mlp_only_layers": [],
|
| 146 |
+
"model_type": "qwen3_omni_moe_text",
|
| 147 |
+
"moe_intermediate_size": 768,
|
| 148 |
+
"no_repeat_ngram_size": 0,
|
| 149 |
+
"norm_topk_prob": true,
|
| 150 |
+
"num_attention_heads": 32,
|
| 151 |
+
"num_beam_groups": 1,
|
| 152 |
+
"num_beams": 1,
|
| 153 |
+
"num_experts": 128,
|
| 154 |
+
"num_experts_per_tok": 8,
|
| 155 |
+
"num_hidden_layers": 48,
|
| 156 |
+
"num_key_value_heads": 4,
|
| 157 |
+
"num_return_sequences": 1,
|
| 158 |
+
"output_attentions": false,
|
| 159 |
+
"output_hidden_states": false,
|
| 160 |
+
"output_router_logits": false,
|
| 161 |
+
"output_scores": false,
|
| 162 |
+
"pad_token_id": null,
|
| 163 |
+
"prefix": null,
|
| 164 |
+
"problem_type": null,
|
| 165 |
+
"pruned_heads": {},
|
| 166 |
+
"remove_invalid_values": false,
|
| 167 |
+
"repetition_penalty": 1.0,
|
| 168 |
+
"return_dict": true,
|
| 169 |
+
"return_dict_in_generate": false,
|
| 170 |
+
"rms_norm_eps": 1e-06,
|
| 171 |
+
"rope_scaling": {
|
| 172 |
+
"interleaved": true,
|
| 173 |
+
"mrope_interleaved": true,
|
| 174 |
+
"mrope_section": [
|
| 175 |
+
24,
|
| 176 |
+
20,
|
| 177 |
+
20
|
| 178 |
+
],
|
| 179 |
+
"rope_type": "default",
|
| 180 |
+
"type": "default"
|
| 181 |
+
},
|
| 182 |
+
"rope_theta": 1000000,
|
| 183 |
+
"router_aux_loss_coef": 0.001,
|
| 184 |
+
"sep_token_id": null,
|
| 185 |
+
"shared_expert_intermediate_size": 0,
|
| 186 |
+
"sliding_window": null,
|
| 187 |
+
"suppress_tokens": null,
|
| 188 |
+
"task_specific_params": null,
|
| 189 |
+
"temperature": 1.0,
|
| 190 |
+
"tf_legacy_loss": false,
|
| 191 |
+
"tie_encoder_decoder": false,
|
| 192 |
+
"tie_word_embeddings": false,
|
| 193 |
+
"tokenizer_class": null,
|
| 194 |
+
"top_k": 50,
|
| 195 |
+
"top_p": 1.0,
|
| 196 |
+
"torchscript": false,
|
| 197 |
+
"typical_p": 1.0,
|
| 198 |
+
"use_bfloat16": false,
|
| 199 |
+
"use_cache": true,
|
| 200 |
+
"use_qk_norm": true,
|
| 201 |
+
"use_sliding_window": false,
|
| 202 |
+
"vocab_size": 152064
|
| 203 |
+
},
|
| 204 |
+
"user_token_id": 872,
|
| 205 |
+
"video_token_id": 151656,
|
| 206 |
+
"vision_config": {
|
| 207 |
+
"_name_or_path": "",
|
| 208 |
+
"add_cross_attention": false,
|
| 209 |
+
"apply_vit_abs_pos_embed": true,
|
| 210 |
+
"architectures": null,
|
| 211 |
+
"bad_words_ids": null,
|
| 212 |
+
"begin_suppress_tokens": null,
|
| 213 |
+
"bos_token_id": null,
|
| 214 |
+
"chunk_size_feed_forward": 0,
|
| 215 |
+
"cross_attention_hidden_size": null,
|
| 216 |
+
"decoder_start_token_id": null,
|
| 217 |
+
"deepstack_visual_indexes": [],
|
| 218 |
+
"depth": 27,
|
| 219 |
+
"diversity_penalty": 0.0,
|
| 220 |
+
"do_sample": false,
|
| 221 |
+
"dtype": null,
|
| 222 |
+
"early_stopping": false,
|
| 223 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 224 |
+
"eos_token_id": null,
|
| 225 |
+
"exponential_decay_length_penalty": null,
|
| 226 |
+
"finetuning_task": null,
|
| 227 |
+
"forced_bos_token_id": null,
|
| 228 |
+
"forced_eos_token_id": null,
|
| 229 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 230 |
+
"hidden_size": 1152,
|
| 231 |
+
"id2label": {
|
| 232 |
+
"0": "LABEL_0",
|
| 233 |
+
"1": "LABEL_1"
|
| 234 |
+
},
|
| 235 |
+
"image_size": 768,
|
| 236 |
+
"in_channels": 3,
|
| 237 |
+
"in_chans": 3,
|
| 238 |
+
"initializer_range": 0.02,
|
| 239 |
+
"intermediate_size": 4304,
|
| 240 |
+
"is_decoder": false,
|
| 241 |
+
"is_encoder_decoder": false,
|
| 242 |
+
"label2id": {
|
| 243 |
+
"LABEL_0": 0,
|
| 244 |
+
"LABEL_1": 1
|
| 245 |
+
},
|
| 246 |
+
"length_penalty": 1.0,
|
| 247 |
+
"max_length": 20,
|
| 248 |
+
"min_length": 0,
|
| 249 |
+
"model_type": "qwen3_omni_moe_vision_encoder",
|
| 250 |
+
"no_repeat_ngram_size": 0,
|
| 251 |
+
"num_beam_groups": 1,
|
| 252 |
+
"num_beams": 1,
|
| 253 |
+
"num_heads": 16,
|
| 254 |
+
"num_return_sequences": 1,
|
| 255 |
+
"out_hidden_size": 2048,
|
| 256 |
+
"output_attentions": false,
|
| 257 |
+
"output_hidden_states": false,
|
| 258 |
+
"output_scores": false,
|
| 259 |
+
"pad_token_id": null,
|
| 260 |
+
"patch_size": 16,
|
| 261 |
+
"prefix": null,
|
| 262 |
+
"problem_type": null,
|
| 263 |
+
"pruned_heads": {},
|
| 264 |
+
"remove_invalid_values": false,
|
| 265 |
+
"repetition_penalty": 1.0,
|
| 266 |
+
"return_dict": true,
|
| 267 |
+
"return_dict_in_generate": false,
|
| 268 |
+
"sep_token_id": null,
|
| 269 |
+
"spatial_merge_size": 2,
|
| 270 |
+
"spatial_patch_size": 16,
|
| 271 |
+
"suppress_tokens": null,
|
| 272 |
+
"task_specific_params": null,
|
| 273 |
+
"temperature": 1.0,
|
| 274 |
+
"temporal_patch_size": 2,
|
| 275 |
+
"tf_legacy_loss": false,
|
| 276 |
+
"tie_encoder_decoder": false,
|
| 277 |
+
"tie_word_embeddings": true,
|
| 278 |
+
"tokenizer_class": null,
|
| 279 |
+
"tokens_per_second": 2,
|
| 280 |
+
"top_k": 50,
|
| 281 |
+
"top_p": 1.0,
|
| 282 |
+
"torchscript": false,
|
| 283 |
+
"typical_p": 1.0,
|
| 284 |
+
"use_bfloat16": false
|
| 285 |
+
},
|
| 286 |
+
"vision_end_token_id": 151653,
|
| 287 |
+
"vision_start_token_id": 151652
|
| 288 |
+
},
|
| 289 |
+
"transformers_version": "4.57.0.dev0",
|
| 290 |
+
"user_token_id": 872,
|
| 291 |
+
"quantization_config": {
|
| 292 |
+
"quant_method": "fp8",
|
| 293 |
+
"fmt": "e4m3",
|
| 294 |
+
"activation_scheme": "dynamic",
|
| 295 |
+
"weight_block_size": [
|
| 296 |
+
128,
|
| 297 |
+
128
|
| 298 |
+
],
|
| 299 |
+
"ignored_layers": [
|
| 300 |
+
"thinker.audio_tower.conv_out",
|
| 301 |
+
"thinker.audio_tower.layers.0.fc1",
|
| 302 |
+
"thinker.audio_tower.layers.0.fc2",
|
| 303 |
+
"thinker.audio_tower.layers.0.self_attn.k_proj",
|
| 304 |
+
"thinker.audio_tower.layers.0.self_attn.out_proj",
|
| 305 |
+
"thinker.audio_tower.layers.0.self_attn.q_proj",
|
| 306 |
+
"thinker.audio_tower.layers.0.self_attn.v_proj",
|
| 307 |
+
"thinker.audio_tower.layers.1.fc1",
|
| 308 |
+
"thinker.audio_tower.layers.1.fc2",
|
| 309 |
+
"thinker.audio_tower.layers.1.self_attn.k_proj",
|
| 310 |
+
"thinker.audio_tower.layers.1.self_attn.out_proj",
|
| 311 |
+
"thinker.audio_tower.layers.1.self_attn.q_proj",
|
| 312 |
+
"thinker.audio_tower.layers.1.self_attn.v_proj",
|
| 313 |
+
"thinker.audio_tower.layers.10.fc1",
|
| 314 |
+
"thinker.audio_tower.layers.10.fc2",
|
| 315 |
+
"thinker.audio_tower.layers.10.self_attn.k_proj",
|
| 316 |
+
"thinker.audio_tower.layers.10.self_attn.out_proj",
|
| 317 |
+
"thinker.audio_tower.layers.10.self_attn.q_proj",
|
| 318 |
+
"thinker.audio_tower.layers.10.self_attn.v_proj",
|
| 319 |
+
"thinker.audio_tower.layers.11.fc1",
|
| 320 |
+
"thinker.audio_tower.layers.11.fc2",
|
| 321 |
+
"thinker.audio_tower.layers.11.self_attn.k_proj",
|
| 322 |
+
"thinker.audio_tower.layers.11.self_attn.out_proj",
|
| 323 |
+
"thinker.audio_tower.layers.11.self_attn.q_proj",
|
| 324 |
+
"thinker.audio_tower.layers.11.self_attn.v_proj",
|
| 325 |
+
"thinker.audio_tower.layers.12.fc1",
|
| 326 |
+
"thinker.audio_tower.layers.12.fc2",
|
| 327 |
+
"thinker.audio_tower.layers.12.self_attn.k_proj",
|
| 328 |
+
"thinker.audio_tower.layers.12.self_attn.out_proj",
|
| 329 |
+
"thinker.audio_tower.layers.12.self_attn.q_proj",
|
| 330 |
+
"thinker.audio_tower.layers.12.self_attn.v_proj",
|
| 331 |
+
"thinker.audio_tower.layers.13.fc1",
|
| 332 |
+
"thinker.audio_tower.layers.13.fc2",
|
| 333 |
+
"thinker.audio_tower.layers.13.self_attn.k_proj",
|
| 334 |
+
"thinker.audio_tower.layers.13.self_attn.out_proj",
|
| 335 |
+
"thinker.audio_tower.layers.13.self_attn.q_proj",
|
| 336 |
+
"thinker.audio_tower.layers.13.self_attn.v_proj",
|
| 337 |
+
"thinker.audio_tower.layers.14.fc1",
|
| 338 |
+
"thinker.audio_tower.layers.14.fc2",
|
| 339 |
+
"thinker.audio_tower.layers.14.self_attn.k_proj",
|
| 340 |
+
"thinker.audio_tower.layers.14.self_attn.out_proj",
|
| 341 |
+
"thinker.audio_tower.layers.14.self_attn.q_proj",
|
| 342 |
+
"thinker.audio_tower.layers.14.self_attn.v_proj",
|
| 343 |
+
"thinker.audio_tower.layers.15.fc1",
|
| 344 |
+
"thinker.audio_tower.layers.15.fc2",
|
| 345 |
+
"thinker.audio_tower.layers.15.self_attn.k_proj",
|
| 346 |
+
"thinker.audio_tower.layers.15.self_attn.out_proj",
|
| 347 |
+
"thinker.audio_tower.layers.15.self_attn.q_proj",
|
| 348 |
+
"thinker.audio_tower.layers.15.self_attn.v_proj",
|
| 349 |
+
"thinker.audio_tower.layers.16.fc1",
|
| 350 |
+
"thinker.audio_tower.layers.16.fc2",
|
| 351 |
+
"thinker.audio_tower.layers.16.self_attn.k_proj",
|
| 352 |
+
"thinker.audio_tower.layers.16.self_attn.out_proj",
|
| 353 |
+
"thinker.audio_tower.layers.16.self_attn.q_proj",
|
| 354 |
+
"thinker.audio_tower.layers.16.self_attn.v_proj",
|
| 355 |
+
"thinker.audio_tower.layers.17.fc1",
|
| 356 |
+
"thinker.audio_tower.layers.17.fc2",
|
| 357 |
+
"thinker.audio_tower.layers.17.self_attn.k_proj",
|
| 358 |
+
"thinker.audio_tower.layers.17.self_attn.out_proj",
|
| 359 |
+
"thinker.audio_tower.layers.17.self_attn.q_proj",
|
| 360 |
+
"thinker.audio_tower.layers.17.self_attn.v_proj",
|
| 361 |
+
"thinker.audio_tower.layers.18.fc1",
|
| 362 |
+
"thinker.audio_tower.layers.18.fc2",
|
| 363 |
+
"thinker.audio_tower.layers.18.self_attn.k_proj",
|
| 364 |
+
"thinker.audio_tower.layers.18.self_attn.out_proj",
|
| 365 |
+
"thinker.audio_tower.layers.18.self_attn.q_proj",
|
| 366 |
+
"thinker.audio_tower.layers.18.self_attn.v_proj",
|
| 367 |
+
"thinker.audio_tower.layers.19.fc1",
|
| 368 |
+
"thinker.audio_tower.layers.19.fc2",
|
| 369 |
+
"thinker.audio_tower.layers.19.self_attn.k_proj",
|
| 370 |
+
"thinker.audio_tower.layers.19.self_attn.out_proj",
|
| 371 |
+
"thinker.audio_tower.layers.19.self_attn.q_proj",
|
| 372 |
+
"thinker.audio_tower.layers.19.self_attn.v_proj",
|
| 373 |
+
"thinker.audio_tower.layers.2.fc1",
|
| 374 |
+
"thinker.audio_tower.layers.2.fc2",
|
| 375 |
+
"thinker.audio_tower.layers.2.self_attn.k_proj",
|
| 376 |
+
"thinker.audio_tower.layers.2.self_attn.out_proj",
|
| 377 |
+
"thinker.audio_tower.layers.2.self_attn.q_proj",
|
| 378 |
+
"thinker.audio_tower.layers.2.self_attn.v_proj",
|
| 379 |
+
"thinker.audio_tower.layers.20.fc1",
|
| 380 |
+
"thinker.audio_tower.layers.20.fc2",
|
| 381 |
+
"thinker.audio_tower.layers.20.self_attn.k_proj",
|
| 382 |
+
"thinker.audio_tower.layers.20.self_attn.out_proj",
|
| 383 |
+
"thinker.audio_tower.layers.20.self_attn.q_proj",
|
| 384 |
+
"thinker.audio_tower.layers.20.self_attn.v_proj",
|
| 385 |
+
"thinker.audio_tower.layers.21.fc1",
|
| 386 |
+
"thinker.audio_tower.layers.21.fc2",
|
| 387 |
+
"thinker.audio_tower.layers.21.self_attn.k_proj",
|
| 388 |
+
"thinker.audio_tower.layers.21.self_attn.out_proj",
|
| 389 |
+
"thinker.audio_tower.layers.21.self_attn.q_proj",
|
| 390 |
+
"thinker.audio_tower.layers.21.self_attn.v_proj",
|
| 391 |
+
"thinker.audio_tower.layers.22.fc1",
|
| 392 |
+
"thinker.audio_tower.layers.22.fc2",
|
| 393 |
+
"thinker.audio_tower.layers.22.self_attn.k_proj",
|
| 394 |
+
"thinker.audio_tower.layers.22.self_attn.out_proj",
|
| 395 |
+
"thinker.audio_tower.layers.22.self_attn.q_proj",
|
| 396 |
+
"thinker.audio_tower.layers.22.self_attn.v_proj",
|
| 397 |
+
"thinker.audio_tower.layers.23.fc1",
|
| 398 |
+
"thinker.audio_tower.layers.23.fc2",
|
| 399 |
+
"thinker.audio_tower.layers.23.self_attn.k_proj",
|
| 400 |
+
"thinker.audio_tower.layers.23.self_attn.out_proj",
|
| 401 |
+
"thinker.audio_tower.layers.23.self_attn.q_proj",
|
| 402 |
+
"thinker.audio_tower.layers.23.self_attn.v_proj",
|
| 403 |
+
"thinker.audio_tower.layers.24.fc1",
|
| 404 |
+
"thinker.audio_tower.layers.24.fc2",
|
| 405 |
+
"thinker.audio_tower.layers.24.self_attn.k_proj",
|
| 406 |
+
"thinker.audio_tower.layers.24.self_attn.out_proj",
|
| 407 |
+
"thinker.audio_tower.layers.24.self_attn.q_proj",
|
| 408 |
+
"thinker.audio_tower.layers.24.self_attn.v_proj",
|
| 409 |
+
"thinker.audio_tower.layers.25.fc1",
|
| 410 |
+
"thinker.audio_tower.layers.25.fc2",
|
| 411 |
+
"thinker.audio_tower.layers.25.self_attn.k_proj",
|
| 412 |
+
"thinker.audio_tower.layers.25.self_attn.out_proj",
|
| 413 |
+
"thinker.audio_tower.layers.25.self_attn.q_proj",
|
| 414 |
+
"thinker.audio_tower.layers.25.self_attn.v_proj",
|
| 415 |
+
"thinker.audio_tower.layers.26.fc1",
|
| 416 |
+
"thinker.audio_tower.layers.26.fc2",
|
| 417 |
+
"thinker.audio_tower.layers.26.self_attn.k_proj",
|
| 418 |
+
"thinker.audio_tower.layers.26.self_attn.out_proj",
|
| 419 |
+
"thinker.audio_tower.layers.26.self_attn.q_proj",
|
| 420 |
+
"thinker.audio_tower.layers.26.self_attn.v_proj",
|
| 421 |
+
"thinker.audio_tower.layers.27.fc1",
|
| 422 |
+
"thinker.audio_tower.layers.27.fc2",
|
| 423 |
+
"thinker.audio_tower.layers.27.self_attn.k_proj",
|
| 424 |
+
"thinker.audio_tower.layers.27.self_attn.out_proj",
|
| 425 |
+
"thinker.audio_tower.layers.27.self_attn.q_proj",
|
| 426 |
+
"thinker.audio_tower.layers.27.self_attn.v_proj",
|
| 427 |
+
"thinker.audio_tower.layers.28.fc1",
|
| 428 |
+
"thinker.audio_tower.layers.28.fc2",
|
| 429 |
+
"thinker.audio_tower.layers.28.self_attn.k_proj",
|
| 430 |
+
"thinker.audio_tower.layers.28.self_attn.out_proj",
|
| 431 |
+
"thinker.audio_tower.layers.28.self_attn.q_proj",
|
| 432 |
+
"thinker.audio_tower.layers.28.self_attn.v_proj",
|
| 433 |
+
"thinker.audio_tower.layers.29.fc1",
|
| 434 |
+
"thinker.audio_tower.layers.29.fc2",
|
| 435 |
+
"thinker.audio_tower.layers.29.self_attn.k_proj",
|
| 436 |
+
"thinker.audio_tower.layers.29.self_attn.out_proj",
|
| 437 |
+
"thinker.audio_tower.layers.29.self_attn.q_proj",
|
| 438 |
+
"thinker.audio_tower.layers.29.self_attn.v_proj",
|
| 439 |
+
"thinker.audio_tower.layers.3.fc1",
|
| 440 |
+
"thinker.audio_tower.layers.3.fc2",
|
| 441 |
+
"thinker.audio_tower.layers.3.self_attn.k_proj",
|
| 442 |
+
"thinker.audio_tower.layers.3.self_attn.out_proj",
|
| 443 |
+
"thinker.audio_tower.layers.3.self_attn.q_proj",
|
| 444 |
+
"thinker.audio_tower.layers.3.self_attn.v_proj",
|
| 445 |
+
"thinker.audio_tower.layers.30.fc1",
|
| 446 |
+
"thinker.audio_tower.layers.30.fc2",
|
| 447 |
+
"thinker.audio_tower.layers.30.self_attn.k_proj",
|
| 448 |
+
"thinker.audio_tower.layers.30.self_attn.out_proj",
|
| 449 |
+
"thinker.audio_tower.layers.30.self_attn.q_proj",
|
| 450 |
+
"thinker.audio_tower.layers.30.self_attn.v_proj",
|
| 451 |
+
"thinker.audio_tower.layers.31.fc1",
|
| 452 |
+
"thinker.audio_tower.layers.31.fc2",
|
| 453 |
+
"thinker.audio_tower.layers.31.self_attn.k_proj",
|
| 454 |
+
"thinker.audio_tower.layers.31.self_attn.out_proj",
|
| 455 |
+
"thinker.audio_tower.layers.31.self_attn.q_proj",
|
| 456 |
+
"thinker.audio_tower.layers.31.self_attn.v_proj",
|
| 457 |
+
"thinker.audio_tower.layers.4.fc1",
|
| 458 |
+
"thinker.audio_tower.layers.4.fc2",
|
| 459 |
+
"thinker.audio_tower.layers.4.self_attn.k_proj",
|
| 460 |
+
"thinker.audio_tower.layers.4.self_attn.out_proj",
|
| 461 |
+
"thinker.audio_tower.layers.4.self_attn.q_proj",
|
| 462 |
+
"thinker.audio_tower.layers.4.self_attn.v_proj",
|
| 463 |
+
"thinker.audio_tower.layers.5.fc1",
|
| 464 |
+
"thinker.audio_tower.layers.5.fc2",
|
| 465 |
+
"thinker.audio_tower.layers.5.self_attn.k_proj",
|
| 466 |
+
"thinker.audio_tower.layers.5.self_attn.out_proj",
|
| 467 |
+
"thinker.audio_tower.layers.5.self_attn.q_proj",
|
| 468 |
+
"thinker.audio_tower.layers.5.self_attn.v_proj",
|
| 469 |
+
"thinker.audio_tower.layers.6.fc1",
|
| 470 |
+
"thinker.audio_tower.layers.6.fc2",
|
| 471 |
+
"thinker.audio_tower.layers.6.self_attn.k_proj",
|
| 472 |
+
"thinker.audio_tower.layers.6.self_attn.out_proj",
|
| 473 |
+
"thinker.audio_tower.layers.6.self_attn.q_proj",
|
| 474 |
+
"thinker.audio_tower.layers.6.self_attn.v_proj",
|
| 475 |
+
"thinker.audio_tower.layers.7.fc1",
|
| 476 |
+
"thinker.audio_tower.layers.7.fc2",
|
| 477 |
+
"thinker.audio_tower.layers.7.self_attn.k_proj",
|
| 478 |
+
"thinker.audio_tower.layers.7.self_attn.out_proj",
|
| 479 |
+
"thinker.audio_tower.layers.7.self_attn.q_proj",
|
| 480 |
+
"thinker.audio_tower.layers.7.self_attn.v_proj",
|
| 481 |
+
"thinker.audio_tower.layers.8.fc1",
|
| 482 |
+
"thinker.audio_tower.layers.8.fc2",
|
| 483 |
+
"thinker.audio_tower.layers.8.self_attn.k_proj",
|
| 484 |
+
"thinker.audio_tower.layers.8.self_attn.out_proj",
|
| 485 |
+
"thinker.audio_tower.layers.8.self_attn.q_proj",
|
| 486 |
+
"thinker.audio_tower.layers.8.self_attn.v_proj",
|
| 487 |
+
"thinker.audio_tower.layers.9.fc1",
|
| 488 |
+
"thinker.audio_tower.layers.9.fc2",
|
| 489 |
+
"thinker.audio_tower.layers.9.self_attn.k_proj",
|
| 490 |
+
"thinker.audio_tower.layers.9.self_attn.out_proj",
|
| 491 |
+
"thinker.audio_tower.layers.9.self_attn.q_proj",
|
| 492 |
+
"thinker.audio_tower.layers.9.self_attn.v_proj",
|
| 493 |
+
"thinker.audio_tower.proj1",
|
| 494 |
+
"thinker.audio_tower.proj2",
|
| 495 |
+
"thinker.lm_head",
|
| 496 |
+
"thinker.model.layers.0.mlp.gate",
|
| 497 |
+
"thinker.model.layers.1.mlp.gate",
|
| 498 |
+
"thinker.model.layers.10.mlp.gate",
|
| 499 |
+
"thinker.model.layers.11.mlp.gate",
|
| 500 |
+
"thinker.model.layers.12.mlp.gate",
|
| 501 |
+
"thinker.model.layers.13.mlp.gate",
|
| 502 |
+
"thinker.model.layers.14.mlp.gate",
|
| 503 |
+
"thinker.model.layers.15.mlp.gate",
|
| 504 |
+
"thinker.model.layers.16.mlp.gate",
|
| 505 |
+
"thinker.model.layers.17.mlp.gate",
|
| 506 |
+
"thinker.model.layers.18.mlp.gate",
|
| 507 |
+
"thinker.model.layers.19.mlp.gate",
|
| 508 |
+
"thinker.model.layers.2.mlp.gate",
|
| 509 |
+
"thinker.model.layers.20.mlp.gate",
|
| 510 |
+
"thinker.model.layers.21.mlp.gate",
|
| 511 |
+
"thinker.model.layers.22.mlp.gate",
|
| 512 |
+
"thinker.model.layers.23.mlp.gate",
|
| 513 |
+
"thinker.model.layers.24.mlp.gate",
|
| 514 |
+
"thinker.model.layers.25.mlp.gate",
|
| 515 |
+
"thinker.model.layers.26.mlp.gate",
|
| 516 |
+
"thinker.model.layers.27.mlp.gate",
|
| 517 |
+
"thinker.model.layers.28.mlp.gate",
|
| 518 |
+
"thinker.model.layers.29.mlp.gate",
|
| 519 |
+
"thinker.model.layers.3.mlp.gate",
|
| 520 |
+
"thinker.model.layers.30.mlp.gate",
|
| 521 |
+
"thinker.model.layers.31.mlp.gate",
|
| 522 |
+
"thinker.model.layers.32.mlp.gate",
|
| 523 |
+
"thinker.model.layers.33.mlp.gate",
|
| 524 |
+
"thinker.model.layers.34.mlp.gate",
|
| 525 |
+
"thinker.model.layers.35.mlp.gate",
|
| 526 |
+
"thinker.model.layers.36.mlp.gate",
|
| 527 |
+
"thinker.model.layers.37.mlp.gate",
|
| 528 |
+
"thinker.model.layers.38.mlp.gate",
|
| 529 |
+
"thinker.model.layers.39.mlp.gate",
|
| 530 |
+
"thinker.model.layers.4.mlp.gate",
|
| 531 |
+
"thinker.model.layers.40.mlp.gate",
|
| 532 |
+
"thinker.model.layers.41.mlp.gate",
|
| 533 |
+
"thinker.model.layers.42.mlp.gate",
|
| 534 |
+
"thinker.model.layers.43.mlp.gate",
|
| 535 |
+
"thinker.model.layers.44.mlp.gate",
|
| 536 |
+
"thinker.model.layers.45.mlp.gate",
|
| 537 |
+
"thinker.model.layers.46.mlp.gate",
|
| 538 |
+
"thinker.model.layers.47.mlp.gate",
|
| 539 |
+
"thinker.model.layers.5.mlp.gate",
|
| 540 |
+
"thinker.model.layers.6.mlp.gate",
|
| 541 |
+
"thinker.model.layers.7.mlp.gate",
|
| 542 |
+
"thinker.model.layers.8.mlp.gate",
|
| 543 |
+
"thinker.model.layers.9.mlp.gate"
|
| 544 |
+
]
|
| 545 |
+
}
|
| 546 |
+
}
|
Babelfish-30B-A3B-FP8/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Babelfish-30B-A3B-FP8/model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Babelfish-30B-A3B-FP8/preprocessor_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dither": 0.0,
|
| 3 |
+
"feature_extractor_type": "WhisperFeatureExtractor",
|
| 4 |
+
"feature_size": 128,
|
| 5 |
+
"hop_length": 160,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"max_pixels": 12845056,
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"min_pixels": 3136,
|
| 20 |
+
"n_fft": 400,
|
| 21 |
+
"n_samples": 4800000,
|
| 22 |
+
"nb_max_frames": 30000,
|
| 23 |
+
"padding_side": "right",
|
| 24 |
+
"padding_value": 0.0,
|
| 25 |
+
"patch_size": 16,
|
| 26 |
+
"processor_class": "Qwen3OmniMoeProcessor",
|
| 27 |
+
"return_attention_mask": true,
|
| 28 |
+
"sampling_rate": 16000,
|
| 29 |
+
"temporal_patch_size": 2
|
| 30 |
+
}
|
Babelfish-30B-A3B-FP8/tokenizer_config.json
ADDED
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"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 |
+
}
|
Babelfish-30B-A3B-FP8/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|