Image-Text-to-Text
Transformers
Safetensors
qwen3_5
qwen3.8
agentic
vision-language
tool-calling
quantized
nvfp4
conversational
8-bit precision
modelopt
Instructions to use reality-interface/qwen3.8-27b-agentic-nvfp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reality-interface/qwen3.8-27b-agentic-nvfp4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="reality-interface/qwen3.8-27b-agentic-nvfp4") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("reality-interface/qwen3.8-27b-agentic-nvfp4") model = AutoModelForMultimodalLM.from_pretrained("reality-interface/qwen3.8-27b-agentic-nvfp4", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reality-interface/qwen3.8-27b-agentic-nvfp4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reality-interface/qwen3.8-27b-agentic-nvfp4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reality-interface/qwen3.8-27b-agentic-nvfp4", "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/reality-interface/qwen3.8-27b-agentic-nvfp4
- SGLang
How to use reality-interface/qwen3.8-27b-agentic-nvfp4 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 "reality-interface/qwen3.8-27b-agentic-nvfp4" \ --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": "reality-interface/qwen3.8-27b-agentic-nvfp4", "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 "reality-interface/qwen3.8-27b-agentic-nvfp4" \ --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": "reality-interface/qwen3.8-27b-agentic-nvfp4", "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 reality-interface/qwen3.8-27b-agentic-nvfp4 with Docker Model Runner:
docker model run hf.co/reality-interface/qwen3.8-27b-agentic-nvfp4
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- LICENSE +18 -0
- README.md +273 -0
- assets/gowtham-sridhar.jpg +0 -0
- chat_template.jinja +284 -0
- config.json +324 -0
- crc32.txt +3 -0
- generation_config.json +13 -0
- hf_quant_config.json +161 -0
- merges.txt +0 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +21 -0
- processor_config.json +60 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
- video_preprocessor_config.json +21 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
|
| 2 |
+
|
| 3 |
+
Copyright © 2026 Gowtham Sridhar
|
| 4 |
+
|
| 5 |
+
This license applies only to rights held by Gowtham Sridhar. Third-party and upstream materials remain subject to their applicable licenses and notices.
|
| 6 |
+
|
| 7 |
+
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
| 8 |
+
|
| 9 |
+
You are free to share — copy and redistribute the material in any medium or format — under the following terms:
|
| 10 |
+
|
| 11 |
+
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
|
| 12 |
+
- NonCommercial — You may not use the material for commercial purposes.
|
| 13 |
+
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
|
| 14 |
+
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
| 15 |
+
|
| 16 |
+
The complete legal code is available at:
|
| 17 |
+
|
| 18 |
+
https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
|
README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-nd-4.0
|
| 3 |
+
base_model: Qwen/Qwen3.8-27B
|
| 4 |
+
library_name: transformers
|
| 5 |
+
pipeline_tag: image-text-to-text
|
| 6 |
+
tags:
|
| 7 |
+
- qwen3.8
|
| 8 |
+
- agentic
|
| 9 |
+
- vision-language
|
| 10 |
+
- tool-calling
|
| 11 |
+
- quantized
|
| 12 |
+
- nvfp4
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ✦ qwen3.8-27b-agentic-nvfp4
|
| 16 |
+
|
| 17 |
+
<p align="center">
|
| 18 |
+
<strong>Published and maintained by <a href="https://www.gowthamsridhar.com/">Gowtham Sridhar</a></strong>
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
An NVFP4 checkpoint of [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B), prepared for agentic and multimodal applications. It combines native text, image, and video understanding with configurable reasoning and structured tool calling.
|
| 22 |
+
|
| 23 |
+
> **Quick links:** [Base model](https://huggingface.co/Qwen/Qwen3.8-27B) · [DSpark companion](https://huggingface.co/gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4) · [vLLM documentation](https://docs.vllm.ai/en/latest/) · [SGLang documentation](https://docs.sglang.ai/)
|
| 24 |
+
|
| 25 |
+
## ✨ What this model is for
|
| 26 |
+
|
| 27 |
+
| Capability | Description |
|
| 28 |
+
| --- | --- |
|
| 29 |
+
| Agentic workflows | Tool use, multi-step tasks, and structured responses |
|
| 30 |
+
| Multimodal input | Text, images, and video |
|
| 31 |
+
| Reasoning control | Thinking can be enabled, preserved, or adjusted per request |
|
| 32 |
+
| Deployment | Pre-quantized NVFP4 weights for compatible serving runtimes |
|
| 33 |
+
|
| 34 |
+
The model supports a native context window of up to 262,144 tokens. Test the context length, memory settings, and tool-call parser in your own deployment before production use.
|
| 35 |
+
|
| 36 |
+
## 🧭 Before you start
|
| 37 |
+
|
| 38 |
+
Set the model identifier once. Replace the placeholder with the Hugging Face repository name after publishing, or use a local path.
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
export MODEL_ID="<your-hugging-face-namespace>/qwen3.8-27b-agentic-nvfp4"
|
| 42 |
+
# or: export MODEL_ID="/path/to/qwen3.8-27b-agentic-nvfp4"
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
This checkpoint contains ModelOpt NVFP4 metadata. Use a current runtime that supports the model architecture and this quantization format. Do not pass a second quantization option when loading this already-quantized checkpoint.
|
| 46 |
+
|
| 47 |
+
## 🚀 Serve with vLLM
|
| 48 |
+
|
| 49 |
+
Start with standard serving:
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
vllm serve "$MODEL_ID" \
|
| 53 |
+
--trust-remote-code \
|
| 54 |
+
--kv-cache-dtype fp8 \
|
| 55 |
+
--max-model-len 262144 \
|
| 56 |
+
--reasoning-parser qwen3 \
|
| 57 |
+
--enable-auto-tool-choice \
|
| 58 |
+
--tool-call-parser qwen3_xml
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
The template emits XML tool calls by default. If your installed vLLM release does not provide the `qwen3_xml` parser, omit the last two tool-choice flags and handle tool calls in your application.
|
| 62 |
+
|
| 63 |
+
### Choose one serving mode
|
| 64 |
+
|
| 65 |
+
| Mode | When to use it | Server option |
|
| 66 |
+
| --- | --- | --- |
|
| 67 |
+
| Standard | First run, long-context work, or highest compatibility | No speculative option |
|
| 68 |
+
| Native MTP | The installed vLLM release recognizes this model's MTP head | `--speculative-config '{"method":"mtp",...}'` |
|
| 69 |
+
| DSpark | Using the paired external draft model in an SGLang build with DSpark support | `--speculative-algorithm DSPARK` |
|
| 70 |
+
|
| 71 |
+
Start with standard serving and confirm a normal chat request first. Then enable exactly one speculative mode. Do not combine native MTP and DSpark in the same server.
|
| 72 |
+
|
| 73 |
+
### 💬 OpenAI-compatible request
|
| 74 |
+
|
| 75 |
+
After the server starts, use the OpenAI-compatible endpoint:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from openai import OpenAI
|
| 79 |
+
|
| 80 |
+
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
|
| 81 |
+
|
| 82 |
+
response = client.chat.completions.create(
|
| 83 |
+
model="qwen3.8-27b-agentic-nvfp4",
|
| 84 |
+
messages=[
|
| 85 |
+
{"role": "user", "content": "Outline a practical plan for organizing a research project."}
|
| 86 |
+
],
|
| 87 |
+
temperature=0.7,
|
| 88 |
+
)
|
| 89 |
+
|
| 90 |
+
print(response.choices[0].message.content)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
### 🧠 Reasoning and direct-response modes
|
| 94 |
+
|
| 95 |
+
Pass chat-template controls in `extra_body`. The following request keeps the default high reasoning effort:
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
response = client.chat.completions.create(
|
| 99 |
+
model="qwen3.8-27b-agentic-nvfp4",
|
| 100 |
+
messages=[{"role": "user", "content": "Compare two project plans and recommend one."}],
|
| 101 |
+
extra_body={
|
| 102 |
+
"chat_template_kwargs": {
|
| 103 |
+
"enable_thinking": True,
|
| 104 |
+
"reasoning_effort": "xhigh",
|
| 105 |
+
"preserve_thinking": True,
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
)
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
For a concise direct response, disable thinking explicitly:
|
| 112 |
+
|
| 113 |
+
```python
|
| 114 |
+
extra_body={"chat_template_kwargs": {"enable_thinking": False}}
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
### 🛠️ Tool calling
|
| 118 |
+
|
| 119 |
+
The standard vLLM command above enables automatic tool selection when the `qwen3_xml` parser is available. Supply tools using the OpenAI-compatible schema:
|
| 120 |
+
|
| 121 |
+
```python
|
| 122 |
+
tools = [
|
| 123 |
+
{
|
| 124 |
+
"type": "function",
|
| 125 |
+
"function": {
|
| 126 |
+
"name": "get_weather",
|
| 127 |
+
"description": "Get the current weather for a city.",
|
| 128 |
+
"parameters": {
|
| 129 |
+
"type": "object",
|
| 130 |
+
"properties": {"city": {"type": "string"}},
|
| 131 |
+
"required": ["city"],
|
| 132 |
+
},
|
| 133 |
+
},
|
| 134 |
+
}
|
| 135 |
+
]
|
| 136 |
+
|
| 137 |
+
response = client.chat.completions.create(
|
| 138 |
+
model="qwen3.8-27b-agentic-nvfp4",
|
| 139 |
+
messages=[{"role": "user", "content": "What is the weather in Vienna?"}],
|
| 140 |
+
tools=tools,
|
| 141 |
+
tool_choice="auto",
|
| 142 |
+
extra_body={
|
| 143 |
+
"chat_template_kwargs": {
|
| 144 |
+
"enable_thinking": False,
|
| 145 |
+
"auto_disable_thinking_with_tools": True,
|
| 146 |
+
}
|
| 147 |
+
},
|
| 148 |
+
)
|
| 149 |
+
|
| 150 |
+
print(response.choices[0].message.tool_calls)
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
Execute returned tools in your application, append their results as `tool` messages, then send the updated conversation back to the model. The template accepts tool arguments provided either as an object or as a JSON string.
|
| 154 |
+
|
| 155 |
+
### 🖼️ Image input
|
| 156 |
+
|
| 157 |
+
The OpenAI-compatible endpoint accepts image content alongside text. The server applies the model's chat template and image placeholders automatically:
|
| 158 |
+
|
| 159 |
+
```python
|
| 160 |
+
response = client.chat.completions.create(
|
| 161 |
+
model="qwen3.8-27b-agentic-nvfp4",
|
| 162 |
+
messages=[
|
| 163 |
+
{
|
| 164 |
+
"role": "user",
|
| 165 |
+
"content": [
|
| 166 |
+
{"type": "text", "text": "Describe this image and list the main objects."},
|
| 167 |
+
{"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}},
|
| 168 |
+
],
|
| 169 |
+
}
|
| 170 |
+
],
|
| 171 |
+
)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
## ⚡ Native MTP with vLLM
|
| 175 |
+
|
| 176 |
+
This checkpoint includes a native multi-token prediction (MTP) head. MTP lets the model propose a small number of tokens before the target model verifies them. Start with one speculative token, validate your workload, and increase only if your environment benefits.
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
vllm serve "$MODEL_ID" \
|
| 180 |
+
--trust-remote-code \
|
| 181 |
+
--kv-cache-dtype fp8 \
|
| 182 |
+
--max-model-len 262144 \
|
| 183 |
+
--speculative-config '{"method":"mtp","num_speculative_tokens":1}'
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
`num_speculative_tokens` is the speculative depth. Keep it at `1` for the first validation run. If the server starts and your output checks pass, tune one setting at a time and retain the configuration that works best for your workload.
|
| 187 |
+
|
| 188 |
+
Use either native MTP or the external DSpark draft model below—not both in the same server. vLLM requires MTP support for the model family in the installed release; if startup rejects the MTP configuration, update to a release that supports this architecture or use standard serving.
|
| 189 |
+
|
| 190 |
+
## 🔗 Serve with SGLang
|
| 191 |
+
|
| 192 |
+
For normal SGLang serving, launch the model first and use the OpenAI-compatible endpoint on port `30000`:
|
| 193 |
+
|
| 194 |
+
```bash
|
| 195 |
+
python3 -m sglang.launch_server \
|
| 196 |
+
--model-path "$MODEL_ID" \
|
| 197 |
+
--trust-remote-code \
|
| 198 |
+
--port 30000
|
| 199 |
+
```
|
| 200 |
+
|
| 201 |
+
For automatic tool-call parsing in SGLang, add `--tool-call-parser qwen3_coder` when that parser is available in your installed build. Otherwise, keep the server unparsed and process the template's XML tool-call blocks in your application.
|
| 202 |
+
|
| 203 |
+
## 🔭 DSpark companion model
|
| 204 |
+
|
| 205 |
+
For draft-model speculative decoding, use [Qwen3.8-27B-DSpark-NVFP4](https://huggingface.co/gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4) as a separate companion checkpoint. DSpark is an alternative to the embedded MTP head: it drafts candidate tokens and the target model verifies them.
|
| 206 |
+
|
| 207 |
+
### DSpark with SGLang
|
| 208 |
+
|
| 209 |
+
DSpark support is actively evolving in SGLang. Use an SGLang build that exposes the `DSPARK` speculative algorithm, then launch the target and draft model together:
|
| 210 |
+
|
| 211 |
+
```bash
|
| 212 |
+
export DSPARK_MODEL_ID="gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4"
|
| 213 |
+
|
| 214 |
+
python -m sglang.launch_server \
|
| 215 |
+
--model-path "$MODEL_ID" \
|
| 216 |
+
--trust-remote-code \
|
| 217 |
+
--speculative-algorithm DSPARK \
|
| 218 |
+
--speculative-draft-model-path "$DSPARK_MODEL_ID" \
|
| 219 |
+
--port 30000
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
SGLang reads the DSpark draft configuration to determine its verification window. Keep the target and draft model versions paired. If the server asks for a draft block size, use the value stored in the DSpark checkpoint rather than an arbitrary override.
|
| 223 |
+
|
| 224 |
+
## 💡 Chat template
|
| 225 |
+
|
| 226 |
+
This chat template has been improved for reliable agentic and tool-calling workflows.
|
| 227 |
+
|
| 228 |
+
| Request option | Default | Purpose |
|
| 229 |
+
| --- | --- | --- |
|
| 230 |
+
| `reasoning_effort` | `xhigh` | Choose `xhigh`, `medium`, or `low` reasoning depth |
|
| 231 |
+
| `enable_thinking` | `true` | Enable or disable thinking output |
|
| 232 |
+
| `preserve_thinking` | `true` | Keep prior thinking in conversation history |
|
| 233 |
+
| `tool_call_format` | `xml` | Use `xml` or `json` tool-call output |
|
| 234 |
+
| `auto_disable_thinking_with_tools` | `false` | Turn off thinking automatically when tools are present |
|
| 235 |
+
| `continue_final_message` | `false` | Continue an assistant message instead of adding a new turn |
|
| 236 |
+
|
| 237 |
+
## 🧩 Transformers
|
| 238 |
+
|
| 239 |
+
```python
|
| 240 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 241 |
+
|
| 242 |
+
model_id = "<your-hugging-face-namespace>/qwen3.8-27b-agentic-nvfp4"
|
| 243 |
+
|
| 244 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 245 |
+
model_id,
|
| 246 |
+
trust_remote_code=True,
|
| 247 |
+
)
|
| 248 |
+
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
| 249 |
+
```
|
| 250 |
+
|
| 251 |
+
Replace `model_id` with the published repository name or local path.
|
| 252 |
+
|
| 253 |
+
## 📌 Model details
|
| 254 |
+
|
| 255 |
+
| Item | Value |
|
| 256 |
+
| --- | --- |
|
| 257 |
+
| Base model | [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) |
|
| 258 |
+
| Architecture | Vision-language, image-text-to-text |
|
| 259 |
+
| Quantization | NVFP4 |
|
| 260 |
+
| Context window | Up to 262,144 tokens |
|
| 261 |
+
| Intended use | Agentic, multimodal, and general-purpose generation |
|
| 262 |
+
|
| 263 |
+
## ✓ Quality and responsible use
|
| 264 |
+
|
| 265 |
+
This release is intended to retain the base model's general-purpose, multimodal, and agentic capabilities. Evaluate quality, tool reliability, safety, and resource use on your own tasks before production deployment.
|
| 266 |
+
|
| 267 |
+
## Attribution
|
| 268 |
+
|
| 269 |
+
This is a derived checkpoint based on Qwen3.8-27B.
|
| 270 |
+
|
| 271 |
+
## License
|
| 272 |
+
|
| 273 |
+
This repository is licensed under [CC BY-NC-ND 4.0](LICENSE). You may share it with attribution for non-commercial purposes. You may not distribute modified versions.
|
assets/gowtham-sridhar.jpg
ADDED
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set template_version = "qwen3.8-gittensor-safe-v2" -%}
|
| 2 |
+
{%- set tool_format = tool_call_format if tool_call_format is defined else "xml" -%}
|
| 3 |
+
{%- set add_vision_id = add_vision_id if add_vision_id is defined else false -%}
|
| 4 |
+
{%- set enable_thinking = enable_thinking if enable_thinking is defined else true -%}
|
| 5 |
+
{%- set preserve_thinking = preserve_thinking if preserve_thinking is defined else true -%}
|
| 6 |
+
{%- set auto_disable_thinking_with_tools = auto_disable_thinking_with_tools if auto_disable_thinking_with_tools is defined else false -%}
|
| 7 |
+
{%- set max_tool_arg_chars = max_tool_arg_chars if max_tool_arg_chars is defined else 0 -%}
|
| 8 |
+
{%- set max_tool_response_chars = max_tool_response_chars if max_tool_response_chars is defined else 0 -%}
|
| 9 |
+
{%- set has_tools = tools is defined and tools and tools is iterable and tools is not mapping -%}
|
| 10 |
+
{%- set image_counter = namespace(value=0) -%}
|
| 11 |
+
{%- set video_counter = namespace(value=0) -%}
|
| 12 |
+
{%- set state = namespace(thinking=enable_thinking, previous_role="") -%}
|
| 13 |
+
{%- if auto_disable_thinking_with_tools and has_tools -%}
|
| 14 |
+
{%- set state.thinking = false -%}
|
| 15 |
+
{%- endif -%}
|
| 16 |
+
|
| 17 |
+
{%- macro render_content(value, count_vision=false, system_content=false) -%}
|
| 18 |
+
{%- if value is string -%}
|
| 19 |
+
{{- value -}}
|
| 20 |
+
{%- elif value is iterable and value is not mapping -%}
|
| 21 |
+
{%- for part in value -%}
|
| 22 |
+
{%- if part is mapping -%}
|
| 23 |
+
{%- set part_type = part.type if part.type is defined else "" -%}
|
| 24 |
+
{%- if part_type == "image" or "image" in part or "image_url" in part -%}
|
| 25 |
+
{%- if system_content -%}
|
| 26 |
+
{{- raise_exception("System/developer messages cannot contain images.") -}}
|
| 27 |
+
{%- endif -%}
|
| 28 |
+
{%- if count_vision -%}
|
| 29 |
+
{%- set image_counter.value = image_counter.value + 1 -%}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{%- if add_vision_id -%}
|
| 32 |
+
{{- "Picture " ~ image_counter.value ~ ": " -}}
|
| 33 |
+
{%- endif -%}
|
| 34 |
+
{{- "<|vision_start|><|image_pad|><|vision_end|>" -}}
|
| 35 |
+
{%- elif part_type == "video" or "video" in part -%}
|
| 36 |
+
{%- if system_content -%}
|
| 37 |
+
{{- raise_exception("System/developer messages cannot contain videos.") -}}
|
| 38 |
+
{%- endif -%}
|
| 39 |
+
{%- if count_vision -%}
|
| 40 |
+
{%- set video_counter.value = video_counter.value + 1 -%}
|
| 41 |
+
{%- endif -%}
|
| 42 |
+
{%- if add_vision_id -%}
|
| 43 |
+
{{- "Video " ~ video_counter.value ~ ": " -}}
|
| 44 |
+
{%- endif -%}
|
| 45 |
+
{{- "<|vision_start|><|video_pad|><|vision_end|>" -}}
|
| 46 |
+
{%- elif "text" in part -%}
|
| 47 |
+
{{- part.text -}}
|
| 48 |
+
{%- else -%}
|
| 49 |
+
{{- raise_exception("Unsupported multimodal content item.") -}}
|
| 50 |
+
{%- endif -%}
|
| 51 |
+
{%- else -%}
|
| 52 |
+
{{- part | string -}}
|
| 53 |
+
{%- endif -%}
|
| 54 |
+
{%- endfor -%}
|
| 55 |
+
{%- elif value is none or value is undefined -%}
|
| 56 |
+
{{- "" -}}
|
| 57 |
+
{%- else -%}
|
| 58 |
+
{{- raise_exception("Unsupported message content type.") -}}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{%- endmacro -%}
|
| 61 |
+
|
| 62 |
+
{%- if not messages -%}
|
| 63 |
+
{{- raise_exception("No messages provided.") -}}
|
| 64 |
+
{%- endif -%}
|
| 65 |
+
|
| 66 |
+
{# Pull only the leading system/developer message into the tool system block. #}
|
| 67 |
+
{%- set first_role = messages[0].role -%}
|
| 68 |
+
{%- if first_role == "system" or first_role == "developer" -%}
|
| 69 |
+
{%- set leading_system = messages[0] -%}
|
| 70 |
+
{%- set conversation = messages[1:] -%}
|
| 71 |
+
{%- else -%}
|
| 72 |
+
{%- set leading_system = none -%}
|
| 73 |
+
{%- set conversation = messages -%}
|
| 74 |
+
{%- endif -%}
|
| 75 |
+
|
| 76 |
+
{%- set system_text = "" -%}
|
| 77 |
+
{%- if leading_system is not none -%}
|
| 78 |
+
{%- set system_text = render_content(leading_system.content, false, true) | trim -%}
|
| 79 |
+
{%- if "<|think_off|>" in system_text -%}
|
| 80 |
+
{%- set state.thinking = false -%}
|
| 81 |
+
{%- set system_text = system_text.split("<|think_off|>") | join("") | trim -%}
|
| 82 |
+
{%- elif "<|think_on|>" in system_text -%}
|
| 83 |
+
{%- set state.thinking = true -%}
|
| 84 |
+
{%- set system_text = system_text.split("<|think_on|>") | join("") | trim -%}
|
| 85 |
+
{%- endif -%}
|
| 86 |
+
{%- endif -%}
|
| 87 |
+
|
| 88 |
+
{# Reasoning-effort steering. Native Qwen3.8 behaviour: xhigh (default), medium, low.
|
| 89 |
+
medium intentionally emits no instructions. Honours the resolved thinking state, so
|
| 90 |
+
enable_thinking=false, <|think_off|> and auto_disable_thinking_with_tools all suppress it. #}
|
| 91 |
+
{%- set reasoning_instructions = "" -%}
|
| 92 |
+
{%- if state.thinking -%}
|
| 93 |
+
{%- set resolved_reasoning_effort = reasoning_effort if (reasoning_effort is defined and reasoning_effort) else "xhigh" -%}
|
| 94 |
+
{%- if resolved_reasoning_effort not in ("xhigh", "medium", "low") -%}
|
| 95 |
+
{{- raise_exception("Unexpected reasoning effort " ~ resolved_reasoning_effort ~ ". Supported types are xhigh (default), medium, and low.") -}}
|
| 96 |
+
{%- endif -%}
|
| 97 |
+
{%- if resolved_reasoning_effort == "xhigh" -%}
|
| 98 |
+
{%- 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." -%}
|
| 99 |
+
{%- elif resolved_reasoning_effort == "low" -%}
|
| 100 |
+
{%- set reasoning_instructions = "Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration." -%}
|
| 101 |
+
{%- endif -%}
|
| 102 |
+
{%- endif -%}
|
| 103 |
+
|
| 104 |
+
{%- if has_tools -%}
|
| 105 |
+
{{- "<|im_start|>system\n" -}}
|
| 106 |
+
{%- if reasoning_instructions -%}
|
| 107 |
+
{{- reasoning_instructions ~ "\n\n" -}}
|
| 108 |
+
{%- endif -%}
|
| 109 |
+
{{- "# Tools\n\nYou have access to the following functions.\n\n<tools>" -}}
|
| 110 |
+
{%- for tool in tools -%}
|
| 111 |
+
{{- "\n" ~ (tool | tojson) -}}
|
| 112 |
+
{%- endfor -%}
|
| 113 |
+
{{- "\n</tools>\n\n" -}}
|
| 114 |
+
{%- if tool_format == "json" -%}
|
| 115 |
+
{{- "When a tool is needed, emit one or more tool calls in this exact structure:\n<tool_call>\n{\"name\": \"function_name\", \"arguments\": {\"parameter\": \"value\"}}\n</tool_call>\n" -}}
|
| 116 |
+
{%- else -%}
|
| 117 |
+
{{- "When a tool is needed, emit one or more tool calls in this exact structure:\n<tool_call>\n<function=function_name>\n<parameter=parameter_name>\nvalue\n</parameter>\n</function>\n</tool_call>\n" -}}
|
| 118 |
+
{%- endif -%}
|
| 119 |
+
{{- "If you call a tool, output only an optional <think>...</think> block followed immediately by the <tool_call> block(s); do not add ordinary assistant text before or after the calls. For multiple calls, emit separate fully closed <tool_call> blocks. If no tool is needed, answer normally without a tool call." -}}
|
| 120 |
+
{%- if system_text -%}
|
| 121 |
+
{{- "\n\n" ~ system_text -}}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{{- "<|im_end|>\n" -}}
|
| 124 |
+
{%- elif system_text or reasoning_instructions -%}
|
| 125 |
+
{{- "<|im_start|>system\n" -}}
|
| 126 |
+
{%- if reasoning_instructions -%}
|
| 127 |
+
{{- reasoning_instructions -}}
|
| 128 |
+
{%- if system_text -%}
|
| 129 |
+
{{- "\n\n" -}}
|
| 130 |
+
{%- endif -%}
|
| 131 |
+
{%- endif -%}
|
| 132 |
+
{{- system_text ~ "<|im_end|>\n" -}}
|
| 133 |
+
{%- endif -%}
|
| 134 |
+
|
| 135 |
+
{# Track the newest real user query. Tool responses are role=tool, so no heuristic is needed. #}
|
| 136 |
+
{%- set query_state = namespace(last_user_index=-1) -%}
|
| 137 |
+
{%- for item in conversation -%}
|
| 138 |
+
{%- if item.role == "user" -%}
|
| 139 |
+
{%- set candidate_user = render_content(item.content, false) | trim -%}
|
| 140 |
+
{%- if not (candidate_user.startswith("<tool_response>") and candidate_user.endswith("</tool_response>")) -%}
|
| 141 |
+
{%- set query_state.last_user_index = loop.index0 -%}
|
| 142 |
+
{%- endif -%}
|
| 143 |
+
{%- endif -%}
|
| 144 |
+
{%- endfor -%}
|
| 145 |
+
|
| 146 |
+
{%- for message in conversation -%}
|
| 147 |
+
{%- set role = message.role -%}
|
| 148 |
+
{%- set system_like = role == "system" or role == "developer" -%}
|
| 149 |
+
{%- set content = render_content(message.content, true, system_like) | trim -%}
|
| 150 |
+
|
| 151 |
+
{%- set wrapped_tool_response = role == "user" and content.startswith("<tool_response>") and content.endswith("</tool_response>") -%}
|
| 152 |
+
{%- if system_like or (role == "user" and not wrapped_tool_response) -%}
|
| 153 |
+
{%- if "<|think_off|>" in content -%}
|
| 154 |
+
{%- set state.thinking = false -%}
|
| 155 |
+
{%- set content = content.split("<|think_off|>") | join("") | trim -%}
|
| 156 |
+
{%- elif "<|think_on|>" in content -%}
|
| 157 |
+
{%- set state.thinking = true -%}
|
| 158 |
+
{%- set content = content.split("<|think_on|>") | join("") | trim -%}
|
| 159 |
+
{%- endif -%}
|
| 160 |
+
{%- endif -%}
|
| 161 |
+
|
| 162 |
+
{%- if system_like -%}
|
| 163 |
+
{{- "<|im_start|>system\n" ~ content ~ "<|im_end|>\n" -}}
|
| 164 |
+
|
| 165 |
+
{%- elif role == "user" -%}
|
| 166 |
+
{{- "<|im_start|>user\n" ~ content ~ "<|im_end|>\n" -}}
|
| 167 |
+
|
| 168 |
+
{%- elif role == "assistant" -%}
|
| 169 |
+
{%- set reasoning = "" -%}
|
| 170 |
+
{%- if message.reasoning_content is defined and message.reasoning_content is not none -%}
|
| 171 |
+
{%- set reasoning = message.reasoning_content if message.reasoning_content is string else (message.reasoning_content | string) -%}
|
| 172 |
+
{%- elif message.thinking is defined and message.thinking is not none -%}
|
| 173 |
+
{%- set reasoning = message.thinking if message.thinking is string else (message.thinking | string) -%}
|
| 174 |
+
{%- else -%}
|
| 175 |
+
{%- set think_close = "" -%}
|
| 176 |
+
{%- set think_open = "<think>" -%}
|
| 177 |
+
{%- if content.startswith("</think>") -%}
|
| 178 |
+
{%- set think_close = "</think>" -%}
|
| 179 |
+
{%- elif content.startswith("</thinking>") -%}
|
| 180 |
+
{%- set think_close = "</thinking>" -%}
|
| 181 |
+
{%- set think_open = "<thinking>" -%}
|
| 182 |
+
{%- elif "\n</think>" in content -%}
|
| 183 |
+
{%- set think_close = "\n</think>" -%}
|
| 184 |
+
{%- elif "\n</thinking>" in content -%}
|
| 185 |
+
{%- set think_close = "\n</thinking>" -%}
|
| 186 |
+
{%- set think_open = "<thinking>" -%}
|
| 187 |
+
{%- elif "\n</ think>" in content -%}
|
| 188 |
+
{%- set think_close = "\n</ think>" -%}
|
| 189 |
+
{%- elif "\n</think >" in content -%}
|
| 190 |
+
{%- set think_close = "\n</think >" -%}
|
| 191 |
+
{%- endif -%}
|
| 192 |
+
{%- if think_close -%}
|
| 193 |
+
{%- set before_close = content.split(think_close)[0] -%}
|
| 194 |
+
{%- set reasoning = before_close.split(think_open)[-1] | trim -%}
|
| 195 |
+
{%- set content = content.split(think_close)[-1] | trim -%}
|
| 196 |
+
{%- endif -%}
|
| 197 |
+
{%- endif -%}
|
| 198 |
+
{%- set reasoning = reasoning | trim -%}
|
| 199 |
+
|
| 200 |
+
{{- "<|im_start|>assistant\n" -}}
|
| 201 |
+
{%- if reasoning and (preserve_thinking or loop.index0 > query_state.last_user_index) -%}
|
| 202 |
+
{{- "<think>\n" ~ reasoning ~ "\n</think>\n\n" -}}
|
| 203 |
+
{%- endif -%}
|
| 204 |
+
{{- content -}}
|
| 205 |
+
|
| 206 |
+
{%- if message.tool_calls is defined and message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping -%}
|
| 207 |
+
{%- for raw_call in message.tool_calls -%}
|
| 208 |
+
{%- set call = raw_call.function if raw_call.function is defined and raw_call.function is not none else raw_call -%}
|
| 209 |
+
{%- if tool_format == "json" -%}
|
| 210 |
+
{%- if content | trim or not loop.first -%}{{- "\n\n" -}}{%- endif -%}
|
| 211 |
+
{%- set serialized_args = "{}" -%}
|
| 212 |
+
{%- if call.arguments is defined and call.arguments is not none -%}
|
| 213 |
+
{%- if call.arguments is mapping -%}
|
| 214 |
+
{%- set serialized_args = call.arguments | tojson -%}
|
| 215 |
+
{%- elif call.arguments is string and call.arguments -%}
|
| 216 |
+
{%- set serialized_args = call.arguments -%}
|
| 217 |
+
{%- endif -%}
|
| 218 |
+
{%- endif -%}
|
| 219 |
+
{{- "<tool_call>\n{\"name\": " ~ (call.name | tojson) ~ ", \"arguments\": " ~ serialized_args ~ "}\n</tool_call>" -}}
|
| 220 |
+
{%- else -%}
|
| 221 |
+
{%- if content | trim or not loop.first -%}{{- "\n\n" -}}{%- endif -%}
|
| 222 |
+
{{- "<tool_call>\n<function=" ~ call.name ~ ">\n" -}}
|
| 223 |
+
{%- if call.arguments is defined and call.arguments is not none -%}
|
| 224 |
+
{%- if call.arguments is mapping -%}
|
| 225 |
+
{%- for arg_name in call.arguments -%}
|
| 226 |
+
{%- set arg_value = call.arguments[arg_name] -%}
|
| 227 |
+
{%- if arg_value is mapping or (arg_value is sequence and arg_value is not string) -%}
|
| 228 |
+
{%- set arg_text = arg_value | tojson -%}
|
| 229 |
+
{%- else -%}
|
| 230 |
+
{%- set arg_text = arg_value | string -%}
|
| 231 |
+
{%- endif -%}
|
| 232 |
+
{{- "<parameter=" ~ arg_name ~ ">\n" -}}
|
| 233 |
+
{%- if max_tool_arg_chars > 0 and arg_text | length > max_tool_arg_chars -%}
|
| 234 |
+
{{- arg_text[:max_tool_arg_chars] ~ "\n[TRUNCATED]" -}}
|
| 235 |
+
{%- else -%}
|
| 236 |
+
{{- arg_text -}}
|
| 237 |
+
{%- endif -%}
|
| 238 |
+
{{- "\n</parameter>\n" -}}
|
| 239 |
+
{%- endfor -%}
|
| 240 |
+
{%- elif call.arguments is string and call.arguments -%}
|
| 241 |
+
{{- call.arguments -}}
|
| 242 |
+
{%- endif -%}
|
| 243 |
+
{%- endif -%}
|
| 244 |
+
{{- "</function>\n</tool_call>" -}}
|
| 245 |
+
{%- endif -%}
|
| 246 |
+
{%- endfor -%}
|
| 247 |
+
{%- endif -%}
|
| 248 |
+
|
| 249 |
+
{# Some runtimes pass this kwarg to Jinja directly. New Transformers also trims via a sentinel. #}
|
| 250 |
+
{%- if not (loop.last and continue_final_message is defined and continue_final_message) -%}
|
| 251 |
+
{{- "<|im_end|>\n" -}}
|
| 252 |
+
{%- endif -%}
|
| 253 |
+
|
| 254 |
+
{%- elif role == "tool" -%}
|
| 255 |
+
{%- if state.previous_role != "tool" -%}
|
| 256 |
+
{{- "<|im_start|>user" -}}
|
| 257 |
+
{%- endif -%}
|
| 258 |
+
{%- if max_tool_response_chars > 0 and content | length > max_tool_response_chars -%}
|
| 259 |
+
{%- set content = content[:max_tool_response_chars] ~ "\n[TRUNCATED]" -%}
|
| 260 |
+
{%- endif -%}
|
| 261 |
+
{{- "\n<tool_response>\n" ~ content ~ "\n</tool_response>" -}}
|
| 262 |
+
{%- if loop.last or conversation[loop.index0 + 1].role != "tool" -%}
|
| 263 |
+
{{- "<|im_end|>\n" -}}
|
| 264 |
+
{%- endif -%}
|
| 265 |
+
|
| 266 |
+
{%- else -%}
|
| 267 |
+
{{- "<|im_start|>user\n[" ~ role ~ "]: " ~ content ~ "<|im_end|>\n" -}}
|
| 268 |
+
{%- endif -%}
|
| 269 |
+
|
| 270 |
+
{%- set state.previous_role = role -%}
|
| 271 |
+
{%- endfor -%}
|
| 272 |
+
|
| 273 |
+
{# Deterministic precedence: a prefilled final assistant turn wins, so the two flags
|
| 274 |
+
together can never emit an unterminated turn followed by a fresh assistant header. #}
|
| 275 |
+
{%- set continuing_final = continue_final_message is defined and continue_final_message
|
| 276 |
+
and conversation and conversation[-1].role == "assistant" -%}
|
| 277 |
+
{%- if add_generation_prompt and not continuing_final -%}
|
| 278 |
+
{{- "<|im_start|>assistant\n" -}}
|
| 279 |
+
{%- if state.thinking -%}
|
| 280 |
+
{{- "<think>\n" -}}
|
| 281 |
+
{%- else -%}
|
| 282 |
+
{{- "<think>\n\n</think>\n\n" -}}
|
| 283 |
+
{%- endif -%}
|
| 284 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 248056,
|
| 7 |
+
"language_model_only": false,
|
| 8 |
+
"model_type": "qwen3_5",
|
| 9 |
+
"text_config": {
|
| 10 |
+
"attention_bias": false,
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"attn_output_gate": true,
|
| 13 |
+
"bos_token_id": 248044,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 248044,
|
| 16 |
+
"full_attention_interval": 4,
|
| 17 |
+
"head_dim": 256,
|
| 18 |
+
"hidden_act": "silu",
|
| 19 |
+
"hidden_size": 5120,
|
| 20 |
+
"initializer_range": 0.02,
|
| 21 |
+
"intermediate_size": 17408,
|
| 22 |
+
"layer_types": [
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"linear_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"linear_attention",
|
| 64 |
+
"linear_attention",
|
| 65 |
+
"linear_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"linear_attention",
|
| 68 |
+
"linear_attention",
|
| 69 |
+
"linear_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"linear_attention",
|
| 72 |
+
"linear_attention",
|
| 73 |
+
"linear_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"linear_attention",
|
| 76 |
+
"linear_attention",
|
| 77 |
+
"linear_attention",
|
| 78 |
+
"full_attention",
|
| 79 |
+
"linear_attention",
|
| 80 |
+
"linear_attention",
|
| 81 |
+
"linear_attention",
|
| 82 |
+
"full_attention",
|
| 83 |
+
"linear_attention",
|
| 84 |
+
"linear_attention",
|
| 85 |
+
"linear_attention",
|
| 86 |
+
"full_attention"
|
| 87 |
+
],
|
| 88 |
+
"linear_conv_kernel_dim": 4,
|
| 89 |
+
"linear_key_head_dim": 128,
|
| 90 |
+
"linear_num_key_heads": 16,
|
| 91 |
+
"linear_num_value_heads": 48,
|
| 92 |
+
"linear_value_head_dim": 128,
|
| 93 |
+
"mamba_ssm_dtype": "float32",
|
| 94 |
+
"max_position_embeddings": 262144,
|
| 95 |
+
"model_type": "qwen3_5_text",
|
| 96 |
+
"mtp_num_hidden_layers": 1,
|
| 97 |
+
"mtp_use_dedicated_embeddings": false,
|
| 98 |
+
"num_attention_heads": 24,
|
| 99 |
+
"num_hidden_layers": 64,
|
| 100 |
+
"num_key_value_heads": 4,
|
| 101 |
+
"output_gate_type": "swish",
|
| 102 |
+
"pad_token_id": null,
|
| 103 |
+
"partial_rotary_factor": 0.25,
|
| 104 |
+
"rms_norm_eps": 1e-06,
|
| 105 |
+
"rope_parameters": {
|
| 106 |
+
"mrope_interleaved": true,
|
| 107 |
+
"mrope_section": [
|
| 108 |
+
11,
|
| 109 |
+
11,
|
| 110 |
+
10
|
| 111 |
+
],
|
| 112 |
+
"partial_rotary_factor": 0.25,
|
| 113 |
+
"rope_theta": 10000000,
|
| 114 |
+
"rope_type": "default"
|
| 115 |
+
},
|
| 116 |
+
"tie_word_embeddings": false,
|
| 117 |
+
"use_cache": true,
|
| 118 |
+
"vocab_size": 248320
|
| 119 |
+
},
|
| 120 |
+
"tie_word_embeddings": false,
|
| 121 |
+
"transformers_version": "5.9.0",
|
| 122 |
+
"video_token_id": 248057,
|
| 123 |
+
"vision_config": {
|
| 124 |
+
"deepstack_visual_indexes": [],
|
| 125 |
+
"depth": 27,
|
| 126 |
+
"dtype": "bfloat16",
|
| 127 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 128 |
+
"hidden_size": 1152,
|
| 129 |
+
"in_channels": 3,
|
| 130 |
+
"initializer_range": 0.02,
|
| 131 |
+
"intermediate_size": 4304,
|
| 132 |
+
"model_type": "qwen3_5_vision",
|
| 133 |
+
"num_heads": 16,
|
| 134 |
+
"num_position_embeddings": 2304,
|
| 135 |
+
"out_hidden_size": 5120,
|
| 136 |
+
"patch_size": 16,
|
| 137 |
+
"spatial_merge_size": 2,
|
| 138 |
+
"temporal_patch_size": 2
|
| 139 |
+
},
|
| 140 |
+
"vision_end_token_id": 248054,
|
| 141 |
+
"vision_start_token_id": 248053,
|
| 142 |
+
"quantization_config": {
|
| 143 |
+
"config_groups": {
|
| 144 |
+
"group_0": {
|
| 145 |
+
"input_activations": {
|
| 146 |
+
"dynamic": false,
|
| 147 |
+
"num_bits": 4,
|
| 148 |
+
"type": "float",
|
| 149 |
+
"group_size": 16
|
| 150 |
+
},
|
| 151 |
+
"weights": {
|
| 152 |
+
"dynamic": false,
|
| 153 |
+
"num_bits": 4,
|
| 154 |
+
"type": "float",
|
| 155 |
+
"group_size": 16
|
| 156 |
+
},
|
| 157 |
+
"targets": [
|
| 158 |
+
"Linear"
|
| 159 |
+
]
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"ignore": [
|
| 163 |
+
"model.language_model.embed_tokens",
|
| 164 |
+
"model.language_model.layers.0.linear_attn.conv1d",
|
| 165 |
+
"model.language_model.layers.0.linear_attn.in_proj_a",
|
| 166 |
+
"model.language_model.layers.0.linear_attn.in_proj_b",
|
| 167 |
+
"model.language_model.layers.1.linear_attn.conv1d",
|
| 168 |
+
"model.language_model.layers.1.linear_attn.in_proj_a",
|
| 169 |
+
"model.language_model.layers.1.linear_attn.in_proj_b",
|
| 170 |
+
"model.language_model.layers.10.linear_attn.conv1d",
|
| 171 |
+
"model.language_model.layers.10.linear_attn.in_proj_a",
|
| 172 |
+
"model.language_model.layers.10.linear_attn.in_proj_b",
|
| 173 |
+
"model.language_model.layers.12.linear_attn.conv1d",
|
| 174 |
+
"model.language_model.layers.12.linear_attn.in_proj_a",
|
| 175 |
+
"model.language_model.layers.12.linear_attn.in_proj_b",
|
| 176 |
+
"model.language_model.layers.13.linear_attn.conv1d",
|
| 177 |
+
"model.language_model.layers.13.linear_attn.in_proj_a",
|
| 178 |
+
"model.language_model.layers.13.linear_attn.in_proj_b",
|
| 179 |
+
"model.language_model.layers.14.linear_attn.conv1d",
|
| 180 |
+
"model.language_model.layers.14.linear_attn.in_proj_a",
|
| 181 |
+
"model.language_model.layers.14.linear_attn.in_proj_b",
|
| 182 |
+
"model.language_model.layers.16.linear_attn.conv1d",
|
| 183 |
+
"model.language_model.layers.16.linear_attn.in_proj_a",
|
| 184 |
+
"model.language_model.layers.16.linear_attn.in_proj_b",
|
| 185 |
+
"model.language_model.layers.17.linear_attn.conv1d",
|
| 186 |
+
"model.language_model.layers.17.linear_attn.in_proj_a",
|
| 187 |
+
"model.language_model.layers.17.linear_attn.in_proj_b",
|
| 188 |
+
"model.language_model.layers.18.linear_attn.conv1d",
|
| 189 |
+
"model.language_model.layers.18.linear_attn.in_proj_a",
|
| 190 |
+
"model.language_model.layers.18.linear_attn.in_proj_b",
|
| 191 |
+
"model.language_model.layers.2.linear_attn.conv1d",
|
| 192 |
+
"model.language_model.layers.2.linear_attn.in_proj_a",
|
| 193 |
+
"model.language_model.layers.2.linear_attn.in_proj_b",
|
| 194 |
+
"model.language_model.layers.20.linear_attn.conv1d",
|
| 195 |
+
"model.language_model.layers.20.linear_attn.in_proj_a",
|
| 196 |
+
"model.language_model.layers.20.linear_attn.in_proj_b",
|
| 197 |
+
"model.language_model.layers.21.linear_attn.conv1d",
|
| 198 |
+
"model.language_model.layers.21.linear_attn.in_proj_a",
|
| 199 |
+
"model.language_model.layers.21.linear_attn.in_proj_b",
|
| 200 |
+
"model.language_model.layers.22.linear_attn.conv1d",
|
| 201 |
+
"model.language_model.layers.22.linear_attn.in_proj_a",
|
| 202 |
+
"model.language_model.layers.22.linear_attn.in_proj_b",
|
| 203 |
+
"model.language_model.layers.24.linear_attn.conv1d",
|
| 204 |
+
"model.language_model.layers.24.linear_attn.in_proj_a",
|
| 205 |
+
"model.language_model.layers.24.linear_attn.in_proj_b",
|
| 206 |
+
"model.language_model.layers.25.linear_attn.conv1d",
|
| 207 |
+
"model.language_model.layers.25.linear_attn.in_proj_a",
|
| 208 |
+
"model.language_model.layers.25.linear_attn.in_proj_b",
|
| 209 |
+
"model.language_model.layers.26.linear_attn.conv1d",
|
| 210 |
+
"model.language_model.layers.26.linear_attn.in_proj_a",
|
| 211 |
+
"model.language_model.layers.26.linear_attn.in_proj_b",
|
| 212 |
+
"model.language_model.layers.28.linear_attn.conv1d",
|
| 213 |
+
"model.language_model.layers.28.linear_attn.in_proj_a",
|
| 214 |
+
"model.language_model.layers.28.linear_attn.in_proj_b",
|
| 215 |
+
"model.language_model.layers.29.linear_attn.conv1d",
|
| 216 |
+
"model.language_model.layers.29.linear_attn.in_proj_a",
|
| 217 |
+
"model.language_model.layers.29.linear_attn.in_proj_b",
|
| 218 |
+
"model.language_model.layers.30.linear_attn.conv1d",
|
| 219 |
+
"model.language_model.layers.30.linear_attn.in_proj_a",
|
| 220 |
+
"model.language_model.layers.30.linear_attn.in_proj_b",
|
| 221 |
+
"model.language_model.layers.32.linear_attn.conv1d",
|
| 222 |
+
"model.language_model.layers.32.linear_attn.in_proj_a",
|
| 223 |
+
"model.language_model.layers.32.linear_attn.in_proj_b",
|
| 224 |
+
"model.language_model.layers.33.linear_attn.conv1d",
|
| 225 |
+
"model.language_model.layers.33.linear_attn.in_proj_a",
|
| 226 |
+
"model.language_model.layers.33.linear_attn.in_proj_b",
|
| 227 |
+
"model.language_model.layers.34.linear_attn.conv1d",
|
| 228 |
+
"model.language_model.layers.34.linear_attn.in_proj_a",
|
| 229 |
+
"model.language_model.layers.34.linear_attn.in_proj_b",
|
| 230 |
+
"model.language_model.layers.36.linear_attn.conv1d",
|
| 231 |
+
"model.language_model.layers.36.linear_attn.in_proj_a",
|
| 232 |
+
"model.language_model.layers.36.linear_attn.in_proj_b",
|
| 233 |
+
"model.language_model.layers.37.linear_attn.conv1d",
|
| 234 |
+
"model.language_model.layers.37.linear_attn.in_proj_a",
|
| 235 |
+
"model.language_model.layers.37.linear_attn.in_proj_b",
|
| 236 |
+
"model.language_model.layers.38.linear_attn.conv1d",
|
| 237 |
+
"model.language_model.layers.38.linear_attn.in_proj_a",
|
| 238 |
+
"model.language_model.layers.38.linear_attn.in_proj_b",
|
| 239 |
+
"model.language_model.layers.4.linear_attn.conv1d",
|
| 240 |
+
"model.language_model.layers.4.linear_attn.in_proj_a",
|
| 241 |
+
"model.language_model.layers.4.linear_attn.in_proj_b",
|
| 242 |
+
"model.language_model.layers.40.linear_attn.conv1d",
|
| 243 |
+
"model.language_model.layers.40.linear_attn.in_proj_a",
|
| 244 |
+
"model.language_model.layers.40.linear_attn.in_proj_b",
|
| 245 |
+
"model.language_model.layers.41.linear_attn.conv1d",
|
| 246 |
+
"model.language_model.layers.41.linear_attn.in_proj_a",
|
| 247 |
+
"model.language_model.layers.41.linear_attn.in_proj_b",
|
| 248 |
+
"model.language_model.layers.42.linear_attn.conv1d",
|
| 249 |
+
"model.language_model.layers.42.linear_attn.in_proj_a",
|
| 250 |
+
"model.language_model.layers.42.linear_attn.in_proj_b",
|
| 251 |
+
"model.language_model.layers.44.linear_attn.conv1d",
|
| 252 |
+
"model.language_model.layers.44.linear_attn.in_proj_a",
|
| 253 |
+
"model.language_model.layers.44.linear_attn.in_proj_b",
|
| 254 |
+
"model.language_model.layers.45.linear_attn.conv1d",
|
| 255 |
+
"model.language_model.layers.45.linear_attn.in_proj_a",
|
| 256 |
+
"model.language_model.layers.45.linear_attn.in_proj_b",
|
| 257 |
+
"model.language_model.layers.46.linear_attn.conv1d",
|
| 258 |
+
"model.language_model.layers.46.linear_attn.in_proj_a",
|
| 259 |
+
"model.language_model.layers.46.linear_attn.in_proj_b",
|
| 260 |
+
"model.language_model.layers.48.linear_attn.conv1d",
|
| 261 |
+
"model.language_model.layers.48.linear_attn.in_proj_a",
|
| 262 |
+
"model.language_model.layers.48.linear_attn.in_proj_b",
|
| 263 |
+
"model.language_model.layers.49.linear_attn.conv1d",
|
| 264 |
+
"model.language_model.layers.49.linear_attn.in_proj_a",
|
| 265 |
+
"model.language_model.layers.49.linear_attn.in_proj_b",
|
| 266 |
+
"model.language_model.layers.5.linear_attn.conv1d",
|
| 267 |
+
"model.language_model.layers.5.linear_attn.in_proj_a",
|
| 268 |
+
"model.language_model.layers.5.linear_attn.in_proj_b",
|
| 269 |
+
"model.language_model.layers.50.linear_attn.conv1d",
|
| 270 |
+
"model.language_model.layers.50.linear_attn.in_proj_a",
|
| 271 |
+
"model.language_model.layers.50.linear_attn.in_proj_b",
|
| 272 |
+
"model.language_model.layers.52.linear_attn.conv1d",
|
| 273 |
+
"model.language_model.layers.52.linear_attn.in_proj_a",
|
| 274 |
+
"model.language_model.layers.52.linear_attn.in_proj_b",
|
| 275 |
+
"model.language_model.layers.53.linear_attn.conv1d",
|
| 276 |
+
"model.language_model.layers.53.linear_attn.in_proj_a",
|
| 277 |
+
"model.language_model.layers.53.linear_attn.in_proj_b",
|
| 278 |
+
"model.language_model.layers.54.linear_attn.conv1d",
|
| 279 |
+
"model.language_model.layers.54.linear_attn.in_proj_a",
|
| 280 |
+
"model.language_model.layers.54.linear_attn.in_proj_b",
|
| 281 |
+
"model.language_model.layers.56.linear_attn.conv1d",
|
| 282 |
+
"model.language_model.layers.56.linear_attn.in_proj_a",
|
| 283 |
+
"model.language_model.layers.56.linear_attn.in_proj_b",
|
| 284 |
+
"model.language_model.layers.57.linear_attn.conv1d",
|
| 285 |
+
"model.language_model.layers.57.linear_attn.in_proj_a",
|
| 286 |
+
"model.language_model.layers.57.linear_attn.in_proj_b",
|
| 287 |
+
"model.language_model.layers.58.linear_attn.conv1d",
|
| 288 |
+
"model.language_model.layers.58.linear_attn.in_proj_a",
|
| 289 |
+
"model.language_model.layers.58.linear_attn.in_proj_b",
|
| 290 |
+
"model.language_model.layers.6.linear_attn.conv1d",
|
| 291 |
+
"model.language_model.layers.6.linear_attn.in_proj_a",
|
| 292 |
+
"model.language_model.layers.6.linear_attn.in_proj_b",
|
| 293 |
+
"model.language_model.layers.60.linear_attn.conv1d",
|
| 294 |
+
"model.language_model.layers.60.linear_attn.in_proj_a",
|
| 295 |
+
"model.language_model.layers.60.linear_attn.in_proj_b",
|
| 296 |
+
"model.language_model.layers.61.linear_attn.conv1d",
|
| 297 |
+
"model.language_model.layers.61.linear_attn.in_proj_a",
|
| 298 |
+
"model.language_model.layers.61.linear_attn.in_proj_b",
|
| 299 |
+
"model.language_model.layers.62.linear_attn.conv1d",
|
| 300 |
+
"model.language_model.layers.62.linear_attn.in_proj_a",
|
| 301 |
+
"model.language_model.layers.62.linear_attn.in_proj_b",
|
| 302 |
+
"model.language_model.layers.8.linear_attn.conv1d",
|
| 303 |
+
"model.language_model.layers.8.linear_attn.in_proj_a",
|
| 304 |
+
"model.language_model.layers.8.linear_attn.in_proj_b",
|
| 305 |
+
"model.language_model.layers.9.linear_attn.conv1d",
|
| 306 |
+
"model.language_model.layers.9.linear_attn.in_proj_a",
|
| 307 |
+
"model.language_model.layers.9.linear_attn.in_proj_b",
|
| 308 |
+
"model.visual*",
|
| 309 |
+
"mtp*",
|
| 310 |
+
"mtp.layers.0*"
|
| 311 |
+
],
|
| 312 |
+
"quant_algo": "NVFP4",
|
| 313 |
+
"kv_cache_scheme": {
|
| 314 |
+
"dynamic": false,
|
| 315 |
+
"num_bits": 8,
|
| 316 |
+
"type": "float"
|
| 317 |
+
},
|
| 318 |
+
"producer": {
|
| 319 |
+
"name": "modelopt",
|
| 320 |
+
"version": "0.0.1.dev1+gc4129b6e0"
|
| 321 |
+
},
|
| 322 |
+
"quant_method": "modelopt"
|
| 323 |
+
}
|
| 324 |
+
}
|
crc32.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
617cc98f model-00001-of-00003.safetensors
|
| 2 |
+
c159e96c model-00002-of-00003.safetensors
|
| 3 |
+
35bbe170 model-00003-of-00003.safetensors
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"transformers_version": "5.9.0"
|
| 13 |
+
}
|
hf_quant_config.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"producer": {
|
| 3 |
+
"name": "modelopt",
|
| 4 |
+
"version": "0.0.1.dev1+gc4129b6e0"
|
| 5 |
+
},
|
| 6 |
+
"quantization": {
|
| 7 |
+
"quant_algo": "NVFP4",
|
| 8 |
+
"kv_cache_quant_algo": "FP8",
|
| 9 |
+
"group_size": 16,
|
| 10 |
+
"exclude_modules": [
|
| 11 |
+
"model.language_model.embed_tokens",
|
| 12 |
+
"model.language_model.layers.0.linear_attn.conv1d",
|
| 13 |
+
"model.language_model.layers.0.linear_attn.in_proj_a",
|
| 14 |
+
"model.language_model.layers.0.linear_attn.in_proj_b",
|
| 15 |
+
"model.language_model.layers.1.linear_attn.conv1d",
|
| 16 |
+
"model.language_model.layers.1.linear_attn.in_proj_a",
|
| 17 |
+
"model.language_model.layers.1.linear_attn.in_proj_b",
|
| 18 |
+
"model.language_model.layers.10.linear_attn.conv1d",
|
| 19 |
+
"model.language_model.layers.10.linear_attn.in_proj_a",
|
| 20 |
+
"model.language_model.layers.10.linear_attn.in_proj_b",
|
| 21 |
+
"model.language_model.layers.12.linear_attn.conv1d",
|
| 22 |
+
"model.language_model.layers.12.linear_attn.in_proj_a",
|
| 23 |
+
"model.language_model.layers.12.linear_attn.in_proj_b",
|
| 24 |
+
"model.language_model.layers.13.linear_attn.conv1d",
|
| 25 |
+
"model.language_model.layers.13.linear_attn.in_proj_a",
|
| 26 |
+
"model.language_model.layers.13.linear_attn.in_proj_b",
|
| 27 |
+
"model.language_model.layers.14.linear_attn.conv1d",
|
| 28 |
+
"model.language_model.layers.14.linear_attn.in_proj_a",
|
| 29 |
+
"model.language_model.layers.14.linear_attn.in_proj_b",
|
| 30 |
+
"model.language_model.layers.16.linear_attn.conv1d",
|
| 31 |
+
"model.language_model.layers.16.linear_attn.in_proj_a",
|
| 32 |
+
"model.language_model.layers.16.linear_attn.in_proj_b",
|
| 33 |
+
"model.language_model.layers.17.linear_attn.conv1d",
|
| 34 |
+
"model.language_model.layers.17.linear_attn.in_proj_a",
|
| 35 |
+
"model.language_model.layers.17.linear_attn.in_proj_b",
|
| 36 |
+
"model.language_model.layers.18.linear_attn.conv1d",
|
| 37 |
+
"model.language_model.layers.18.linear_attn.in_proj_a",
|
| 38 |
+
"model.language_model.layers.18.linear_attn.in_proj_b",
|
| 39 |
+
"model.language_model.layers.2.linear_attn.conv1d",
|
| 40 |
+
"model.language_model.layers.2.linear_attn.in_proj_a",
|
| 41 |
+
"model.language_model.layers.2.linear_attn.in_proj_b",
|
| 42 |
+
"model.language_model.layers.20.linear_attn.conv1d",
|
| 43 |
+
"model.language_model.layers.20.linear_attn.in_proj_a",
|
| 44 |
+
"model.language_model.layers.20.linear_attn.in_proj_b",
|
| 45 |
+
"model.language_model.layers.21.linear_attn.conv1d",
|
| 46 |
+
"model.language_model.layers.21.linear_attn.in_proj_a",
|
| 47 |
+
"model.language_model.layers.21.linear_attn.in_proj_b",
|
| 48 |
+
"model.language_model.layers.22.linear_attn.conv1d",
|
| 49 |
+
"model.language_model.layers.22.linear_attn.in_proj_a",
|
| 50 |
+
"model.language_model.layers.22.linear_attn.in_proj_b",
|
| 51 |
+
"model.language_model.layers.24.linear_attn.conv1d",
|
| 52 |
+
"model.language_model.layers.24.linear_attn.in_proj_a",
|
| 53 |
+
"model.language_model.layers.24.linear_attn.in_proj_b",
|
| 54 |
+
"model.language_model.layers.25.linear_attn.conv1d",
|
| 55 |
+
"model.language_model.layers.25.linear_attn.in_proj_a",
|
| 56 |
+
"model.language_model.layers.25.linear_attn.in_proj_b",
|
| 57 |
+
"model.language_model.layers.26.linear_attn.conv1d",
|
| 58 |
+
"model.language_model.layers.26.linear_attn.in_proj_a",
|
| 59 |
+
"model.language_model.layers.26.linear_attn.in_proj_b",
|
| 60 |
+
"model.language_model.layers.28.linear_attn.conv1d",
|
| 61 |
+
"model.language_model.layers.28.linear_attn.in_proj_a",
|
| 62 |
+
"model.language_model.layers.28.linear_attn.in_proj_b",
|
| 63 |
+
"model.language_model.layers.29.linear_attn.conv1d",
|
| 64 |
+
"model.language_model.layers.29.linear_attn.in_proj_a",
|
| 65 |
+
"model.language_model.layers.29.linear_attn.in_proj_b",
|
| 66 |
+
"model.language_model.layers.30.linear_attn.conv1d",
|
| 67 |
+
"model.language_model.layers.30.linear_attn.in_proj_a",
|
| 68 |
+
"model.language_model.layers.30.linear_attn.in_proj_b",
|
| 69 |
+
"model.language_model.layers.32.linear_attn.conv1d",
|
| 70 |
+
"model.language_model.layers.32.linear_attn.in_proj_a",
|
| 71 |
+
"model.language_model.layers.32.linear_attn.in_proj_b",
|
| 72 |
+
"model.language_model.layers.33.linear_attn.conv1d",
|
| 73 |
+
"model.language_model.layers.33.linear_attn.in_proj_a",
|
| 74 |
+
"model.language_model.layers.33.linear_attn.in_proj_b",
|
| 75 |
+
"model.language_model.layers.34.linear_attn.conv1d",
|
| 76 |
+
"model.language_model.layers.34.linear_attn.in_proj_a",
|
| 77 |
+
"model.language_model.layers.34.linear_attn.in_proj_b",
|
| 78 |
+
"model.language_model.layers.36.linear_attn.conv1d",
|
| 79 |
+
"model.language_model.layers.36.linear_attn.in_proj_a",
|
| 80 |
+
"model.language_model.layers.36.linear_attn.in_proj_b",
|
| 81 |
+
"model.language_model.layers.37.linear_attn.conv1d",
|
| 82 |
+
"model.language_model.layers.37.linear_attn.in_proj_a",
|
| 83 |
+
"model.language_model.layers.37.linear_attn.in_proj_b",
|
| 84 |
+
"model.language_model.layers.38.linear_attn.conv1d",
|
| 85 |
+
"model.language_model.layers.38.linear_attn.in_proj_a",
|
| 86 |
+
"model.language_model.layers.38.linear_attn.in_proj_b",
|
| 87 |
+
"model.language_model.layers.4.linear_attn.conv1d",
|
| 88 |
+
"model.language_model.layers.4.linear_attn.in_proj_a",
|
| 89 |
+
"model.language_model.layers.4.linear_attn.in_proj_b",
|
| 90 |
+
"model.language_model.layers.40.linear_attn.conv1d",
|
| 91 |
+
"model.language_model.layers.40.linear_attn.in_proj_a",
|
| 92 |
+
"model.language_model.layers.40.linear_attn.in_proj_b",
|
| 93 |
+
"model.language_model.layers.41.linear_attn.conv1d",
|
| 94 |
+
"model.language_model.layers.41.linear_attn.in_proj_a",
|
| 95 |
+
"model.language_model.layers.41.linear_attn.in_proj_b",
|
| 96 |
+
"model.language_model.layers.42.linear_attn.conv1d",
|
| 97 |
+
"model.language_model.layers.42.linear_attn.in_proj_a",
|
| 98 |
+
"model.language_model.layers.42.linear_attn.in_proj_b",
|
| 99 |
+
"model.language_model.layers.44.linear_attn.conv1d",
|
| 100 |
+
"model.language_model.layers.44.linear_attn.in_proj_a",
|
| 101 |
+
"model.language_model.layers.44.linear_attn.in_proj_b",
|
| 102 |
+
"model.language_model.layers.45.linear_attn.conv1d",
|
| 103 |
+
"model.language_model.layers.45.linear_attn.in_proj_a",
|
| 104 |
+
"model.language_model.layers.45.linear_attn.in_proj_b",
|
| 105 |
+
"model.language_model.layers.46.linear_attn.conv1d",
|
| 106 |
+
"model.language_model.layers.46.linear_attn.in_proj_a",
|
| 107 |
+
"model.language_model.layers.46.linear_attn.in_proj_b",
|
| 108 |
+
"model.language_model.layers.48.linear_attn.conv1d",
|
| 109 |
+
"model.language_model.layers.48.linear_attn.in_proj_a",
|
| 110 |
+
"model.language_model.layers.48.linear_attn.in_proj_b",
|
| 111 |
+
"model.language_model.layers.49.linear_attn.conv1d",
|
| 112 |
+
"model.language_model.layers.49.linear_attn.in_proj_a",
|
| 113 |
+
"model.language_model.layers.49.linear_attn.in_proj_b",
|
| 114 |
+
"model.language_model.layers.5.linear_attn.conv1d",
|
| 115 |
+
"model.language_model.layers.5.linear_attn.in_proj_a",
|
| 116 |
+
"model.language_model.layers.5.linear_attn.in_proj_b",
|
| 117 |
+
"model.language_model.layers.50.linear_attn.conv1d",
|
| 118 |
+
"model.language_model.layers.50.linear_attn.in_proj_a",
|
| 119 |
+
"model.language_model.layers.50.linear_attn.in_proj_b",
|
| 120 |
+
"model.language_model.layers.52.linear_attn.conv1d",
|
| 121 |
+
"model.language_model.layers.52.linear_attn.in_proj_a",
|
| 122 |
+
"model.language_model.layers.52.linear_attn.in_proj_b",
|
| 123 |
+
"model.language_model.layers.53.linear_attn.conv1d",
|
| 124 |
+
"model.language_model.layers.53.linear_attn.in_proj_a",
|
| 125 |
+
"model.language_model.layers.53.linear_attn.in_proj_b",
|
| 126 |
+
"model.language_model.layers.54.linear_attn.conv1d",
|
| 127 |
+
"model.language_model.layers.54.linear_attn.in_proj_a",
|
| 128 |
+
"model.language_model.layers.54.linear_attn.in_proj_b",
|
| 129 |
+
"model.language_model.layers.56.linear_attn.conv1d",
|
| 130 |
+
"model.language_model.layers.56.linear_attn.in_proj_a",
|
| 131 |
+
"model.language_model.layers.56.linear_attn.in_proj_b",
|
| 132 |
+
"model.language_model.layers.57.linear_attn.conv1d",
|
| 133 |
+
"model.language_model.layers.57.linear_attn.in_proj_a",
|
| 134 |
+
"model.language_model.layers.57.linear_attn.in_proj_b",
|
| 135 |
+
"model.language_model.layers.58.linear_attn.conv1d",
|
| 136 |
+
"model.language_model.layers.58.linear_attn.in_proj_a",
|
| 137 |
+
"model.language_model.layers.58.linear_attn.in_proj_b",
|
| 138 |
+
"model.language_model.layers.6.linear_attn.conv1d",
|
| 139 |
+
"model.language_model.layers.6.linear_attn.in_proj_a",
|
| 140 |
+
"model.language_model.layers.6.linear_attn.in_proj_b",
|
| 141 |
+
"model.language_model.layers.60.linear_attn.conv1d",
|
| 142 |
+
"model.language_model.layers.60.linear_attn.in_proj_a",
|
| 143 |
+
"model.language_model.layers.60.linear_attn.in_proj_b",
|
| 144 |
+
"model.language_model.layers.61.linear_attn.conv1d",
|
| 145 |
+
"model.language_model.layers.61.linear_attn.in_proj_a",
|
| 146 |
+
"model.language_model.layers.61.linear_attn.in_proj_b",
|
| 147 |
+
"model.language_model.layers.62.linear_attn.conv1d",
|
| 148 |
+
"model.language_model.layers.62.linear_attn.in_proj_a",
|
| 149 |
+
"model.language_model.layers.62.linear_attn.in_proj_b",
|
| 150 |
+
"model.language_model.layers.8.linear_attn.conv1d",
|
| 151 |
+
"model.language_model.layers.8.linear_attn.in_proj_a",
|
| 152 |
+
"model.language_model.layers.8.linear_attn.in_proj_b",
|
| 153 |
+
"model.language_model.layers.9.linear_attn.conv1d",
|
| 154 |
+
"model.language_model.layers.9.linear_attn.in_proj_a",
|
| 155 |
+
"model.language_model.layers.9.linear_attn.in_proj_b",
|
| 156 |
+
"model.visual*",
|
| 157 |
+
"mtp*",
|
| 158 |
+
"mtp.layers.0*"
|
| 159 |
+
]
|
| 160 |
+
}
|
| 161 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cdd37b0e61eccc8a3d7d08f9d1a4f52856a9d88e4e8b42089bd18a970e3a01ec
|
| 3 |
+
size 9972777720
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b547449a2b23c6cd414da0cf65ff9d7e17ad9aa2b119beedcbba14f649eb1dd
|
| 3 |
+
size 8048202912
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ce944d534eabdd493076a3a52c7ebd31f41c135b340a1ea95c5a695e6f1f6b2
|
| 3 |
+
size 744532384
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 16777216,
|
| 24 |
+
"shortest_edge": 65536
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen3VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"do_convert_rgb": true,
|
| 31 |
+
"do_normalize": true,
|
| 32 |
+
"do_rescale": true,
|
| 33 |
+
"do_resize": true,
|
| 34 |
+
"do_sample_frames": true,
|
| 35 |
+
"fps": 2,
|
| 36 |
+
"image_mean": [
|
| 37 |
+
0.5,
|
| 38 |
+
0.5,
|
| 39 |
+
0.5
|
| 40 |
+
],
|
| 41 |
+
"image_std": [
|
| 42 |
+
0.5,
|
| 43 |
+
0.5,
|
| 44 |
+
0.5
|
| 45 |
+
],
|
| 46 |
+
"max_frames": 768,
|
| 47 |
+
"merge_size": 2,
|
| 48 |
+
"min_frames": 4,
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"resample": 3,
|
| 51 |
+
"rescale_factor": 0.00392156862745098,
|
| 52 |
+
"return_metadata": false,
|
| 53 |
+
"size": {
|
| 54 |
+
"longest_edge": 25165824,
|
| 55 |
+
"shortest_edge": 4096
|
| 56 |
+
},
|
| 57 |
+
"temporal_patch_size": 2,
|
| 58 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 59 |
+
}
|
| 60 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3
|
| 3 |
+
size 12809320
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"padding_side": "left",
|
| 26 |
+
"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+",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null,
|
| 30 |
+
"video_token": "<|video_pad|>",
|
| 31 |
+
"vision_bos_token": "<|vision_start|>",
|
| 32 |
+
"vision_eos_token": "<|vision_end|>"
|
| 33 |
+
}
|
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
|
|
|