Image-Text-to-Text
Transformers
Safetensors
Spanish
English
qwen4_exp
sysadmin
opencode
linux
vllm
exl3
exllamav3
qtip
Mixture of Experts
swift
qwen3_8
mtp
speculative-decoding
long-context
vision
96gb
rtx-pro-6000
conversational
Instructions to use JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB") model = AutoModelForMultimodalLM.from_pretrained("JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB
- SGLang
How to use JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB with Docker Model Runner:
docker model run hf.co/JRamirez-UAB/Swift-1.5-Qwen3.8-Flash-Next-EXL3-3.75bpw-96GB
Add files using upload-large-folder tool
Browse files- .gitattributes +5 -0
- LICENSE +233 -0
- LICENSE-QWEN +16 -0
- NOTICE +23 -0
- chat_template.jinja +170 -0
- config.json +168 -0
- generation_config.json +12 -0
- merges.txt +0 -0
- model-00001-of-00008.safetensors +3 -0
- model-00002-of-00008.safetensors +3 -0
- model-00003-of-00008.safetensors +3 -0
- model-00004-of-00008.safetensors +3 -0
- model-00005-of-00008.safetensors +3 -0
- model-00006-of-00008.safetensors +3 -0
- model-00007-of-00008.safetensors +3 -0
- model-00008-of-00008.safetensors +3 -0
- model.safetensors.index.json +3 -0
- ngram_embedding.safetensors +3 -0
- preprocessor_config.json +21 -0
- quantization_config.json +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +32 -0
- video_preprocessor_config.json +21 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
ukisai-banner.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
swift-1.5-flash-next-demo.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
quantization_config.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Swift Open License v1.0
|
| 2 |
+
|
| 3 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 4 |
+
|
| 5 |
+
1. Definitions.
|
| 6 |
+
|
| 7 |
+
"License" shall mean the terms and conditions for use, reproduction, and
|
| 8 |
+
distribution as defined by this document.
|
| 9 |
+
|
| 10 |
+
"Licensor" shall mean UkisAI.
|
| 11 |
+
|
| 12 |
+
"Legal Entity" shall mean the union of the acting entity and all other entities
|
| 13 |
+
that control, are controlled by, or are under common control with that entity.
|
| 14 |
+
For the purposes of this definition, "control" means (i) the power, direct or
|
| 15 |
+
indirect, to cause the direction or management of such entity, whether by
|
| 16 |
+
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 17 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 18 |
+
|
| 19 |
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
| 20 |
+
permissions granted by this License.
|
| 21 |
+
|
| 22 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 23 |
+
including but not limited to software source code, documentation source,
|
| 24 |
+
configuration files, and model weights in an unquantized, trainable format.
|
| 25 |
+
|
| 26 |
+
"Object" form shall mean any form resulting from mechanical transformation or
|
| 27 |
+
translation of a Source form, including but not limited to compiled object
|
| 28 |
+
code, generated documentation, quantized or otherwise converted model weights,
|
| 29 |
+
and conversions to other media types or file formats.
|
| 30 |
+
|
| 31 |
+
"Base Model" shall mean the Qwen3.8-Flash-Next model, Copyright (c) 2026 Qwen,
|
| 32 |
+
made available at https://huggingface.co/Qwen/Qwen3.8-Flash-Next, including its
|
| 33 |
+
weights, configuration, tokenizer, and chat template, in any form.
|
| 34 |
+
|
| 35 |
+
"Base Model License" shall mean the Qwen Community License 1.0, under which
|
| 36 |
+
the Base Model is made available. A copy is distributed with the Work in the
|
| 37 |
+
file LICENSE-QWEN.
|
| 38 |
+
|
| 39 |
+
"Swift Contribution" shall mean the modifications to the Base Model authored
|
| 40 |
+
by Licensor, in any form, including without limitation trained weight adapters,
|
| 41 |
+
weight deltas, model weights to the extent they differ from the Base Model, and
|
| 42 |
+
any configuration, documentation, and evaluation materials created by Licensor
|
| 43 |
+
and distributed with the Work.
|
| 44 |
+
|
| 45 |
+
"Work" shall mean the Swift Contribution together with, to the extent of
|
| 46 |
+
Licensor's rights therein, the Derivative Work of the Base Model made available
|
| 47 |
+
by Licensor under this License (as indicated by a copyright notice that is
|
| 48 |
+
included in or attached to the work), in any format made available by Licensor.
|
| 49 |
+
|
| 50 |
+
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
| 51 |
+
is based on (or derived from) the Work and for which the editorial revisions,
|
| 52 |
+
annotations, elaborations, or other modifications represent, as a whole, an
|
| 53 |
+
original work of authorship. For the purposes of this License, Derivative Works
|
| 54 |
+
shall not include works that remain separable from, or merely link (or bind by
|
| 55 |
+
name) to the interfaces of, the Work and Derivative Works thereof.
|
| 56 |
+
|
| 57 |
+
"Contribution" shall mean any work of authorship, including the original
|
| 58 |
+
version of the Work and any modifications or additions to that Work or
|
| 59 |
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
| 60 |
+
inclusion in the Work by the copyright owner or by an individual or Legal
|
| 61 |
+
Entity authorized to submit on behalf of the copyright owner. For the purposes
|
| 62 |
+
of this definition, "submitted" means any form of electronic, verbal, or
|
| 63 |
+
written communication sent to the Licensor or its representatives, including
|
| 64 |
+
but not limited to communication on electronic mailing lists, source code
|
| 65 |
+
control systems, and issue tracking systems that are managed by, or on behalf
|
| 66 |
+
of, the Licensor for the purpose of discussing and improving the Work, but
|
| 67 |
+
excluding communication that is conspicuously marked or otherwise designated in
|
| 68 |
+
writing by the copyright owner as "Not a Contribution."
|
| 69 |
+
|
| 70 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
| 71 |
+
of whom a Contribution has been received by Licensor and subsequently
|
| 72 |
+
incorporated within the Work.
|
| 73 |
+
|
| 74 |
+
"Commercial Use" shall mean any use of the Work or a Derivative Work for direct
|
| 75 |
+
or indirect commercial advantage or monetary compensation.
|
| 76 |
+
|
| 77 |
+
"Qualified Non-Profit Organization" shall mean a Legal Entity that is organized
|
| 78 |
+
and operated exclusively for religious, charitable, scientific, testing for
|
| 79 |
+
public safety, literary, or educational purposes, and which is exempt from
|
| 80 |
+
federal income tax under Section 501(c)(3) of the United States Internal
|
| 81 |
+
Revenue Code of 1986, as amended, or any equivalent non-profit or charitable
|
| 82 |
+
organization in a foreign jurisdiction.
|
| 83 |
+
|
| 84 |
+
"Non-Commercial or Research Purposes" shall mean purposes that do not involve
|
| 85 |
+
any use of the Work or a Derivative Work for Commercial Use.
|
| 86 |
+
|
| 87 |
+
"Threshold" shall mean gross revenue of one million United States dollars
|
| 88 |
+
(US$1,000,000) or more, measured over the most recently completed fiscal year
|
| 89 |
+
of You together with every Legal Entity that controls, is controlled by, or is
|
| 90 |
+
under common control with You.
|
| 91 |
+
|
| 92 |
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
| 93 |
+
License, including the Commercial Use limitation set forth in Section 5, each
|
| 94 |
+
Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
|
| 95 |
+
no-charge, royalty-free, irrevocable copyright license to reproduce, prepare
|
| 96 |
+
Derivative Works of, publicly display, publicly perform, sublicense, and
|
| 97 |
+
distribute the Work and such Derivative Works in Source or Object form.
|
| 98 |
+
|
| 99 |
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
| 100 |
+
License, including the Commercial Use limitation set forth in Section 5, each
|
| 101 |
+
Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
|
| 102 |
+
no-charge, royalty-free, irrevocable (except as stated in this section) patent
|
| 103 |
+
license to make, have made, use, offer to sell, sell, import, and otherwise
|
| 104 |
+
transfer the Work, where such license applies only to those patent claims
|
| 105 |
+
licensable by such Contributor that are necessarily infringed by their
|
| 106 |
+
Contribution(s) alone or by combination of their Contribution(s) with the Work
|
| 107 |
+
to which such Contribution(s) was submitted. If You institute patent litigation
|
| 108 |
+
against any entity (including a cross-claim or counterclaim in a lawsuit)
|
| 109 |
+
alleging that the Work or a Contribution incorporated within the Work
|
| 110 |
+
constitutes direct or contributory patent infringement, then any patent
|
| 111 |
+
licenses granted to You under this License for that Work shall terminate as of
|
| 112 |
+
the date such litigation is filed.
|
| 113 |
+
|
| 114 |
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
| 115 |
+
Derivative Works thereof in any medium, with or without modifications, and in
|
| 116 |
+
Source or Object form, provided that You meet the following conditions:
|
| 117 |
+
|
| 118 |
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
| 119 |
+
of this License; and
|
| 120 |
+
|
| 121 |
+
(b) You must cause any modified files to carry prominent notices stating that
|
| 122 |
+
You changed the files; and
|
| 123 |
+
|
| 124 |
+
(c) You must retain, in the Source form of any Derivative Works that You
|
| 125 |
+
distribute, all copyright, patent, trademark, and attribution notices from the
|
| 126 |
+
Source form of the Work, excluding those notices that do not pertain to any
|
| 127 |
+
part of the Derivative Works; and
|
| 128 |
+
|
| 129 |
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
| 130 |
+
any Derivative Works that You distribute must include a readable copy of the
|
| 131 |
+
attribution notices contained within such NOTICE file, excluding those notices
|
| 132 |
+
that do not pertain to any part of the Derivative Works, in at least one of the
|
| 133 |
+
following places: within a NOTICE text file distributed as part of the
|
| 134 |
+
Derivative Works; within the Source form or documentation, if provided along
|
| 135 |
+
with the Derivative Works; or, within a display generated by the Derivative
|
| 136 |
+
Works, if and wherever such third-party notices normally appear. The contents
|
| 137 |
+
of the NOTICE file are for informational purposes only and do not modify the
|
| 138 |
+
License. You may add Your own attribution notices within Derivative Works that
|
| 139 |
+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
| 140 |
+
provided that such additional attribution notices cannot be construed as
|
| 141 |
+
modifying the License; and
|
| 142 |
+
|
| 143 |
+
(e) If the copy You distribute contains any portion of the Base Model
|
| 144 |
+
(including merged, quantized, or otherwise converted weights that incorporate
|
| 145 |
+
the Base Model), You must also give recipients a copy of the Base Model License
|
| 146 |
+
and must comply with the Base Model License with respect to the Base Model.
|
| 147 |
+
|
| 148 |
+
You may add Your own copyright statement to Your modifications and may provide
|
| 149 |
+
additional or different license terms and conditions for use, reproduction, or
|
| 150 |
+
distribution of Your modifications, or for any such Derivative Works as a
|
| 151 |
+
whole, provided Your use, reproduction, and distribution of the Work otherwise
|
| 152 |
+
complies with the conditions stated in this License, and provided that Section
|
| 153 |
+
5 continues to apply to the Swift Contribution contained in any such Derivative
|
| 154 |
+
Works.
|
| 155 |
+
|
| 156 |
+
5. Commercial Use Limitation.
|
| 157 |
+
|
| 158 |
+
(a) The rights granted under this License for Commercial Use are conditioned
|
| 159 |
+
upon You or Your Legal Entity not exceeding the Threshold.
|
| 160 |
+
|
| 161 |
+
(b) Any Commercial Use of the Work or a Derivative Work by a Legal Entity that
|
| 162 |
+
exceeds the Threshold is not licensed under this License.
|
| 163 |
+
|
| 164 |
+
(c) The Threshold shall not apply to a Qualified Non-Profit Organization's use
|
| 165 |
+
of the Work or a Derivative Work for Non-Commercial or Research Purposes.
|
| 166 |
+
|
| 167 |
+
(d) A Legal Entity that exceeds the Threshold may obtain a separate written
|
| 168 |
+
license for Commercial Use from Licensor (the "Swift Enterprise License").
|
| 169 |
+
Contact: https://ukisai.com/contact.
|
| 170 |
+
|
| 171 |
+
6. Base Model Rights. The Work incorporates the Base Model. Nothing in this
|
| 172 |
+
License limits, restricts, conditions, or modifies any rights You have in the
|
| 173 |
+
Base Model under the Base Model License, and the Base Model remains available
|
| 174 |
+
to You from its licensor under the Base Model License. Sections 5 and 12 of
|
| 175 |
+
this License apply solely to the Swift Contribution and to the Work or any
|
| 176 |
+
Derivative Work to the extent it contains, incorporates, or is derived from the
|
| 177 |
+
Swift Contribution.
|
| 178 |
+
|
| 179 |
+
7. Submission of Contributions. Unless You explicitly state otherwise, any
|
| 180 |
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
| 181 |
+
Licensor shall be under the terms and conditions of this License, without any
|
| 182 |
+
additional terms or conditions. Notwithstanding the above, nothing herein shall
|
| 183 |
+
supersede or modify the terms of any separate license agreement you may have
|
| 184 |
+
executed with Licensor regarding such Contributions.
|
| 185 |
+
|
| 186 |
+
8. Trademarks. This License does not grant permission to use the trade names,
|
| 187 |
+
trademarks, service marks, or product names of the Licensor (including "UkisAI"
|
| 188 |
+
and "Swift"), except for the reasonable and customary use in describing the
|
| 189 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 190 |
+
|
| 191 |
+
9. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
| 192 |
+
writing, Licensor provides the Work (and each Contributor provides its
|
| 193 |
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 194 |
+
KIND, either express or implied, including, without limitation, any warranties
|
| 195 |
+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 196 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 197 |
+
appropriateness of using or redistributing the Work and assume any risks
|
| 198 |
+
associated with Your exercise of permissions under this License.
|
| 199 |
+
|
| 200 |
+
10. Limitation of Liability. In no event and under no legal theory, whether in
|
| 201 |
+
tort (including negligence), contract, or otherwise, unless required by
|
| 202 |
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
| 203 |
+
writing, shall any Contributor be liable to You for damages, including any
|
| 204 |
+
direct, indirect, special, incidental, or consequential damages of any
|
| 205 |
+
character arising as a result of this License or out of the use or inability
|
| 206 |
+
to use the Work (including but not limited to damages for loss of goodwill,
|
| 207 |
+
work stoppage, computer failure or malfunction, or any and all other commercial
|
| 208 |
+
damages or losses), even if such Contributor has been advised of the
|
| 209 |
+
possibility of such damages.
|
| 210 |
+
|
| 211 |
+
11. Accepting Warranty or Additional Liability. While redistributing the Work
|
| 212 |
+
or Derivative Works thereof, You may choose to offer, and charge a fee for,
|
| 213 |
+
acceptance of support, warranty, indemnity, or other liability obligations
|
| 214 |
+
and/or rights consistent with this License. However, in accepting such
|
| 215 |
+
obligations, You may act only on Your own behalf and on Your sole
|
| 216 |
+
responsibility, not on behalf of any other Contributor, and only if You agree
|
| 217 |
+
to indemnify, defend, and hold each Contributor harmless for any liability
|
| 218 |
+
incurred by, or claims asserted against, such Contributor by reason of your
|
| 219 |
+
accepting any such warranty or additional liability.
|
| 220 |
+
|
| 221 |
+
12. Termination. This License will terminate automatically and immediately if
|
| 222 |
+
You fail to comply with any of its terms and conditions. Upon termination, You
|
| 223 |
+
must cease all use of the Swift Contribution and of any Work or Derivative
|
| 224 |
+
Works containing it, and delete all copies in Your possession. Termination does
|
| 225 |
+
not affect Your rights in the Base Model under the Base Model License.
|
| 226 |
+
|
| 227 |
+
END OF TERMS AND CONDITIONS
|
| 228 |
+
|
| 229 |
+
APPENDIX: Notice for redistributors (quantizations, conversions, merges).
|
| 230 |
+
|
| 231 |
+
Copyright 2026 UkisAI. Swift Contribution licensed under the Swift Open
|
| 232 |
+
License v1.0 (https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next/blob/main/LICENSE).
|
| 233 |
+
Derivative of Qwen3.8-Flash-Next, Copyright (c) 2026 Qwen, Qwen Community License 1.0.
|
LICENSE-QWEN
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Qwen Community License 1.0
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Qwen
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software, including the model weights, parameters, configuration files, inference code and associated documentation files (collectively, the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, sell, deploy, host, fine-tune, and create derivative works from (collectively, "Use" or "Using") copies of the Software; and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. If the Software (or any derivative works thereof) is Used for any of the licensee's commercial products or services that have more than 100,000,000 monthly active users or US$ 20,000,000 (or equivalent in other currencies) monthly revenue, respective model name must be prominently displayed on the user interface of such product or service; and,
|
| 8 |
+
|
| 9 |
+
2. If the licensee or any of its affiliates conducts a Model as a Service or AI Work Assistant business, the licensee shall obtain a separate license from Qwen before Using the Software or its derivative works for any commercial purpose. The foregoing requirement shall not apply to the licensee's internal Use of the Software, provided that such Use does not make the Software, its outputs, or its underlying model capabilities available to any third party.
|
| 10 |
+
|
| 11 |
+
"Model as a Service" means giving a third party access to language model inference or fine-tuning (e.g., via API or a hosted endpoint) in a manner that allows such third parties to exercise meaningful control over the inputs, parameters, or training data. This does not include the mere relaying of requests to models hosted by other third parties.
|
| 12 |
+
“AI Work Assistant” means an independent AI-powered product primarily designed for AI-assisted coding or office productivity (e.g., Qoder and QwenWork). It does not include: (a) a single-purpose AI tool (such as an AI translation tool); (b) an AI assistant primarily designed for a domain other than coding or office productivity (such as Taobao AI Shopping Assistant or AMap AI Chat); or (c) an AI assistant that is a feature of a product whose primary purpose is not AI-assisted coding or office productivity.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL QWEN, ITS AFFILIATES OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE USE OF THE SOFTWARE MUST COMPLY WITH APPLICABLE LAWS AND REGULATIONS, AND MUST NOT INFRINGE THE INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY.
|
| 15 |
+
|
| 16 |
+
For any questions regarding this license, please contact model-business@notice.qwencloud.com.
|
NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Swift-Qwen3.8-Flash-Next
|
| 2 |
+
Copyright 2026 UkisAI
|
| 3 |
+
|
| 4 |
+
UkisAI's contribution (the "Swift Contribution") is licensed under the
|
| 5 |
+
Swift Open License v1.0. See LICENSE.
|
| 6 |
+
|
| 7 |
+
This model is a derivative work of Qwen3.8-Flash-Next
|
| 8 |
+
https://huggingface.co/Qwen/Qwen3.8-Flash-Next
|
| 9 |
+
Copyright (c) 2026 Qwen
|
| 10 |
+
Licensed under the Qwen Community License 1.0. See LICENSE-QWEN.
|
| 11 |
+
|
| 12 |
+
Changes made by UkisAI:
|
| 13 |
+
- model-*.safetensors: model weights were modified by UkisAI through fine-tuning.
|
| 14 |
+
- tokenizer.json, tokenizer_config.json: re-serialized from UkisAI's training
|
| 15 |
+
base. Vocabulary and merges are unchanged; the file format, some metadata
|
| 16 |
+
fields and the pre-tokenizer pattern differ from the Base Model files.
|
| 17 |
+
- README.md: replaced. LICENSE (Swift Open License v1.0), NOTICE,
|
| 18 |
+
benchmarks/ and ukisai-banner.png added.
|
| 19 |
+
- The Base Model's license text was moved from LICENSE to LICENSE-QWEN.
|
| 20 |
+
- All other files (config.json, generation_config.json, chat_template.jinja,
|
| 21 |
+
model.safetensors.index.json, vocab.json, merges.txt,
|
| 22 |
+
preprocessor_config.json, video_preprocessor_config.json) are unmodified
|
| 23 |
+
from Qwen3.8-Flash-Next and remain under the Qwen Community License 1.0.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- set reasoning_instructions = '' %}
|
| 46 |
+
{%- if enable_thinking is undefined or enable_thinking is true %}
|
| 47 |
+
{%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
|
| 48 |
+
{%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
|
| 49 |
+
{{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- if resolved_reasoning_effort == 'xhigh' %}
|
| 52 |
+
{%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
|
| 53 |
+
{%- elif resolved_reasoning_effort == 'low' %}
|
| 54 |
+
{%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
|
| 55 |
+
{%- endif %}
|
| 56 |
+
{%- endif %}
|
| 57 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 58 |
+
{{- '<|im_start|>system\n' }}
|
| 59 |
+
{%- if reasoning_instructions %}
|
| 60 |
+
{{- reasoning_instructions + '\n\n' }}
|
| 61 |
+
{%- endif %}
|
| 62 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 63 |
+
{%- for tool in tools %}
|
| 64 |
+
{{- "\n" }}
|
| 65 |
+
{{- tool | tojson }}
|
| 66 |
+
{%- endfor %}
|
| 67 |
+
{{- "\n</tools>" }}
|
| 68 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 69 |
+
{%- if messages[0].role == 'system' %}
|
| 70 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 71 |
+
{%- if content %}
|
| 72 |
+
{{- '\n\n' + content }}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{{- '<|im_end|>\n' }}
|
| 76 |
+
{%- else %}
|
| 77 |
+
{%- if messages[0].role == 'system' %}
|
| 78 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 79 |
+
{%- if content %}
|
| 80 |
+
{{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
|
| 81 |
+
{%- elif reasoning_instructions %}
|
| 82 |
+
{{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
|
| 83 |
+
{%- endif %}
|
| 84 |
+
{%- elif reasoning_instructions %}
|
| 85 |
+
{{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- endif %}
|
| 88 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 89 |
+
{%- for message in messages[::-1] %}
|
| 90 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 91 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 92 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 93 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 94 |
+
{%- set ns.multi_step_tool = false %}
|
| 95 |
+
{%- set ns.last_query_index = index %}
|
| 96 |
+
{%- endif %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endfor %}
|
| 99 |
+
{%- if ns.multi_step_tool %}
|
| 100 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 101 |
+
{%- endif %}
|
| 102 |
+
{%- for message in messages %}
|
| 103 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 104 |
+
{%- if message.role == "system" %}
|
| 105 |
+
{%- if not loop.first %}
|
| 106 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 107 |
+
{%- endif %}
|
| 108 |
+
{%- elif message.role == "user" %}
|
| 109 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 110 |
+
{%- elif message.role == "assistant" %}
|
| 111 |
+
{%- set reasoning_content = '' %}
|
| 112 |
+
{%- if message.reasoning_content is string %}
|
| 113 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 114 |
+
{%- endif %}
|
| 115 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 116 |
+
{%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
|
| 117 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 118 |
+
{%- else %}
|
| 119 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 120 |
+
{%- endif %}
|
| 121 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 122 |
+
{%- for tool_call in message.tool_calls %}
|
| 123 |
+
{%- if tool_call.function is defined %}
|
| 124 |
+
{%- set tool_call = tool_call.function %}
|
| 125 |
+
{%- endif %}
|
| 126 |
+
{%- if loop.first %}
|
| 127 |
+
{%- if content|trim %}
|
| 128 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 129 |
+
{%- else %}
|
| 130 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 131 |
+
{%- endif %}
|
| 132 |
+
{%- else %}
|
| 133 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{%- if tool_call.arguments is defined and tool_call.arguments != '' %}
|
| 136 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 137 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 138 |
+
{%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
|
| 139 |
+
{{- args_value }}
|
| 140 |
+
{{- '\n</parameter>\n' }}
|
| 141 |
+
{%- endfor %}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{{- '</function>\n</tool_call>' }}
|
| 144 |
+
{%- endfor %}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{{- '<|im_end|>\n' }}
|
| 147 |
+
{%- elif message.role == "tool" %}
|
| 148 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 149 |
+
{{- '<|im_start|>user' }}
|
| 150 |
+
{%- endif %}
|
| 151 |
+
{{- '\n<tool_response>\n' }}
|
| 152 |
+
{{- content }}
|
| 153 |
+
{{- '\n</tool_response>' }}
|
| 154 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 155 |
+
{{- '<|im_end|>\n' }}
|
| 156 |
+
{%- elif loop.last %}
|
| 157 |
+
{{- '<|im_end|>\n' }}
|
| 158 |
+
{%- endif %}
|
| 159 |
+
{%- else %}
|
| 160 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 161 |
+
{%- endif %}
|
| 162 |
+
{%- endfor %}
|
| 163 |
+
{%- if add_generation_prompt %}
|
| 164 |
+
{{- '<|im_start|>assistant\n' }}
|
| 165 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 166 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 167 |
+
{%- else %}
|
| 168 |
+
{{- '<think>\n' }}
|
| 169 |
+
{%- endif %}
|
| 170 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen4ExpForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_token_id": 248056,
|
| 6 |
+
"language_model_only": false,
|
| 7 |
+
"model_type": "qwen4_exp",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"attention_bias": false,
|
| 10 |
+
"attention_dropout": 0.0,
|
| 11 |
+
"bos_token_id": 248044,
|
| 12 |
+
"dtype": "bfloat16",
|
| 13 |
+
"eos_token_id": 248044,
|
| 14 |
+
"full_attention_interval": 4,
|
| 15 |
+
"hc_count": 4,
|
| 16 |
+
"hc_lowrank": 320,
|
| 17 |
+
"head_dim": 256,
|
| 18 |
+
"heads_per_ngram": 8,
|
| 19 |
+
"hidden_act": "silu",
|
| 20 |
+
"hidden_size": 2560,
|
| 21 |
+
"indexer_budget": 2048,
|
| 22 |
+
"indexer_compress_ratio": 4,
|
| 23 |
+
"indexer_head_dim": 128,
|
| 24 |
+
"indexer_kv_heads": 1,
|
| 25 |
+
"indexer_n_heads": 4,
|
| 26 |
+
"initializer_range": 0.02,
|
| 27 |
+
"layer_types": [
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"linear_attention",
|
| 59 |
+
"full_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"linear_attention",
|
| 62 |
+
"linear_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"linear_attention",
|
| 65 |
+
"linear_attention",
|
| 66 |
+
"linear_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"linear_attention",
|
| 69 |
+
"linear_attention",
|
| 70 |
+
"linear_attention",
|
| 71 |
+
"full_attention",
|
| 72 |
+
"linear_attention",
|
| 73 |
+
"linear_attention",
|
| 74 |
+
"linear_attention",
|
| 75 |
+
"full_attention"
|
| 76 |
+
],
|
| 77 |
+
"linear_conv_kernel_dim": 4,
|
| 78 |
+
"linear_key_head_dim": 128,
|
| 79 |
+
"linear_num_key_heads": 16,
|
| 80 |
+
"linear_num_value_heads": 48,
|
| 81 |
+
"linear_value_head_dim": 128,
|
| 82 |
+
"make_ngram_vocab_size_divisible_by": 128,
|
| 83 |
+
"mamba_ssm_dtype": "float32",
|
| 84 |
+
"max_position_embeddings": 262144,
|
| 85 |
+
"model_type": "qwen4_exp_text",
|
| 86 |
+
"moe_intermediate_size": 640,
|
| 87 |
+
"mtp": {
|
| 88 |
+
"hybrid": true,
|
| 89 |
+
"layer_types": [
|
| 90 |
+
"full_attention"
|
| 91 |
+
],
|
| 92 |
+
"mtp_use_hidden_state_from_layer": null,
|
| 93 |
+
"num_hidden_layers": 1,
|
| 94 |
+
"rope_theta": 10000000
|
| 95 |
+
},
|
| 96 |
+
"mtp_num_hidden_layers": 1,
|
| 97 |
+
"mtp_use_dedicated_embeddings": false,
|
| 98 |
+
"ngram_size": 3,
|
| 99 |
+
"ngram_vocab_size_base": 20000000,
|
| 100 |
+
"num_attention_heads": 24,
|
| 101 |
+
"num_experts": 512,
|
| 102 |
+
"num_experts_per_tok": 10,
|
| 103 |
+
"num_hidden_layers": 48,
|
| 104 |
+
"num_key_value_heads": 2,
|
| 105 |
+
"output_gate_type": "sigmoid",
|
| 106 |
+
"output_router_logits": false,
|
| 107 |
+
"pad_token_id": null,
|
| 108 |
+
"partial_rotary_factor": 0.25,
|
| 109 |
+
"ple_conv_kernel_size": 4,
|
| 110 |
+
"ple_embed_dim": 2560,
|
| 111 |
+
"ple_layer_ids": [
|
| 112 |
+
2
|
| 113 |
+
],
|
| 114 |
+
"rms_norm_eps": 1e-06,
|
| 115 |
+
"rope_parameters": {
|
| 116 |
+
"mrope_interleaved": true,
|
| 117 |
+
"mrope_section": [
|
| 118 |
+
11,
|
| 119 |
+
11,
|
| 120 |
+
10
|
| 121 |
+
],
|
| 122 |
+
"partial_rotary_factor": 0.25,
|
| 123 |
+
"rope_theta": 10000000,
|
| 124 |
+
"rope_type": "default"
|
| 125 |
+
},
|
| 126 |
+
"router_aux_loss_coef": 0.001,
|
| 127 |
+
"shared_expert_intermediate_size": 640,
|
| 128 |
+
"split_ngram_parts": 128,
|
| 129 |
+
"tie_word_embeddings": false,
|
| 130 |
+
"use_cache": true,
|
| 131 |
+
"vocab_size": 248320
|
| 132 |
+
},
|
| 133 |
+
"tie_word_embeddings": false,
|
| 134 |
+
"transformers_version": "5.8.0.dev0",
|
| 135 |
+
"video_token_id": 248057,
|
| 136 |
+
"vision_config": {
|
| 137 |
+
"deepstack_visual_indexes": [],
|
| 138 |
+
"depth": 27,
|
| 139 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 140 |
+
"hidden_size": 1152,
|
| 141 |
+
"in_channels": 3,
|
| 142 |
+
"initializer_range": 0.02,
|
| 143 |
+
"intermediate_size": 4304,
|
| 144 |
+
"model_type": "qwen4_exp",
|
| 145 |
+
"num_heads": 16,
|
| 146 |
+
"num_position_embeddings": 2304,
|
| 147 |
+
"out_hidden_size": 2560,
|
| 148 |
+
"patch_size": 16,
|
| 149 |
+
"spatial_merge_size": 2,
|
| 150 |
+
"temporal_patch_size": 2
|
| 151 |
+
},
|
| 152 |
+
"vision_end_token_id": 248054,
|
| 153 |
+
"vision_start_token_id": 248053,
|
| 154 |
+
"quantization_config": {
|
| 155 |
+
"quant_method": "exl3",
|
| 156 |
+
"version": "1.5.1",
|
| 157 |
+
"bits": 3.75,
|
| 158 |
+
"head_bits": 6,
|
| 159 |
+
"calibration": {
|
| 160 |
+
"rows": 196,
|
| 161 |
+
"cols": 2048
|
| 162 |
+
},
|
| 163 |
+
"out_scales": "always",
|
| 164 |
+
"codebook": "mul1",
|
| 165 |
+
"vision_bits": 6,
|
| 166 |
+
"mtp_bits": 4
|
| 167 |
+
}
|
| 168 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 248044,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
248046,
|
| 6 |
+
248044
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 248044,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.95
|
| 12 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa3867bc3bb3cf580adb747d2046206d39824bd6258292a0b8d8564bdb008a5d
|
| 3 |
+
size 8135220716
|
model-00002-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e1b1be646cd31a6416bc102ff0f46cc3038a353114ea7712842026c7a982cab
|
| 3 |
+
size 8159370069
|
model-00003-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a742d374e914c23555811690c23c800b96cb7ddf8bade7eb2b7262982a7d739
|
| 3 |
+
size 8140894304
|
model-00004-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86c7612888e948acdb0cb2672ad63ae32c27a8a1c0e6bda3d04c2273bb3fba83
|
| 3 |
+
size 8133186595
|
model-00005-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4944d77bcb3db243bdf8ae5bab7be78e2fa317de9718fcbe62a5901052d33617
|
| 3 |
+
size 8121888864
|
model-00006-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e6c0bb72b502a47d3299f833a10741820915c7b27b03d3c0386409c8df1ad4a
|
| 3 |
+
size 8123028515
|
model-00007-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0b516c2b96cc11e3f13d34331460aca37648441de5f83294476359df6fe054e
|
| 3 |
+
size 8261712532
|
model-00008-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e1c5009ad9d096a949c0f2b933f848873ccaab76786ff447e4758e085f3b408
|
| 3 |
+
size 6586120874
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21bb1b10007c533d61ca5d3f64243730d80cacc461914ff575133a8fd912d970
|
| 3 |
+
size 32763270
|
ngram_embedding.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:867f4f428a4fbf11bb9122ea1ef986e96fc007447ccabc356e7c5a2b8b48f5d9
|
| 3 |
+
size 26240152672
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 16777216,
|
| 4 |
+
"shortest_edge": 65536
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
+
}
|
quantization_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ee88c8b2b8348d6ee42f8d5930a40c184e30ebf2f43919507ae031cebe1556e
|
| 3 |
+
size 96643619
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"split_special_tokens": false,
|
| 27 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
+
"unk_token": null,
|
| 29 |
+
"video_token": "<|video_pad|>",
|
| 30 |
+
"vision_bos_token": "<|vision_start|>",
|
| 31 |
+
"vision_eos_token": "<|vision_end|>"
|
| 32 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 25165824,
|
| 4 |
+
"shortest_edge": 4096
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 21 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|