Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- README.md +300 -0
- added_tokens.json +28 -0
- chat_template.jinja +120 -0
- config.json +326 -0
- generation_config.json +13 -0
- merges.txt +0 -0
- model-00001-of-00028.safetensors +3 -0
- model-00002-of-00028.safetensors +3 -0
- model-00003-of-00028.safetensors +3 -0
- model-00004-of-00028.safetensors +3 -0
- model-00005-of-00028.safetensors +3 -0
- model-00006-of-00028.safetensors +3 -0
- model-00007-of-00028.safetensors +3 -0
- model-00008-of-00028.safetensors +3 -0
- model-00009-of-00028.safetensors +3 -0
- model-00010-of-00028.safetensors +3 -0
- model-00011-of-00028.safetensors +3 -0
- model-00012-of-00028.safetensors +3 -0
- model-00013-of-00028.safetensors +3 -0
- model-00014-of-00028.safetensors +3 -0
- model-00015-of-00028.safetensors +3 -0
- model-00016-of-00028.safetensors +3 -0
- model-00017-of-00028.safetensors +3 -0
- model-00018-of-00028.safetensors +3 -0
- model-00019-of-00028.safetensors +3 -0
- model-00020-of-00028.safetensors +3 -0
- model-00021-of-00028.safetensors +3 -0
- model-00022-of-00028.safetensors +3 -0
- model-00023-of-00028.safetensors +3 -0
- model-00024-of-00028.safetensors +3 -0
- model-00025-of-00028.safetensors +3 -0
- model-00026-of-00028.safetensors +3 -0
- model-00027-of-00028.safetensors +3 -0
- model-00028-of-00028.safetensors +3 -0
- model.safetensors.index.json +3 -0
- preprocessor_config.json +39 -0
- recipe.yaml +6 -0
- special_tokens_map.json +31 -0
- tokenizer.json +3 -0
- tokenizer_config.json +240 -0
- video_preprocessor_config.json +41 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- de
|
| 8 |
+
- fr
|
| 9 |
+
- it
|
| 10 |
+
- pt
|
| 11 |
+
- hi
|
| 12 |
+
- es
|
| 13 |
+
- th
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
license: apache-2.0
|
| 16 |
+
base_model: Qwen/Qwen3-VL-235B-A22B-Instruct
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Qwen3-VL-235B-A22B-Instruct-NVFP4
|
| 20 |
+
|
| 21 |
+
## Model Overview
|
| 22 |
+
- **Model Architecture:** Qwen/Qwen3-VL-235B-A22B-Instruct
|
| 23 |
+
- **Input:** Text
|
| 24 |
+
- **Output:** Text
|
| 25 |
+
- **Model Optimizations:**
|
| 26 |
+
- **Weight quantization:** FP4
|
| 27 |
+
- **Activation quantization:** FP4
|
| 28 |
+
- **Out-of-scope:** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English.
|
| 29 |
+
- **Release Date:** 10/29/2025
|
| 30 |
+
- **Version:** 1.0
|
| 31 |
+
- **Model Developers:** RedHatAI
|
| 32 |
+
|
| 33 |
+
This model is a quantized version of [Qwen/Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct).
|
| 34 |
+
It was evaluated on a several tasks to assess the its quality in comparison to the unquatized model.
|
| 35 |
+
|
| 36 |
+
### Model Optimizations
|
| 37 |
+
|
| 38 |
+
This model was obtained by quantizing the weights and activations of [Qwen/Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct) to FP4 data type, ready for inference with vLLM>=0.9.1
|
| 39 |
+
This optimization reduces the number of bits per parameter from 16 to 4, reducing the disk size and GPU memory requirements by approximately 75%.
|
| 40 |
+
|
| 41 |
+
Only the weights and activations of the linear operators within transformers blocks are quantized using [LLM Compressor](https://github.com/vllm-project/llm-compressor).
|
| 42 |
+
|
| 43 |
+
## Deployment
|
| 44 |
+
|
| 45 |
+
### Use with vLLM
|
| 46 |
+
|
| 47 |
+
This model can be deployed efficiently using the [vLLM](https://docs.vllm.ai/en/latest/) backend, as shown in the example below.
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from vllm import LLM, SamplingParams
|
| 51 |
+
from transformers import AutoTokenizer
|
| 52 |
+
|
| 53 |
+
model_id = "RedHatAI/Qwen3-VL-235B-A22B-Instruct-NVFP4"
|
| 54 |
+
number_gpus = 1
|
| 55 |
+
|
| 56 |
+
sampling_params = SamplingParams(temperature=0.6, top_p=0.9, max_tokens=256)
|
| 57 |
+
|
| 58 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 59 |
+
|
| 60 |
+
messages = [
|
| 61 |
+
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
|
| 62 |
+
{"role": "user", "content": "Who are you?"},
|
| 63 |
+
]
|
| 64 |
+
|
| 65 |
+
prompts = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
|
| 66 |
+
|
| 67 |
+
llm = LLM(model=model_id, tensor_parallel_size=number_gpus)
|
| 68 |
+
|
| 69 |
+
outputs = llm.generate(prompts, sampling_params)
|
| 70 |
+
|
| 71 |
+
generated_text = outputs[0].outputs[0].text
|
| 72 |
+
print(generated_text)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
vLLM aslo supports OpenAI-compatible serving. See the [documentation](https://docs.vllm.ai/en/latest/) for more details.
|
| 76 |
+
|
| 77 |
+
## Creation
|
| 78 |
+
|
| 79 |
+
This model was created by applying [LLM Compressor with calibration samples from UltraChat](https://github.com/vllm-project/llm-compressor/blob/main/examples/quantization_w4a4_fp4/llama3_example.py), as presented in the code snipet below.
|
| 80 |
+
|
| 81 |
+
<details>
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
import torch
|
| 85 |
+
from datasets import load_dataset
|
| 86 |
+
from transformers import AutoProcessor, Qwen3VLMoeForConditionalGeneration
|
| 87 |
+
|
| 88 |
+
from llmcompressor import oneshot
|
| 89 |
+
from llmcompressor.modeling import replace_modules_for_calibration
|
| 90 |
+
from llmcompressor.modifiers.quantization import QuantizationModifier
|
| 91 |
+
from llmcompressor.utils import dispatch_for_generation
|
| 92 |
+
|
| 93 |
+
# NOTE: Requires a minimum of transformers 4.57.0
|
| 94 |
+
|
| 95 |
+
MODEL_ID = "Qwen/Qwen3-VL-235B-A22B-Instruct"
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
# Load model.
|
| 99 |
+
model = Qwen3VLMoeForConditionalGeneration.from_pretrained(MODEL_ID, torch_dtype="auto")
|
| 100 |
+
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
| 101 |
+
model = replace_modules_for_calibration(model)
|
| 102 |
+
|
| 103 |
+
DATASET_ID = "neuralmagic/calibration"
|
| 104 |
+
NUM_CALIBRATION_SAMPLES = 20
|
| 105 |
+
MAX_SEQUENCE_LENGTH = 8192
|
| 106 |
+
|
| 107 |
+
ds = load_dataset(DATASET_ID, name="LLM", split=f"train[:{NUM_CALIBRATION_SAMPLES}]")
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def preprocess_function(example):
|
| 111 |
+
messgages = []
|
| 112 |
+
for message in example["messages"]:
|
| 113 |
+
messgages.append(
|
| 114 |
+
{
|
| 115 |
+
"role": message["role"],
|
| 116 |
+
"content": [{"type": "text", "text": message["content"]}],
|
| 117 |
+
}
|
| 118 |
+
)
|
| 119 |
+
|
| 120 |
+
return processor.apply_chat_template(
|
| 121 |
+
messgages,
|
| 122 |
+
return_tensors="pt",
|
| 123 |
+
padding=False,
|
| 124 |
+
truncation=True,
|
| 125 |
+
max_length=MAX_SEQUENCE_LENGTH,
|
| 126 |
+
tokenize=True,
|
| 127 |
+
add_special_tokens=False,
|
| 128 |
+
return_dict=True,
|
| 129 |
+
add_generation_prompt=False,
|
| 130 |
+
)
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
ds = ds.map(preprocess_function, batched=False, remove_columns=ds.column_names)
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def data_collator(batch):
|
| 137 |
+
assert len(batch) == 1
|
| 138 |
+
return {
|
| 139 |
+
key: (
|
| 140 |
+
torch.tensor(value)
|
| 141 |
+
if key != "pixel_values"
|
| 142 |
+
else torch.tensor(value, dtype=torch.bfloat16).squeeze(0)
|
| 143 |
+
)
|
| 144 |
+
for key, value in batch[0].items()
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
# Configure the quantization algorithm and scheme.
|
| 149 |
+
# In this case, we:
|
| 150 |
+
# * quantize the weights to fp4 with group-wise quantization
|
| 151 |
+
# * quantize the activations to fp4 with dynamic group activations
|
| 152 |
+
recipe = QuantizationModifier(
|
| 153 |
+
targets="Linear",
|
| 154 |
+
scheme="NVFP4",
|
| 155 |
+
ignore=[
|
| 156 |
+
"re:.*lm_head",
|
| 157 |
+
"re:visual.*",
|
| 158 |
+
"re:model.visual.*",
|
| 159 |
+
"re:.*mlp.gate$",
|
| 160 |
+
],
|
| 161 |
+
)
|
| 162 |
+
|
| 163 |
+
# Apply quantization.
|
| 164 |
+
oneshot(
|
| 165 |
+
model=model,
|
| 166 |
+
recipe=recipe,
|
| 167 |
+
max_seq_length=MAX_SEQUENCE_LENGTH,
|
| 168 |
+
num_calibration_samples=NUM_CALIBRATION_SAMPLES,
|
| 169 |
+
dataset=ds,
|
| 170 |
+
data_collator=data_collator,
|
| 171 |
+
)
|
| 172 |
+
|
| 173 |
+
print("========== SAMPLE GENERATION ==============")
|
| 174 |
+
dispatch_for_generation(model)
|
| 175 |
+
input_ids = processor(text="Hello my name is", return_tensors="pt").input_ids.to("cuda")
|
| 176 |
+
output = model.generate(input_ids, max_new_tokens=20)
|
| 177 |
+
print(processor.decode(output[0]))
|
| 178 |
+
print("==========================================")
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
# Save to disk in compressed-tensors format.
|
| 182 |
+
SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-NVFP4"
|
| 183 |
+
model.save_pretrained(SAVE_DIR)
|
| 184 |
+
processor.save_pretrained(SAVE_DIR)
|
| 185 |
+
|
| 186 |
+
```
|
| 187 |
+
</details>
|
| 188 |
+
|
| 189 |
+
## Evaluation
|
| 190 |
+
|
| 191 |
+
This model was evaluated on the well-known OpenLLM v1, OpenLLM v2 and HumanEval_64 benchmarks using [lm-evaluation-harness](https://github.com/neuralmagic/lm-evaluation-harness). The Reasoning evals were done using [ligheval](https://github.com/neuralmagic/lighteval).
|
| 192 |
+
|
| 193 |
+
### Accuracy
|
| 194 |
+
<table>
|
| 195 |
+
<thead>
|
| 196 |
+
<tr>
|
| 197 |
+
<th>Category</th>
|
| 198 |
+
<th>Metric</th>
|
| 199 |
+
<th>Qwen/Qwen3-VL-235B-A22B-Instruct</th>
|
| 200 |
+
<th>RedHatAI/Qwen3-VL-235B-A22B-Instruct-NVFP4 (this model)</th>
|
| 201 |
+
<th>Recovery</th>
|
| 202 |
+
</tr>
|
| 203 |
+
</thead>
|
| 204 |
+
<tbody>
|
| 205 |
+
<!-- OpenLLM -->
|
| 206 |
+
<tr>
|
| 207 |
+
<td rowspan="7"><b>OpenLLM</b></td>
|
| 208 |
+
<td>arc_challenge</td>
|
| 209 |
+
<td>72.95</td>
|
| 210 |
+
<td>71.59</td>
|
| 211 |
+
<td>98.13</td>
|
| 212 |
+
</tr>
|
| 213 |
+
<tr>
|
| 214 |
+
<td>gsm8k</td>
|
| 215 |
+
<td>90.37</td>
|
| 216 |
+
<td>88.25</td>
|
| 217 |
+
<td>97.65</td>
|
| 218 |
+
</tr>
|
| 219 |
+
<tr>
|
| 220 |
+
<td>hellaswag</td>
|
| 221 |
+
<td>87.94</td>
|
| 222 |
+
<td>86.80</td>
|
| 223 |
+
<td>98.70</td>
|
| 224 |
+
</tr>
|
| 225 |
+
<tr>
|
| 226 |
+
<td>mmlu</td>
|
| 227 |
+
<td>87.12</td>
|
| 228 |
+
<td>86.22</td>
|
| 229 |
+
<td>98.97</td>
|
| 230 |
+
</tr>
|
| 231 |
+
<tr>
|
| 232 |
+
<td>truthfulqa_mc2</td>
|
| 233 |
+
<td>63.31</td>
|
| 234 |
+
<td>62.37</td>
|
| 235 |
+
<td>98.52</td>
|
| 236 |
+
</tr>
|
| 237 |
+
<tr>
|
| 238 |
+
<td>winogrande</td>
|
| 239 |
+
<td>81.93</td>
|
| 240 |
+
<td>80.43</td>
|
| 241 |
+
<td>98.17</td>
|
| 242 |
+
</tr>
|
| 243 |
+
<tr>
|
| 244 |
+
<td><b>Average</b></td>
|
| 245 |
+
<td><b>80.60</b></td>
|
| 246 |
+
<td><b>79.28</b></td>
|
| 247 |
+
<td><b>98.35</b></td>
|
| 248 |
+
</tr>
|
| 249 |
+
<!-- Vision -->
|
| 250 |
+
<tr>
|
| 251 |
+
<td rowspan="7"><b>Vision</b></td>
|
| 252 |
+
<td>mmmu_val</td>
|
| 253 |
+
<td>63.56</td>
|
| 254 |
+
<td>62.11</td>
|
| 255 |
+
<td>97.71</td>
|
| 256 |
+
</tr>
|
| 257 |
+
<tr>
|
| 258 |
+
<td>chartqa</td>
|
| 259 |
+
<td>90.52</td>
|
| 260 |
+
<td>89.00</td>
|
| 261 |
+
<td>98.32</td>
|
| 262 |
+
</tr>
|
| 263 |
+
<tr>
|
| 264 |
+
<td><b>Average</b></td>
|
| 265 |
+
<td><b>77.04</b></td>
|
| 266 |
+
<td><b>75.56</b></td>
|
| 267 |
+
<td><b>98.08</b></td>
|
| 268 |
+
</tr>
|
| 269 |
+
</tbody>
|
| 270 |
+
</table>
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
### Reproduction
|
| 275 |
+
|
| 276 |
+
The results were obtained using the following commands:
|
| 277 |
+
|
| 278 |
+
<details>
|
| 279 |
+
|
| 280 |
+
#### OpenLLM
|
| 281 |
+
```
|
| 282 |
+
lm_eval \
|
| 283 |
+
--model vllm \
|
| 284 |
+
--model_args pretrained="RedHatAI/Qwen3-VL-235B-A22B-Instruct-NVFP4",dtype=auto,max_model_len=4096,tensor_parallel_size=2,enable_chunked_prefill=True,enforce_eager=True\
|
| 285 |
+
--apply_chat_template \
|
| 286 |
+
--fewshot_as_multiturn \
|
| 287 |
+
--tasks openllm \
|
| 288 |
+
--batch_size auto
|
| 289 |
+
```
|
| 290 |
+
|
| 291 |
+
#### Vision
|
| 292 |
+
```
|
| 293 |
+
python3 -m lmms_eval \
|
| 294 |
+
--model vllm \
|
| 295 |
+
--model_args model=RedHatAI/Qwen3-VL-235B-A22B-Instruct-NVFP4,tensor_parallel_size=4,max_model_len=20000 \
|
| 296 |
+
--tasks chartqa,mmmu_val \
|
| 297 |
+
--batch_size 1
|
| 298 |
+
```
|
| 299 |
+
|
| 300 |
+
</details>
|
added_tokens.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</think>": 151668,
|
| 3 |
+
"</tool_call>": 151658,
|
| 4 |
+
"</tool_response>": 151666,
|
| 5 |
+
"<think>": 151667,
|
| 6 |
+
"<tool_call>": 151657,
|
| 7 |
+
"<tool_response>": 151665,
|
| 8 |
+
"<|box_end|>": 151649,
|
| 9 |
+
"<|box_start|>": 151648,
|
| 10 |
+
"<|endoftext|>": 151643,
|
| 11 |
+
"<|file_sep|>": 151664,
|
| 12 |
+
"<|fim_middle|>": 151660,
|
| 13 |
+
"<|fim_pad|>": 151662,
|
| 14 |
+
"<|fim_prefix|>": 151659,
|
| 15 |
+
"<|fim_suffix|>": 151661,
|
| 16 |
+
"<|im_end|>": 151645,
|
| 17 |
+
"<|im_start|>": 151644,
|
| 18 |
+
"<|image_pad|>": 151655,
|
| 19 |
+
"<|object_ref_end|>": 151647,
|
| 20 |
+
"<|object_ref_start|>": 151646,
|
| 21 |
+
"<|quad_end|>": 151651,
|
| 22 |
+
"<|quad_start|>": 151650,
|
| 23 |
+
"<|repo_name|>": 151663,
|
| 24 |
+
"<|video_pad|>": 151656,
|
| 25 |
+
"<|vision_end|>": 151653,
|
| 26 |
+
"<|vision_pad|>": 151654,
|
| 27 |
+
"<|vision_start|>": 151652
|
| 28 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0].role == 'system' %}
|
| 4 |
+
{%- if messages[0].content is string %}
|
| 5 |
+
{{- messages[0].content }}
|
| 6 |
+
{%- else %}
|
| 7 |
+
{%- for content in messages[0].content %}
|
| 8 |
+
{%- if 'text' in content %}
|
| 9 |
+
{{- content.text }}
|
| 10 |
+
{%- endif %}
|
| 11 |
+
{%- endfor %}
|
| 12 |
+
{%- endif %}
|
| 13 |
+
{{- '\n\n' }}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{{- "# 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>" }}
|
| 16 |
+
{%- for tool in tools %}
|
| 17 |
+
{{- "\n" }}
|
| 18 |
+
{{- tool | tojson }}
|
| 19 |
+
{%- endfor %}
|
| 20 |
+
{{- "\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" }}
|
| 21 |
+
{%- else %}
|
| 22 |
+
{%- if messages[0].role == 'system' %}
|
| 23 |
+
{{- '<|im_start|>system\n' }}
|
| 24 |
+
{%- if messages[0].content is string %}
|
| 25 |
+
{{- messages[0].content }}
|
| 26 |
+
{%- else %}
|
| 27 |
+
{%- for content in messages[0].content %}
|
| 28 |
+
{%- if 'text' in content %}
|
| 29 |
+
{{- content.text }}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- endfor %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '<|im_end|>\n' }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endif %}
|
| 36 |
+
{%- set image_count = namespace(value=0) %}
|
| 37 |
+
{%- set video_count = namespace(value=0) %}
|
| 38 |
+
{%- for message in messages %}
|
| 39 |
+
{%- if message.role == "user" %}
|
| 40 |
+
{{- '<|im_start|>' + message.role + '\n' }}
|
| 41 |
+
{%- if message.content is string %}
|
| 42 |
+
{{- message.content }}
|
| 43 |
+
{%- else %}
|
| 44 |
+
{%- for content in message.content %}
|
| 45 |
+
{%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
|
| 46 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 47 |
+
{%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
|
| 48 |
+
<|vision_start|><|image_pad|><|vision_end|>
|
| 49 |
+
{%- elif content.type == 'video' or 'video' in content %}
|
| 50 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 51 |
+
{%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
|
| 52 |
+
<|vision_start|><|video_pad|><|vision_end|>
|
| 53 |
+
{%- elif 'text' in content %}
|
| 54 |
+
{{- content.text }}
|
| 55 |
+
{%- endif %}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{{- '<|im_end|>\n' }}
|
| 59 |
+
{%- elif message.role == "assistant" %}
|
| 60 |
+
{{- '<|im_start|>' + message.role + '\n' }}
|
| 61 |
+
{%- if message.content is string %}
|
| 62 |
+
{{- message.content }}
|
| 63 |
+
{%- else %}
|
| 64 |
+
{%- for content_item in message.content %}
|
| 65 |
+
{%- if 'text' in content_item %}
|
| 66 |
+
{{- content_item.text }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{%- endfor %}
|
| 69 |
+
{%- endif %}
|
| 70 |
+
{%- if message.tool_calls %}
|
| 71 |
+
{%- for tool_call in message.tool_calls %}
|
| 72 |
+
{%- if (loop.first and message.content) or (not loop.first) %}
|
| 73 |
+
{{- '\n' }}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- if tool_call.function %}
|
| 76 |
+
{%- set tool_call = tool_call.function %}
|
| 77 |
+
{%- endif %}
|
| 78 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 79 |
+
{{- tool_call.name }}
|
| 80 |
+
{{- '", "arguments": ' }}
|
| 81 |
+
{%- if tool_call.arguments is string %}
|
| 82 |
+
{{- tool_call.arguments }}
|
| 83 |
+
{%- else %}
|
| 84 |
+
{{- tool_call.arguments | tojson }}
|
| 85 |
+
{%- endif %}
|
| 86 |
+
{{- '}\n</tool_call>' }}
|
| 87 |
+
{%- endfor %}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{{- '<|im_end|>\n' }}
|
| 90 |
+
{%- elif message.role == "tool" %}
|
| 91 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 92 |
+
{{- '<|im_start|>user' }}
|
| 93 |
+
{%- endif %}
|
| 94 |
+
{{- '\n<tool_response>\n' }}
|
| 95 |
+
{%- if message.content is string %}
|
| 96 |
+
{{- message.content }}
|
| 97 |
+
{%- else %}
|
| 98 |
+
{%- for content in message.content %}
|
| 99 |
+
{%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
|
| 100 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 101 |
+
{%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
|
| 102 |
+
<|vision_start|><|image_pad|><|vision_end|>
|
| 103 |
+
{%- elif content.type == 'video' or 'video' in content %}
|
| 104 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 105 |
+
{%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
|
| 106 |
+
<|vision_start|><|video_pad|><|vision_end|>
|
| 107 |
+
{%- elif 'text' in content %}
|
| 108 |
+
{{- content.text }}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- endfor %}
|
| 111 |
+
{%- endif %}
|
| 112 |
+
{{- '\n</tool_response>' }}
|
| 113 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 114 |
+
{{- '<|im_end|>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- endif %}
|
| 117 |
+
{%- endfor %}
|
| 118 |
+
{%- if add_generation_prompt %}
|
| 119 |
+
{{- '<|im_start|>assistant\n' }}
|
| 120 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1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
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 151655,
|
| 7 |
+
"model_type": "qwen3_vl_moe",
|
| 8 |
+
"quantization_config": {
|
| 9 |
+
"config_groups": {
|
| 10 |
+
"group_0": {
|
| 11 |
+
"format": "nvfp4-pack-quantized",
|
| 12 |
+
"input_activations": {
|
| 13 |
+
"actorder": null,
|
| 14 |
+
"block_structure": null,
|
| 15 |
+
"dynamic": "local",
|
| 16 |
+
"group_size": 16,
|
| 17 |
+
"num_bits": 4,
|
| 18 |
+
"observer": "static_minmax",
|
| 19 |
+
"observer_kwargs": {},
|
| 20 |
+
"strategy": "tensor_group",
|
| 21 |
+
"symmetric": true,
|
| 22 |
+
"type": "float"
|
| 23 |
+
},
|
| 24 |
+
"output_activations": null,
|
| 25 |
+
"targets": [
|
| 26 |
+
"Linear"
|
| 27 |
+
],
|
| 28 |
+
"weights": {
|
| 29 |
+
"actorder": null,
|
| 30 |
+
"block_structure": null,
|
| 31 |
+
"dynamic": false,
|
| 32 |
+
"group_size": 16,
|
| 33 |
+
"num_bits": 4,
|
| 34 |
+
"observer": "static_minmax",
|
| 35 |
+
"observer_kwargs": {},
|
| 36 |
+
"strategy": "tensor_group",
|
| 37 |
+
"symmetric": true,
|
| 38 |
+
"type": "float"
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"format": "nvfp4-pack-quantized",
|
| 43 |
+
"global_compression_ratio": null,
|
| 44 |
+
"ignore": [
|
| 45 |
+
"model.visual.blocks.0.attn.qkv",
|
| 46 |
+
"model.visual.blocks.0.attn.proj",
|
| 47 |
+
"model.visual.blocks.0.mlp.linear_fc1",
|
| 48 |
+
"model.visual.blocks.0.mlp.linear_fc2",
|
| 49 |
+
"model.visual.blocks.1.attn.qkv",
|
| 50 |
+
"model.visual.blocks.1.attn.proj",
|
| 51 |
+
"model.visual.blocks.1.mlp.linear_fc1",
|
| 52 |
+
"model.visual.blocks.1.mlp.linear_fc2",
|
| 53 |
+
"model.visual.blocks.2.attn.qkv",
|
| 54 |
+
"model.visual.blocks.2.attn.proj",
|
| 55 |
+
"model.visual.blocks.2.mlp.linear_fc1",
|
| 56 |
+
"model.visual.blocks.2.mlp.linear_fc2",
|
| 57 |
+
"model.visual.blocks.3.attn.qkv",
|
| 58 |
+
"model.visual.blocks.3.attn.proj",
|
| 59 |
+
"model.visual.blocks.3.mlp.linear_fc1",
|
| 60 |
+
"model.visual.blocks.3.mlp.linear_fc2",
|
| 61 |
+
"model.visual.blocks.4.attn.qkv",
|
| 62 |
+
"model.visual.blocks.4.attn.proj",
|
| 63 |
+
"model.visual.blocks.4.mlp.linear_fc1",
|
| 64 |
+
"model.visual.blocks.4.mlp.linear_fc2",
|
| 65 |
+
"model.visual.blocks.5.attn.qkv",
|
| 66 |
+
"model.visual.blocks.5.attn.proj",
|
| 67 |
+
"model.visual.blocks.5.mlp.linear_fc1",
|
| 68 |
+
"model.visual.blocks.5.mlp.linear_fc2",
|
| 69 |
+
"model.visual.blocks.6.attn.qkv",
|
| 70 |
+
"model.visual.blocks.6.attn.proj",
|
| 71 |
+
"model.visual.blocks.6.mlp.linear_fc1",
|
| 72 |
+
"model.visual.blocks.6.mlp.linear_fc2",
|
| 73 |
+
"model.visual.blocks.7.attn.qkv",
|
| 74 |
+
"model.visual.blocks.7.attn.proj",
|
| 75 |
+
"model.visual.blocks.7.mlp.linear_fc1",
|
| 76 |
+
"model.visual.blocks.7.mlp.linear_fc2",
|
| 77 |
+
"model.visual.blocks.8.attn.qkv",
|
| 78 |
+
"model.visual.blocks.8.attn.proj",
|
| 79 |
+
"model.visual.blocks.8.mlp.linear_fc1",
|
| 80 |
+
"model.visual.blocks.8.mlp.linear_fc2",
|
| 81 |
+
"model.visual.blocks.9.attn.qkv",
|
| 82 |
+
"model.visual.blocks.9.attn.proj",
|
| 83 |
+
"model.visual.blocks.9.mlp.linear_fc1",
|
| 84 |
+
"model.visual.blocks.9.mlp.linear_fc2",
|
| 85 |
+
"model.visual.blocks.10.attn.qkv",
|
| 86 |
+
"model.visual.blocks.10.attn.proj",
|
| 87 |
+
"model.visual.blocks.10.mlp.linear_fc1",
|
| 88 |
+
"model.visual.blocks.10.mlp.linear_fc2",
|
| 89 |
+
"model.visual.blocks.11.attn.qkv",
|
| 90 |
+
"model.visual.blocks.11.attn.proj",
|
| 91 |
+
"model.visual.blocks.11.mlp.linear_fc1",
|
| 92 |
+
"model.visual.blocks.11.mlp.linear_fc2",
|
| 93 |
+
"model.visual.blocks.12.attn.qkv",
|
| 94 |
+
"model.visual.blocks.12.attn.proj",
|
| 95 |
+
"model.visual.blocks.12.mlp.linear_fc1",
|
| 96 |
+
"model.visual.blocks.12.mlp.linear_fc2",
|
| 97 |
+
"model.visual.blocks.13.attn.qkv",
|
| 98 |
+
"model.visual.blocks.13.attn.proj",
|
| 99 |
+
"model.visual.blocks.13.mlp.linear_fc1",
|
| 100 |
+
"model.visual.blocks.13.mlp.linear_fc2",
|
| 101 |
+
"model.visual.blocks.14.attn.qkv",
|
| 102 |
+
"model.visual.blocks.14.attn.proj",
|
| 103 |
+
"model.visual.blocks.14.mlp.linear_fc1",
|
| 104 |
+
"model.visual.blocks.14.mlp.linear_fc2",
|
| 105 |
+
"model.visual.blocks.15.attn.qkv",
|
| 106 |
+
"model.visual.blocks.15.attn.proj",
|
| 107 |
+
"model.visual.blocks.15.mlp.linear_fc1",
|
| 108 |
+
"model.visual.blocks.15.mlp.linear_fc2",
|
| 109 |
+
"model.visual.blocks.16.attn.qkv",
|
| 110 |
+
"model.visual.blocks.16.attn.proj",
|
| 111 |
+
"model.visual.blocks.16.mlp.linear_fc1",
|
| 112 |
+
"model.visual.blocks.16.mlp.linear_fc2",
|
| 113 |
+
"model.visual.blocks.17.attn.qkv",
|
| 114 |
+
"model.visual.blocks.17.attn.proj",
|
| 115 |
+
"model.visual.blocks.17.mlp.linear_fc1",
|
| 116 |
+
"model.visual.blocks.17.mlp.linear_fc2",
|
| 117 |
+
"model.visual.blocks.18.attn.qkv",
|
| 118 |
+
"model.visual.blocks.18.attn.proj",
|
| 119 |
+
"model.visual.blocks.18.mlp.linear_fc1",
|
| 120 |
+
"model.visual.blocks.18.mlp.linear_fc2",
|
| 121 |
+
"model.visual.blocks.19.attn.qkv",
|
| 122 |
+
"model.visual.blocks.19.attn.proj",
|
| 123 |
+
"model.visual.blocks.19.mlp.linear_fc1",
|
| 124 |
+
"model.visual.blocks.19.mlp.linear_fc2",
|
| 125 |
+
"model.visual.blocks.20.attn.qkv",
|
| 126 |
+
"model.visual.blocks.20.attn.proj",
|
| 127 |
+
"model.visual.blocks.20.mlp.linear_fc1",
|
| 128 |
+
"model.visual.blocks.20.mlp.linear_fc2",
|
| 129 |
+
"model.visual.blocks.21.attn.qkv",
|
| 130 |
+
"model.visual.blocks.21.attn.proj",
|
| 131 |
+
"model.visual.blocks.21.mlp.linear_fc1",
|
| 132 |
+
"model.visual.blocks.21.mlp.linear_fc2",
|
| 133 |
+
"model.visual.blocks.22.attn.qkv",
|
| 134 |
+
"model.visual.blocks.22.attn.proj",
|
| 135 |
+
"model.visual.blocks.22.mlp.linear_fc1",
|
| 136 |
+
"model.visual.blocks.22.mlp.linear_fc2",
|
| 137 |
+
"model.visual.blocks.23.attn.qkv",
|
| 138 |
+
"model.visual.blocks.23.attn.proj",
|
| 139 |
+
"model.visual.blocks.23.mlp.linear_fc1",
|
| 140 |
+
"model.visual.blocks.23.mlp.linear_fc2",
|
| 141 |
+
"model.visual.blocks.24.attn.qkv",
|
| 142 |
+
"model.visual.blocks.24.attn.proj",
|
| 143 |
+
"model.visual.blocks.24.mlp.linear_fc1",
|
| 144 |
+
"model.visual.blocks.24.mlp.linear_fc2",
|
| 145 |
+
"model.visual.blocks.25.attn.qkv",
|
| 146 |
+
"model.visual.blocks.25.attn.proj",
|
| 147 |
+
"model.visual.blocks.25.mlp.linear_fc1",
|
| 148 |
+
"model.visual.blocks.25.mlp.linear_fc2",
|
| 149 |
+
"model.visual.blocks.26.attn.qkv",
|
| 150 |
+
"model.visual.blocks.26.attn.proj",
|
| 151 |
+
"model.visual.blocks.26.mlp.linear_fc1",
|
| 152 |
+
"model.visual.blocks.26.mlp.linear_fc2",
|
| 153 |
+
"model.visual.merger.linear_fc1",
|
| 154 |
+
"model.visual.merger.linear_fc2",
|
| 155 |
+
"model.visual.deepstack_merger_list.0.linear_fc1",
|
| 156 |
+
"model.visual.deepstack_merger_list.0.linear_fc2",
|
| 157 |
+
"model.visual.deepstack_merger_list.1.linear_fc1",
|
| 158 |
+
"model.visual.deepstack_merger_list.1.linear_fc2",
|
| 159 |
+
"model.visual.deepstack_merger_list.2.linear_fc1",
|
| 160 |
+
"model.visual.deepstack_merger_list.2.linear_fc2",
|
| 161 |
+
"model.language_model.layers.0.mlp.gate",
|
| 162 |
+
"model.language_model.layers.1.mlp.gate",
|
| 163 |
+
"model.language_model.layers.2.mlp.gate",
|
| 164 |
+
"model.language_model.layers.3.mlp.gate",
|
| 165 |
+
"model.language_model.layers.4.mlp.gate",
|
| 166 |
+
"model.language_model.layers.5.mlp.gate",
|
| 167 |
+
"model.language_model.layers.6.mlp.gate",
|
| 168 |
+
"model.language_model.layers.7.mlp.gate",
|
| 169 |
+
"model.language_model.layers.8.mlp.gate",
|
| 170 |
+
"model.language_model.layers.9.mlp.gate",
|
| 171 |
+
"model.language_model.layers.10.mlp.gate",
|
| 172 |
+
"model.language_model.layers.11.mlp.gate",
|
| 173 |
+
"model.language_model.layers.12.mlp.gate",
|
| 174 |
+
"model.language_model.layers.13.mlp.gate",
|
| 175 |
+
"model.language_model.layers.14.mlp.gate",
|
| 176 |
+
"model.language_model.layers.15.mlp.gate",
|
| 177 |
+
"model.language_model.layers.16.mlp.gate",
|
| 178 |
+
"model.language_model.layers.17.mlp.gate",
|
| 179 |
+
"model.language_model.layers.18.mlp.gate",
|
| 180 |
+
"model.language_model.layers.19.mlp.gate",
|
| 181 |
+
"model.language_model.layers.20.mlp.gate",
|
| 182 |
+
"model.language_model.layers.21.mlp.gate",
|
| 183 |
+
"model.language_model.layers.22.mlp.gate",
|
| 184 |
+
"model.language_model.layers.23.mlp.gate",
|
| 185 |
+
"model.language_model.layers.24.mlp.gate",
|
| 186 |
+
"model.language_model.layers.25.mlp.gate",
|
| 187 |
+
"model.language_model.layers.26.mlp.gate",
|
| 188 |
+
"model.language_model.layers.27.mlp.gate",
|
| 189 |
+
"model.language_model.layers.28.mlp.gate",
|
| 190 |
+
"model.language_model.layers.29.mlp.gate",
|
| 191 |
+
"model.language_model.layers.30.mlp.gate",
|
| 192 |
+
"model.language_model.layers.31.mlp.gate",
|
| 193 |
+
"model.language_model.layers.32.mlp.gate",
|
| 194 |
+
"model.language_model.layers.33.mlp.gate",
|
| 195 |
+
"model.language_model.layers.34.mlp.gate",
|
| 196 |
+
"model.language_model.layers.35.mlp.gate",
|
| 197 |
+
"model.language_model.layers.36.mlp.gate",
|
| 198 |
+
"model.language_model.layers.37.mlp.gate",
|
| 199 |
+
"model.language_model.layers.38.mlp.gate",
|
| 200 |
+
"model.language_model.layers.39.mlp.gate",
|
| 201 |
+
"model.language_model.layers.40.mlp.gate",
|
| 202 |
+
"model.language_model.layers.41.mlp.gate",
|
| 203 |
+
"model.language_model.layers.42.mlp.gate",
|
| 204 |
+
"model.language_model.layers.43.mlp.gate",
|
| 205 |
+
"model.language_model.layers.44.mlp.gate",
|
| 206 |
+
"model.language_model.layers.45.mlp.gate",
|
| 207 |
+
"model.language_model.layers.46.mlp.gate",
|
| 208 |
+
"model.language_model.layers.47.mlp.gate",
|
| 209 |
+
"model.language_model.layers.48.mlp.gate",
|
| 210 |
+
"model.language_model.layers.49.mlp.gate",
|
| 211 |
+
"model.language_model.layers.50.mlp.gate",
|
| 212 |
+
"model.language_model.layers.51.mlp.gate",
|
| 213 |
+
"model.language_model.layers.52.mlp.gate",
|
| 214 |
+
"model.language_model.layers.53.mlp.gate",
|
| 215 |
+
"model.language_model.layers.54.mlp.gate",
|
| 216 |
+
"model.language_model.layers.55.mlp.gate",
|
| 217 |
+
"model.language_model.layers.56.mlp.gate",
|
| 218 |
+
"model.language_model.layers.57.mlp.gate",
|
| 219 |
+
"model.language_model.layers.58.mlp.gate",
|
| 220 |
+
"model.language_model.layers.59.mlp.gate",
|
| 221 |
+
"model.language_model.layers.60.mlp.gate",
|
| 222 |
+
"model.language_model.layers.61.mlp.gate",
|
| 223 |
+
"model.language_model.layers.62.mlp.gate",
|
| 224 |
+
"model.language_model.layers.63.mlp.gate",
|
| 225 |
+
"model.language_model.layers.64.mlp.gate",
|
| 226 |
+
"model.language_model.layers.65.mlp.gate",
|
| 227 |
+
"model.language_model.layers.66.mlp.gate",
|
| 228 |
+
"model.language_model.layers.67.mlp.gate",
|
| 229 |
+
"model.language_model.layers.68.mlp.gate",
|
| 230 |
+
"model.language_model.layers.69.mlp.gate",
|
| 231 |
+
"model.language_model.layers.70.mlp.gate",
|
| 232 |
+
"model.language_model.layers.71.mlp.gate",
|
| 233 |
+
"model.language_model.layers.72.mlp.gate",
|
| 234 |
+
"model.language_model.layers.73.mlp.gate",
|
| 235 |
+
"model.language_model.layers.74.mlp.gate",
|
| 236 |
+
"model.language_model.layers.75.mlp.gate",
|
| 237 |
+
"model.language_model.layers.76.mlp.gate",
|
| 238 |
+
"model.language_model.layers.77.mlp.gate",
|
| 239 |
+
"model.language_model.layers.78.mlp.gate",
|
| 240 |
+
"model.language_model.layers.79.mlp.gate",
|
| 241 |
+
"model.language_model.layers.80.mlp.gate",
|
| 242 |
+
"model.language_model.layers.81.mlp.gate",
|
| 243 |
+
"model.language_model.layers.82.mlp.gate",
|
| 244 |
+
"model.language_model.layers.83.mlp.gate",
|
| 245 |
+
"model.language_model.layers.84.mlp.gate",
|
| 246 |
+
"model.language_model.layers.85.mlp.gate",
|
| 247 |
+
"model.language_model.layers.86.mlp.gate",
|
| 248 |
+
"model.language_model.layers.87.mlp.gate",
|
| 249 |
+
"model.language_model.layers.88.mlp.gate",
|
| 250 |
+
"model.language_model.layers.89.mlp.gate",
|
| 251 |
+
"model.language_model.layers.90.mlp.gate",
|
| 252 |
+
"model.language_model.layers.91.mlp.gate",
|
| 253 |
+
"model.language_model.layers.92.mlp.gate",
|
| 254 |
+
"model.language_model.layers.93.mlp.gate",
|
| 255 |
+
"lm_head"
|
| 256 |
+
],
|
| 257 |
+
"kv_cache_scheme": null,
|
| 258 |
+
"quant_method": "compressed-tensors",
|
| 259 |
+
"quantization_status": "compressed",
|
| 260 |
+
"sparsity_config": {},
|
| 261 |
+
"transform_config": {},
|
| 262 |
+
"version": "0.12.3.dev8+gdf6fd15.d20251014"
|
| 263 |
+
},
|
| 264 |
+
"text_config": {
|
| 265 |
+
"attention_bias": false,
|
| 266 |
+
"attention_dropout": 0.0,
|
| 267 |
+
"bos_token_id": 151643,
|
| 268 |
+
"decoder_sparse_step": 1,
|
| 269 |
+
"dtype": "bfloat16",
|
| 270 |
+
"eos_token_id": 151645,
|
| 271 |
+
"head_dim": 128,
|
| 272 |
+
"hidden_act": "silu",
|
| 273 |
+
"hidden_size": 4096,
|
| 274 |
+
"initializer_range": 0.02,
|
| 275 |
+
"intermediate_size": 12288,
|
| 276 |
+
"max_position_embeddings": 262144,
|
| 277 |
+
"mlp_only_layers": [],
|
| 278 |
+
"model_type": "qwen3_vl_moe_text",
|
| 279 |
+
"moe_intermediate_size": 1536,
|
| 280 |
+
"norm_topk_prob": true,
|
| 281 |
+
"num_attention_heads": 64,
|
| 282 |
+
"num_experts": 128,
|
| 283 |
+
"num_experts_per_tok": 8,
|
| 284 |
+
"num_hidden_layers": 94,
|
| 285 |
+
"num_key_value_heads": 4,
|
| 286 |
+
"rms_norm_eps": 1e-06,
|
| 287 |
+
"rope_scaling": {
|
| 288 |
+
"mrope_interleaved": true,
|
| 289 |
+
"mrope_section": [
|
| 290 |
+
24,
|
| 291 |
+
20,
|
| 292 |
+
20
|
| 293 |
+
],
|
| 294 |
+
"rope_type": "default"
|
| 295 |
+
},
|
| 296 |
+
"rope_theta": 5000000,
|
| 297 |
+
"router_aux_loss_coef": 0.001,
|
| 298 |
+
"use_cache": true,
|
| 299 |
+
"vocab_size": 151936
|
| 300 |
+
},
|
| 301 |
+
"tie_word_embeddings": false,
|
| 302 |
+
"transformers_version": "4.57.0",
|
| 303 |
+
"video_token_id": 151656,
|
| 304 |
+
"vision_config": {
|
| 305 |
+
"deepstack_visual_indexes": [
|
| 306 |
+
8,
|
| 307 |
+
16,
|
| 308 |
+
24
|
| 309 |
+
],
|
| 310 |
+
"depth": 27,
|
| 311 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 312 |
+
"hidden_size": 1152,
|
| 313 |
+
"in_channels": 3,
|
| 314 |
+
"initializer_range": 0.02,
|
| 315 |
+
"intermediate_size": 4304,
|
| 316 |
+
"model_type": "qwen3_vl_moe",
|
| 317 |
+
"num_heads": 16,
|
| 318 |
+
"num_position_embeddings": 2304,
|
| 319 |
+
"out_hidden_size": 4096,
|
| 320 |
+
"patch_size": 16,
|
| 321 |
+
"spatial_merge_size": 2,
|
| 322 |
+
"temporal_patch_size": 2
|
| 323 |
+
},
|
| 324 |
+
"vision_end_token_id": 151653,
|
| 325 |
+
"vision_start_token_id": 151652
|
| 326 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"temperature": 0.7,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.8,
|
| 12 |
+
"transformers_version": "4.57.0"
|
| 13 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7822beadabce2cad8d4584f01a2f51a56a47685610d4158bc335362b6b894b91
|
| 3 |
+
size 4999939440
|
model-00002-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b1845e6a0f4c5ca9ffe41f1dbbb1b8216a756ff831bd3de674eb49d770bfcff
|
| 3 |
+
size 4999665504
|
model-00003-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cddd29da8c5094ef629e888899ee1563b88468247816c1c9f487297db0444e14
|
| 3 |
+
size 5000570208
|
model-00004-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8da0594e03d3844cae7537a8fb6f993331840f800be3b7269c26ed38a535b32c
|
| 3 |
+
size 5000062648
|
model-00005-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3104c856540779ea9f29deee3f20e918cb47225a4eb98ac27d9ca64f3ca086ef
|
| 3 |
+
size 4999671160
|
model-00006-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d5112c8282c958fa2860d386faa8bf455687ab530293de03ecf01ddfa5d5169
|
| 3 |
+
size 5000575440
|
model-00007-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cff9c7b937458351a128a86785bd6f07eadf75da5d3f6166659edcf35634b951
|
| 3 |
+
size 5000064536
|
model-00008-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c033a09e28c4638b67480e3b8624d15019ec837625d7576536a66bd3eaaf8f66
|
| 3 |
+
size 5000575544
|
model-00009-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdf9e7f4204fd7ceb086bcc5876852e988166cd6668282c30c91aa6b016228be
|
| 3 |
+
size 5000064432
|
model-00010-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb97848ea4b65ab6617ef632b0959d7a9d09a78440e294a3bfe2f5158a18eb2c
|
| 3 |
+
size 5000575768
|
model-00011-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:440e8849f7b59cdabd4b0e4874d1d209cedc75f1759edf8f51bd4ff8f1a426d3
|
| 3 |
+
size 5000064200
|
model-00012-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96e34b7ccc07ae5c79e0ab27ef50c449a32717b11ea0a3b1b998a021641739b0
|
| 3 |
+
size 4999671168
|
model-00013-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:974e52e6316bae117c173ba1de2abe721fd3754df874fcaf46606353670cbb6b
|
| 3 |
+
size 5000575448
|
model-00014-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16f044e2cee7f1bfaaad6885ca864e0d0e24c949368e5cf1b244adfa8f600406
|
| 3 |
+
size 5000064528
|
model-00015-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70bab4c1d7ac97438b9c4d0214af89e8b794e468d44dbb4baf19f4026aaff86f
|
| 3 |
+
size 5000575536
|
model-00016-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10cdf6cf4c022710ba5410caa50cad4cd694784c8dcf7a060c7f704ccaccac81
|
| 3 |
+
size 5000064440
|
model-00017-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cfa55eb279b68c79eb38bd511261fef803ad8daa691ceea00851dd9ff9d54b9
|
| 3 |
+
size 5000575760
|
model-00018-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54ba7af46cca6613c9444d669f676b066d58b80007265c222f7de5dcf065d4b3
|
| 3 |
+
size 5000064216
|
model-00019-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6659ac2e4699faa1bcabee5b2ca4bf93ad128ccd6eb01c9bf9ce2dea180d2c40
|
| 3 |
+
size 4999671168
|
model-00020-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f97534e90a27902601f3fd4374c52300762481cae02e582da38511a16647b74
|
| 3 |
+
size 5000575440
|
model-00021-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c55204018537b303caa83928425e56a09eb5c2317e7f4fcd2bf10b318bd8fe7
|
| 3 |
+
size 5000064528
|
model-00022-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1320d5d20e10aa9d8d24c0bc348689c64f629118f910dfa6fab4f11363e01ac
|
| 3 |
+
size 5000575528
|
model-00023-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:140fe7ab1694e5c289db7368b7d0ed6ab65ee037d9667f0e6481e358373e26c9
|
| 3 |
+
size 5000064440
|
model-00024-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ce01545aebdfbd9be914eecfda31416bc6c2e06164e2abceb7a3f18e3e18ad9
|
| 3 |
+
size 5000575752
|
model-00025-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99823e4f2e57e4c728673201d22241398372d9d86e546f2d92924d3a56d36542
|
| 3 |
+
size 5000064224
|
model-00026-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f5f145277a3ed16ee2cae8935d504c5b278965531a7aa1f62cb931e04df01df
|
| 3 |
+
size 4999671160
|
model-00027-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea0fb6e92b589abbf9ec8127ae6fdf51eea7712c61b64f085fd0618734f9fe1e
|
| 3 |
+
size 4025387208
|
model-00028-of-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93db8efcfef1d92475e220e0b35fc7c66913b9abec01a58c27fcd39cadf85d93
|
| 3 |
+
size 1244659840
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2497b9e4c7abb83b568ce1ca10b5b903b57dcedb533128aaa0ed90d513202c1
|
| 3 |
+
size 16821720
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": true,
|
| 5 |
+
"device": null,
|
| 6 |
+
"disable_grouping": null,
|
| 7 |
+
"do_center_crop": null,
|
| 8 |
+
"do_convert_rgb": true,
|
| 9 |
+
"do_normalize": true,
|
| 10 |
+
"do_pad": null,
|
| 11 |
+
"do_rescale": true,
|
| 12 |
+
"do_resize": true,
|
| 13 |
+
"image_mean": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"image_processor_type": "Qwen2VLImageProcessorFast",
|
| 19 |
+
"image_std": [
|
| 20 |
+
0.5,
|
| 21 |
+
0.5,
|
| 22 |
+
0.5
|
| 23 |
+
],
|
| 24 |
+
"input_data_format": null,
|
| 25 |
+
"max_pixels": null,
|
| 26 |
+
"merge_size": 2,
|
| 27 |
+
"min_pixels": null,
|
| 28 |
+
"pad_size": null,
|
| 29 |
+
"patch_size": 16,
|
| 30 |
+
"processor_class": "Qwen3VLProcessor",
|
| 31 |
+
"resample": 3,
|
| 32 |
+
"rescale_factor": 0.00392156862745098,
|
| 33 |
+
"return_tensors": null,
|
| 34 |
+
"size": {
|
| 35 |
+
"longest_edge": 16777216,
|
| 36 |
+
"shortest_edge": 65536
|
| 37 |
+
},
|
| 38 |
+
"temporal_patch_size": 2
|
| 39 |
+
}
|
recipe.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default_stage:
|
| 2 |
+
default_modifiers:
|
| 3 |
+
QuantizationModifier:
|
| 4 |
+
targets: [Linear]
|
| 5 |
+
ignore: ['re:.*lm_head', 're:visual.*', 're:model.visual.*', 're:.*mlp.gate$']
|
| 6 |
+
scheme: NVFP4
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|im_end|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22a69a7b1f8af6d6abf8709b25d51a33d11752da7633c7e065affe8497cb5782
|
| 3 |
+
size 11422755
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
}
|
| 213 |
+
},
|
| 214 |
+
"additional_special_tokens": [
|
| 215 |
+
"<|im_start|>",
|
| 216 |
+
"<|im_end|>",
|
| 217 |
+
"<|object_ref_start|>",
|
| 218 |
+
"<|object_ref_end|>",
|
| 219 |
+
"<|box_start|>",
|
| 220 |
+
"<|box_end|>",
|
| 221 |
+
"<|quad_start|>",
|
| 222 |
+
"<|quad_end|>",
|
| 223 |
+
"<|vision_start|>",
|
| 224 |
+
"<|vision_end|>",
|
| 225 |
+
"<|vision_pad|>",
|
| 226 |
+
"<|image_pad|>",
|
| 227 |
+
"<|video_pad|>"
|
| 228 |
+
],
|
| 229 |
+
"bos_token": null,
|
| 230 |
+
"clean_up_tokenization_spaces": false,
|
| 231 |
+
"eos_token": "<|im_end|>",
|
| 232 |
+
"errors": "replace",
|
| 233 |
+
"extra_special_tokens": {},
|
| 234 |
+
"model_max_length": 262144,
|
| 235 |
+
"pad_token": "<|endoftext|>",
|
| 236 |
+
"processor_class": "Qwen3VLProcessor",
|
| 237 |
+
"split_special_tokens": false,
|
| 238 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 239 |
+
"unk_token": null
|
| 240 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": true,
|
| 5 |
+
"device": null,
|
| 6 |
+
"do_center_crop": null,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"do_sample_frames": true,
|
| 12 |
+
"fps": 2,
|
| 13 |
+
"image_mean": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"image_std": [
|
| 19 |
+
0.5,
|
| 20 |
+
0.5,
|
| 21 |
+
0.5
|
| 22 |
+
],
|
| 23 |
+
"input_data_format": null,
|
| 24 |
+
"max_frames": 768,
|
| 25 |
+
"merge_size": 2,
|
| 26 |
+
"min_frames": 4,
|
| 27 |
+
"num_frames": null,
|
| 28 |
+
"pad_size": null,
|
| 29 |
+
"patch_size": 16,
|
| 30 |
+
"processor_class": "Qwen3VLProcessor",
|
| 31 |
+
"resample": 3,
|
| 32 |
+
"rescale_factor": 0.00392156862745098,
|
| 33 |
+
"return_metadata": false,
|
| 34 |
+
"size": {
|
| 35 |
+
"longest_edge": 25165824,
|
| 36 |
+
"shortest_edge": 4096
|
| 37 |
+
},
|
| 38 |
+
"temporal_patch_size": 2,
|
| 39 |
+
"video_metadata": null,
|
| 40 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 41 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|