Instructions to use unsloth/Qwen3.8-27B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use unsloth/Qwen3.8-27B-NVFP4 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Qwen3.8-27B-NVFP4 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Qwen3.8-27B-NVFP4 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Qwen3.8-27B-NVFP4 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="unsloth/Qwen3.8-27B-NVFP4", max_seq_length=2048, )
Commit ·
16b6615
0
Parent(s):
Super-squash branch 'main' using huggingface_hub
Browse files- .gitattributes +36 -0
- README.md +116 -0
- chat_template.jinja +184 -0
- config.json +547 -0
- generation_config.json +13 -0
- model.safetensors +3 -0
- model.safetensors.index.json +0 -0
- model_mtp.safetensors +3 -0
- preprocessor_config.json +21 -0
- tokenizer.json +3 -0
- tokenizer_config.json +29 -0
- video_preprocessor_config.json +21 -0
- vocab.json +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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
|
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen3.8-27B
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- unsloth
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Read our How to [Run Qwen3.8-27B Guide!](https://unsloth.ai/docs/models/qwen3.8)
|
| 10 |
+
<div>
|
| 11 |
+
<p style="margin: 0 0 0px 0; margin-top: 0px;">
|
| 12 |
+
<em>This NVFP4 quant uses Unsloth Dynamic V3.0 (preview) for SOTA quantization performance.</em>
|
| 13 |
+
</p>
|
| 14 |
+
<div style="display: flex; gap: 5px; align-items: center; margin-bottom: 0px;">
|
| 15 |
+
<a href="https://github.com/unslothai/unsloth/">
|
| 16 |
+
<img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
|
| 17 |
+
</a>
|
| 18 |
+
<a href="https://discord.gg/unsloth">
|
| 19 |
+
<img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
|
| 20 |
+
</a>
|
| 21 |
+
<a href="https://unsloth.ai/docs/models/qwen3.8">
|
| 22 |
+
<img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
|
| 23 |
+
</a>
|
| 24 |
+
</div>
|
| 25 |
+
<ul style="margin: 0;">
|
| 26 |
+
<li>Developer Role Support so Qwen3.8 can work in agentic tools like Codex and more!</li>
|
| 27 |
+
<li>MTP for fast inference is available.</li>
|
| 28 |
+
<li>Qwen3.8 can now be run and fine-tuned in <a href="https://unsloth.ai/docs/new/desktop">Unsloth Desktop</a>. <a href="https://unsloth.ai/docs/models/qwen3.8">Read our guide</a>.</li>
|
| 29 |
+
<li>Tool calling improvements: Makes parsing nested objects to make tool calling succeed more.</li>
|
| 30 |
+
<li>See below for 4-bit Qwen3.8-27B run inside of Unsloth Desktop:</li>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<img width="600" alt="qwen3.8 unsloth desktop" src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FSqxs6NjShWrLfRKhDy1m%2Fvolcano%202.gif?alt=media&token=395274a0-b437-403a-8a01-8e8502f9d225" />
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# Qwen3.8-27B
|
| 40 |
+
|
| 41 |
+
Following the widespread community adoption of the Qwen3.5 and Qwen3.6 series, we are pleased to introduce Qwen3.8, the most capable generation in the Qwen open-model family to date.
|
| 42 |
+
|
| 43 |
+
Built on the architectural foundation of Qwen3.5, Qwen3.8 delivers substantial gains across coding, professional work, research, and long-horizon agentic tasks. Qwen3.8-27B brings these advances to a compact, deployment-friendly dense model: a native vision-language model that understands images and videos, with flexible thinking control, designed to carry complex, multi-step tasks through to completion with greater reliability.
|
| 44 |
+
|
| 45 |
+
## Qwen3.8 Highlights
|
| 46 |
+
|
| 47 |
+
Qwen3.8-27B features the following enhancements:
|
| 48 |
+
- **Core Capabilities**: Comprehensive improvements across coding, professional work, research, and long-horizon agentic tasks.
|
| 49 |
+
- **Agent Execution**: Stronger autonomous planning and better handling of environment feedback, leading to more reliable end-to-end task completion.
|
| 50 |
+
- **Downstream Compatibility**: Broader support for popular harnesses and development tools, making it easier to integrate into your existing stack.
|
| 51 |
+
- **Flexible Thinking Control**: Thinking mode is on by default and can be disabled per request; reasoning depth can be tuned with `reasoning_effort`, and reasoning context from historical messages is retained via `preserve_thinking`.
|
| 52 |
+
- **Vision-Language Understanding**: Native support for image and video understanding, from STEM diagrams and documents to hour-scale videos.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
## Model Overview
|
| 56 |
+
|
| 57 |
+
- Type: Causal Language Model with Vision Encoder
|
| 58 |
+
- Training Stage: Pre-training & Post-training
|
| 59 |
+
- Language Model
|
| 60 |
+
- Number of Parameters: 27B
|
| 61 |
+
- Hidden Dimension: 5120
|
| 62 |
+
- Token Embedding: 248,320 (Padded)
|
| 63 |
+
- Number of Layers: 64
|
| 64 |
+
- Hidden Layout: 16 × (3 × (Gated DeltaNet → FFN) → 1 × (Gated Attention → FFN))
|
| 65 |
+
- Gated DeltaNet:
|
| 66 |
+
- Number of Linear Attention Heads: 48 for V and 16 for QK
|
| 67 |
+
- Head Dimension: 128
|
| 68 |
+
- Gated Attention:
|
| 69 |
+
- Number of Attention Heads: 24 for Q and 4 for KV
|
| 70 |
+
- Head Dimension: 256
|
| 71 |
+
- Rotary Position Embedding Dimension: 64
|
| 72 |
+
- Feed Forward Network:
|
| 73 |
+
- Intermediate Dimension: 17,408
|
| 74 |
+
- LM Output: 248,320 (Padded)
|
| 75 |
+
- MTP (Multi-Token Prediction): trained with multiple steps
|
| 76 |
+
- Context Length: 262,144 natively and extensible up to 1,000,000 tokens.
|
| 77 |
+
|
| 78 |
+
## Best Practices
|
| 79 |
+
|
| 80 |
+
To achieve optimal performance, we recommend the following settings:
|
| 81 |
+
|
| 82 |
+
1. **Sampling Parameters**: We suggest using the following sets of sampling parameters:
|
| 83 |
+
|
| 84 |
+
- Thinking Mode: `temperature=1.0`, `top_p=0.95`, `top_k=20`, `min_p=0.0`, `presence_penalty=0.0`, `repetition_penalty=1.0`
|
| 85 |
+
- Instruct (or non-thinking) mode: `temperature=0.7`, `top_p=0.80`, `top_k=20`, `min_p=0.0`, `presence_penalty=1.5`, `repetition_penalty=1.0`
|
| 86 |
+
|
| 87 |
+
For supported frameworks, you can adjust the `presence_penalty` parameter between 0 and 2 to reduce endless repetition. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.
|
| 88 |
+
|
| 89 |
+
2. **Adequate Output Length**: To optimize performance on agentic tasks, we recommend allocating sufficient output length to allow the model to generate detailed and comprehensive responses. For frameworks that support separate token limits for internal reasoning and final outputs, we suggest the following configuration within the 1M context length:
|
| 90 |
+
|
| 91 |
+
- Reasoning Content: Set the maximum output length to 262,144 tokens.
|
| 92 |
+
- Final Response: Set the maximum output length to 131,072 tokens.
|
| 93 |
+
|
| 94 |
+
These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables.
|
| 95 |
+
|
| 96 |
+
3. **Processing Ultra-Long Texts**: Qwen3.8-27B natively supports context lengths of up to 262,144 tokens. For long-horizon tasks where the total length (including both input and output) exceeds this limit, we recommend using RoPE scaling techniques to handle long texts effectively, e.g., YaRN.
|
| 97 |
+
|
| 98 |
+
4. **Long Video Understanding**: To optimize inference efficiency for plain text and images, the `size` parameter in the released `video_preprocessor_config.json` is conservatively configured. It is recommended to set the `longest_edge` parameter in the video_preprocessor_config file to 469,762,048 (corresponding to 224k video tokens) to enable higher frame-rate sampling for hour-scale videos and thereby achieve superior performance. For example,
|
| 99 |
+
```json
|
| 100 |
+
{"longest_edge": 469762048, "shortest_edge": 4096}
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Citation
|
| 104 |
+
|
| 105 |
+
If you find our work helpful, feel free to give us a cite.
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
```bibtex
|
| 109 |
+
@misc{qwen38,
|
| 110 |
+
title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
|
| 111 |
+
url = {https://qwen.ai/blog?id=qwen3.8},
|
| 112 |
+
author = {{Qwen Team}},
|
| 113 |
+
month = {August},
|
| 114 |
+
year = {2026}
|
| 115 |
+
}
|
| 116 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- set sysns = namespace(count=0, text='') %}
|
| 46 |
+
{%- for message in messages %}
|
| 47 |
+
{%- if sysns.count == loop.index0 and (message.role == 'system' or message.role == 'developer') %}
|
| 48 |
+
{%- set sys_content = render_content(message.content, false, true)|trim %}
|
| 49 |
+
{%- if sys_content %}
|
| 50 |
+
{%- set sysns.text = sysns.text + ('\n' if sysns.text else '') + sys_content %}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- set sysns.count = sysns.count + 1 %}
|
| 53 |
+
{%- endif %}
|
| 54 |
+
{%- endfor %}
|
| 55 |
+
{%- set num_sys = sysns.count %}
|
| 56 |
+
{%- set merged_system = sysns.text %}
|
| 57 |
+
{%- set reasoning_instructions = '' %}
|
| 58 |
+
{%- if enable_thinking is undefined or enable_thinking is true %}
|
| 59 |
+
{%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
|
| 60 |
+
{%- if resolved_reasoning_effort == 'high' %}
|
| 61 |
+
{%- set resolved_reasoning_effort = 'xhigh' %}
|
| 62 |
+
{%- endif %}
|
| 63 |
+
{%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
|
| 64 |
+
{{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- if resolved_reasoning_effort == 'xhigh' %}
|
| 67 |
+
{%- 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.' %}
|
| 68 |
+
{%- elif resolved_reasoning_effort == 'low' %}
|
| 69 |
+
{%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
|
| 70 |
+
{%- endif %}
|
| 71 |
+
{%- endif %}
|
| 72 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 73 |
+
{{- '<|im_start|>system\n' }}
|
| 74 |
+
{%- if reasoning_instructions %}
|
| 75 |
+
{{- reasoning_instructions + '\n\n' }}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 78 |
+
{%- for tool in tools %}
|
| 79 |
+
{{- "\n" }}
|
| 80 |
+
{{- tool | tojson }}
|
| 81 |
+
{%- endfor %}
|
| 82 |
+
{{- "\n</tools>" }}
|
| 83 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 84 |
+
{%- if merged_system %}
|
| 85 |
+
{{- '\n\n' + merged_system }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{{- '<|im_end|>\n' }}
|
| 88 |
+
{%- else %}
|
| 89 |
+
{%- if merged_system %}
|
| 90 |
+
{{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + merged_system + '<|im_end|>\n' }}
|
| 91 |
+
{%- elif reasoning_instructions %}
|
| 92 |
+
{{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
|
| 93 |
+
{%- endif %}
|
| 94 |
+
{%- endif %}
|
| 95 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 96 |
+
{%- for message in messages[::-1] %}
|
| 97 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 98 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 99 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 100 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 101 |
+
{%- set ns.multi_step_tool = false %}
|
| 102 |
+
{%- set ns.last_query_index = index %}
|
| 103 |
+
{%- endif %}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- endfor %}
|
| 106 |
+
{%- for message in messages %}
|
| 107 |
+
{%- if loop.index0 >= num_sys %}
|
| 108 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 109 |
+
{%- if message.role == "system" or message.role == "developer" %}
|
| 110 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 111 |
+
{%- elif message.role == "user" %}
|
| 112 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 113 |
+
{%- elif message.role == "assistant" %}
|
| 114 |
+
{%- set reasoning_content = '' %}
|
| 115 |
+
{%- if message.reasoning_content is string %}
|
| 116 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 117 |
+
{%- endif %}
|
| 118 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 119 |
+
{%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
|
| 120 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 121 |
+
{%- else %}
|
| 122 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 123 |
+
{%- endif %}
|
| 124 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 125 |
+
{%- for tool_call in message.tool_calls %}
|
| 126 |
+
{%- if tool_call.function is defined %}
|
| 127 |
+
{%- set tool_call = tool_call.function %}
|
| 128 |
+
{%- endif %}
|
| 129 |
+
{%- if tool_call.name is not defined or tool_call.name is none %}
|
| 130 |
+
{{- raise_exception('Tool call is missing a function name.') }}
|
| 131 |
+
{%- endif %}
|
| 132 |
+
{%- if loop.first %}
|
| 133 |
+
{%- if content|trim %}
|
| 134 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 135 |
+
{%- else %}
|
| 136 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 137 |
+
{%- endif %}
|
| 138 |
+
{%- else %}
|
| 139 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 140 |
+
{%- endif %}
|
| 141 |
+
{%- if tool_call.arguments is mapping %}
|
| 142 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 143 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 144 |
+
{%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
|
| 145 |
+
{{- args_value }}
|
| 146 |
+
{{- '\n</parameter>\n' }}
|
| 147 |
+
{%- endfor %}
|
| 148 |
+
{%- elif tool_call.arguments is string %}
|
| 149 |
+
{%- if tool_call.arguments|trim %}
|
| 150 |
+
{{- raise_exception('Tool call arguments for function "' + (tool_call.name | string) + '" were passed as a JSON string. Parse them into an object before calling apply_chat_template.') }}
|
| 151 |
+
{%- endif %}
|
| 152 |
+
{%- elif tool_call.arguments is defined and tool_call.arguments is not none %}
|
| 153 |
+
{{- raise_exception('Tool call arguments for function "' + (tool_call.name | string) + '" must be an object/mapping or a JSON string.') }}
|
| 154 |
+
{%- endif %}
|
| 155 |
+
{{- '</function>\n</tool_call>' }}
|
| 156 |
+
{%- endfor %}
|
| 157 |
+
{%- endif %}
|
| 158 |
+
{{- '<|im_end|>\n' }}
|
| 159 |
+
{%- elif message.role == "tool" %}
|
| 160 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 161 |
+
{{- '<|im_start|>user' }}
|
| 162 |
+
{%- endif %}
|
| 163 |
+
{{- '\n<tool_response>\n' }}
|
| 164 |
+
{{- content }}
|
| 165 |
+
{{- '\n</tool_response>' }}
|
| 166 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 167 |
+
{{- '<|im_end|>\n' }}
|
| 168 |
+
{%- elif loop.last %}
|
| 169 |
+
{{- '<|im_end|>\n' }}
|
| 170 |
+
{%- endif %}
|
| 171 |
+
{%- else %}
|
| 172 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 173 |
+
{%- endif %}
|
| 174 |
+
{%- endif %}
|
| 175 |
+
{%- endfor %}
|
| 176 |
+
{%- if add_generation_prompt %}
|
| 177 |
+
{{- '<|im_start|>assistant\n' }}
|
| 178 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 179 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 180 |
+
{%- else %}
|
| 181 |
+
{{- '<think>\n' }}
|
| 182 |
+
{%- endif %}
|
| 183 |
+
{%- endif %}
|
| 184 |
+
{#- Unsloth fixes - developer role, merged system messages, tool calling #}
|
config.json
ADDED
|
@@ -0,0 +1,547 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"head_dim": 256,
|
| 7 |
+
"image_token_id": 248056,
|
| 8 |
+
"language_model_only": false,
|
| 9 |
+
"model_type": "qwen3_5",
|
| 10 |
+
"num_attention_heads": 24,
|
| 11 |
+
"num_key_value_heads": 4,
|
| 12 |
+
"quantization_config": {
|
| 13 |
+
"config_groups": {
|
| 14 |
+
"group_0": {
|
| 15 |
+
"format": "float-quantized",
|
| 16 |
+
"input_activations": {
|
| 17 |
+
"actorder": null,
|
| 18 |
+
"block_structure": null,
|
| 19 |
+
"dynamic": true,
|
| 20 |
+
"group_size": null,
|
| 21 |
+
"num_bits": 8,
|
| 22 |
+
"observer": null,
|
| 23 |
+
"observer_kwargs": {},
|
| 24 |
+
"scale_dtype": null,
|
| 25 |
+
"strategy": "token",
|
| 26 |
+
"symmetric": true,
|
| 27 |
+
"type": "float",
|
| 28 |
+
"zp_dtype": null
|
| 29 |
+
},
|
| 30 |
+
"output_activations": null,
|
| 31 |
+
"targets": [
|
| 32 |
+
"re:.*self_attn\\.(q|k|v|o)_proj$",
|
| 33 |
+
"re:.*linear_attn\\.(in_proj_qkv|in_proj_z|out_proj)$",
|
| 34 |
+
"re:.*lm_head",
|
| 35 |
+
"re:.*layers\\.(56|57|58|59|60|61|62|63)\\.mlp\\.(gate|up|down)_proj$"
|
| 36 |
+
],
|
| 37 |
+
"weights": {
|
| 38 |
+
"actorder": null,
|
| 39 |
+
"block_structure": null,
|
| 40 |
+
"dynamic": false,
|
| 41 |
+
"group_size": null,
|
| 42 |
+
"num_bits": 8,
|
| 43 |
+
"observer": "memoryless_minmax",
|
| 44 |
+
"observer_kwargs": {},
|
| 45 |
+
"scale_dtype": null,
|
| 46 |
+
"strategy": "channel",
|
| 47 |
+
"symmetric": true,
|
| 48 |
+
"type": "float",
|
| 49 |
+
"zp_dtype": null
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
"group_1": {
|
| 53 |
+
"format": "nvfp4-pack-quantized",
|
| 54 |
+
"input_activations": {
|
| 55 |
+
"actorder": null,
|
| 56 |
+
"block_structure": null,
|
| 57 |
+
"dynamic": "local",
|
| 58 |
+
"group_size": 16,
|
| 59 |
+
"num_bits": 4,
|
| 60 |
+
"observer": "static_minmax",
|
| 61 |
+
"observer_kwargs": {},
|
| 62 |
+
"scale_dtype": "torch.float8_e4m3fn",
|
| 63 |
+
"strategy": "tensor_group",
|
| 64 |
+
"symmetric": true,
|
| 65 |
+
"type": "float",
|
| 66 |
+
"zp_dtype": null
|
| 67 |
+
},
|
| 68 |
+
"output_activations": null,
|
| 69 |
+
"targets": [
|
| 70 |
+
"re:.*mlp\\.(gate|up|down)_proj$"
|
| 71 |
+
],
|
| 72 |
+
"weights": {
|
| 73 |
+
"actorder": "static",
|
| 74 |
+
"block_structure": null,
|
| 75 |
+
"dynamic": false,
|
| 76 |
+
"group_size": 16,
|
| 77 |
+
"num_bits": 4,
|
| 78 |
+
"observer_kwargs": {},
|
| 79 |
+
"scale_dtype": "torch.float8_e4m3fn",
|
| 80 |
+
"strategy": "tensor_group",
|
| 81 |
+
"symmetric": true,
|
| 82 |
+
"type": "float",
|
| 83 |
+
"zp_dtype": null
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
"format": "mixed-precision",
|
| 88 |
+
"global_compression_ratio": null,
|
| 89 |
+
"ignore": [
|
| 90 |
+
"model.visual.blocks.0.attn.qkv",
|
| 91 |
+
"model.visual.blocks.0.attn.proj",
|
| 92 |
+
"model.visual.blocks.0.mlp.linear_fc1",
|
| 93 |
+
"model.visual.blocks.0.mlp.linear_fc2",
|
| 94 |
+
"model.visual.blocks.1.attn.qkv",
|
| 95 |
+
"model.visual.blocks.1.attn.proj",
|
| 96 |
+
"model.visual.blocks.1.mlp.linear_fc1",
|
| 97 |
+
"model.visual.blocks.1.mlp.linear_fc2",
|
| 98 |
+
"model.visual.blocks.2.attn.qkv",
|
| 99 |
+
"model.visual.blocks.2.attn.proj",
|
| 100 |
+
"model.visual.blocks.2.mlp.linear_fc1",
|
| 101 |
+
"model.visual.blocks.2.mlp.linear_fc2",
|
| 102 |
+
"model.visual.blocks.3.attn.qkv",
|
| 103 |
+
"model.visual.blocks.3.attn.proj",
|
| 104 |
+
"model.visual.blocks.3.mlp.linear_fc1",
|
| 105 |
+
"model.visual.blocks.3.mlp.linear_fc2",
|
| 106 |
+
"model.visual.blocks.4.attn.qkv",
|
| 107 |
+
"model.visual.blocks.4.attn.proj",
|
| 108 |
+
"model.visual.blocks.4.mlp.linear_fc1",
|
| 109 |
+
"model.visual.blocks.4.mlp.linear_fc2",
|
| 110 |
+
"model.visual.blocks.5.attn.qkv",
|
| 111 |
+
"model.visual.blocks.5.attn.proj",
|
| 112 |
+
"model.visual.blocks.5.mlp.linear_fc1",
|
| 113 |
+
"model.visual.blocks.5.mlp.linear_fc2",
|
| 114 |
+
"model.visual.blocks.6.attn.qkv",
|
| 115 |
+
"model.visual.blocks.6.attn.proj",
|
| 116 |
+
"model.visual.blocks.6.mlp.linear_fc1",
|
| 117 |
+
"model.visual.blocks.6.mlp.linear_fc2",
|
| 118 |
+
"model.visual.blocks.7.attn.qkv",
|
| 119 |
+
"model.visual.blocks.7.attn.proj",
|
| 120 |
+
"model.visual.blocks.7.mlp.linear_fc1",
|
| 121 |
+
"model.visual.blocks.7.mlp.linear_fc2",
|
| 122 |
+
"model.visual.blocks.8.attn.qkv",
|
| 123 |
+
"model.visual.blocks.8.attn.proj",
|
| 124 |
+
"model.visual.blocks.8.mlp.linear_fc1",
|
| 125 |
+
"model.visual.blocks.8.mlp.linear_fc2",
|
| 126 |
+
"model.visual.blocks.9.attn.qkv",
|
| 127 |
+
"model.visual.blocks.9.attn.proj",
|
| 128 |
+
"model.visual.blocks.9.mlp.linear_fc1",
|
| 129 |
+
"model.visual.blocks.9.mlp.linear_fc2",
|
| 130 |
+
"model.visual.blocks.10.attn.qkv",
|
| 131 |
+
"model.visual.blocks.10.attn.proj",
|
| 132 |
+
"model.visual.blocks.10.mlp.linear_fc1",
|
| 133 |
+
"model.visual.blocks.10.mlp.linear_fc2",
|
| 134 |
+
"model.visual.blocks.11.attn.qkv",
|
| 135 |
+
"model.visual.blocks.11.attn.proj",
|
| 136 |
+
"model.visual.blocks.11.mlp.linear_fc1",
|
| 137 |
+
"model.visual.blocks.11.mlp.linear_fc2",
|
| 138 |
+
"model.visual.blocks.12.attn.qkv",
|
| 139 |
+
"model.visual.blocks.12.attn.proj",
|
| 140 |
+
"model.visual.blocks.12.mlp.linear_fc1",
|
| 141 |
+
"model.visual.blocks.12.mlp.linear_fc2",
|
| 142 |
+
"model.visual.blocks.13.attn.qkv",
|
| 143 |
+
"model.visual.blocks.13.attn.proj",
|
| 144 |
+
"model.visual.blocks.13.mlp.linear_fc1",
|
| 145 |
+
"model.visual.blocks.13.mlp.linear_fc2",
|
| 146 |
+
"model.visual.blocks.14.attn.qkv",
|
| 147 |
+
"model.visual.blocks.14.attn.proj",
|
| 148 |
+
"model.visual.blocks.14.mlp.linear_fc1",
|
| 149 |
+
"model.visual.blocks.14.mlp.linear_fc2",
|
| 150 |
+
"model.visual.blocks.15.attn.qkv",
|
| 151 |
+
"model.visual.blocks.15.attn.proj",
|
| 152 |
+
"model.visual.blocks.15.mlp.linear_fc1",
|
| 153 |
+
"model.visual.blocks.15.mlp.linear_fc2",
|
| 154 |
+
"model.visual.blocks.16.attn.qkv",
|
| 155 |
+
"model.visual.blocks.16.attn.proj",
|
| 156 |
+
"model.visual.blocks.16.mlp.linear_fc1",
|
| 157 |
+
"model.visual.blocks.16.mlp.linear_fc2",
|
| 158 |
+
"model.visual.blocks.17.attn.qkv",
|
| 159 |
+
"model.visual.blocks.17.attn.proj",
|
| 160 |
+
"model.visual.blocks.17.mlp.linear_fc1",
|
| 161 |
+
"model.visual.blocks.17.mlp.linear_fc2",
|
| 162 |
+
"model.visual.blocks.18.attn.qkv",
|
| 163 |
+
"model.visual.blocks.18.attn.proj",
|
| 164 |
+
"model.visual.blocks.18.mlp.linear_fc1",
|
| 165 |
+
"model.visual.blocks.18.mlp.linear_fc2",
|
| 166 |
+
"model.visual.blocks.19.attn.qkv",
|
| 167 |
+
"model.visual.blocks.19.attn.proj",
|
| 168 |
+
"model.visual.blocks.19.mlp.linear_fc1",
|
| 169 |
+
"model.visual.blocks.19.mlp.linear_fc2",
|
| 170 |
+
"model.visual.blocks.20.attn.qkv",
|
| 171 |
+
"model.visual.blocks.20.attn.proj",
|
| 172 |
+
"model.visual.blocks.20.mlp.linear_fc1",
|
| 173 |
+
"model.visual.blocks.20.mlp.linear_fc2",
|
| 174 |
+
"model.visual.blocks.21.attn.qkv",
|
| 175 |
+
"model.visual.blocks.21.attn.proj",
|
| 176 |
+
"model.visual.blocks.21.mlp.linear_fc1",
|
| 177 |
+
"model.visual.blocks.21.mlp.linear_fc2",
|
| 178 |
+
"model.visual.blocks.22.attn.qkv",
|
| 179 |
+
"model.visual.blocks.22.attn.proj",
|
| 180 |
+
"model.visual.blocks.22.mlp.linear_fc1",
|
| 181 |
+
"model.visual.blocks.22.mlp.linear_fc2",
|
| 182 |
+
"model.visual.blocks.23.attn.qkv",
|
| 183 |
+
"model.visual.blocks.23.attn.proj",
|
| 184 |
+
"model.visual.blocks.23.mlp.linear_fc1",
|
| 185 |
+
"model.visual.blocks.23.mlp.linear_fc2",
|
| 186 |
+
"model.visual.blocks.24.attn.qkv",
|
| 187 |
+
"model.visual.blocks.24.attn.proj",
|
| 188 |
+
"model.visual.blocks.24.mlp.linear_fc1",
|
| 189 |
+
"model.visual.blocks.24.mlp.linear_fc2",
|
| 190 |
+
"model.visual.blocks.25.attn.qkv",
|
| 191 |
+
"model.visual.blocks.25.attn.proj",
|
| 192 |
+
"model.visual.blocks.25.mlp.linear_fc1",
|
| 193 |
+
"model.visual.blocks.25.mlp.linear_fc2",
|
| 194 |
+
"model.visual.blocks.26.attn.qkv",
|
| 195 |
+
"model.visual.blocks.26.attn.proj",
|
| 196 |
+
"model.visual.blocks.26.mlp.linear_fc1",
|
| 197 |
+
"model.visual.blocks.26.mlp.linear_fc2",
|
| 198 |
+
"model.visual.merger.linear_fc1",
|
| 199 |
+
"model.visual.merger.linear_fc2",
|
| 200 |
+
"model.language_model.layers.0.linear_attn",
|
| 201 |
+
"model.language_model.layers.0.linear_attn.norm",
|
| 202 |
+
"model.language_model.layers.0.linear_attn.in_proj_b",
|
| 203 |
+
"model.language_model.layers.0.linear_attn.in_proj_a",
|
| 204 |
+
"model.language_model.layers.1.linear_attn",
|
| 205 |
+
"model.language_model.layers.1.linear_attn.norm",
|
| 206 |
+
"model.language_model.layers.1.linear_attn.in_proj_b",
|
| 207 |
+
"model.language_model.layers.1.linear_attn.in_proj_a",
|
| 208 |
+
"model.language_model.layers.2.linear_attn",
|
| 209 |
+
"model.language_model.layers.2.linear_attn.norm",
|
| 210 |
+
"model.language_model.layers.2.linear_attn.in_proj_b",
|
| 211 |
+
"model.language_model.layers.2.linear_attn.in_proj_a",
|
| 212 |
+
"model.language_model.layers.4.linear_attn",
|
| 213 |
+
"model.language_model.layers.4.linear_attn.norm",
|
| 214 |
+
"model.language_model.layers.4.linear_attn.in_proj_b",
|
| 215 |
+
"model.language_model.layers.4.linear_attn.in_proj_a",
|
| 216 |
+
"model.language_model.layers.5.linear_attn",
|
| 217 |
+
"model.language_model.layers.5.linear_attn.norm",
|
| 218 |
+
"model.language_model.layers.5.linear_attn.in_proj_b",
|
| 219 |
+
"model.language_model.layers.5.linear_attn.in_proj_a",
|
| 220 |
+
"model.language_model.layers.6.linear_attn",
|
| 221 |
+
"model.language_model.layers.6.linear_attn.norm",
|
| 222 |
+
"model.language_model.layers.6.linear_attn.in_proj_b",
|
| 223 |
+
"model.language_model.layers.6.linear_attn.in_proj_a",
|
| 224 |
+
"model.language_model.layers.8.linear_attn",
|
| 225 |
+
"model.language_model.layers.8.linear_attn.norm",
|
| 226 |
+
"model.language_model.layers.8.linear_attn.in_proj_b",
|
| 227 |
+
"model.language_model.layers.8.linear_attn.in_proj_a",
|
| 228 |
+
"model.language_model.layers.9.linear_attn",
|
| 229 |
+
"model.language_model.layers.9.linear_attn.norm",
|
| 230 |
+
"model.language_model.layers.9.linear_attn.in_proj_b",
|
| 231 |
+
"model.language_model.layers.9.linear_attn.in_proj_a",
|
| 232 |
+
"model.language_model.layers.10.linear_attn",
|
| 233 |
+
"model.language_model.layers.10.linear_attn.norm",
|
| 234 |
+
"model.language_model.layers.10.linear_attn.in_proj_b",
|
| 235 |
+
"model.language_model.layers.10.linear_attn.in_proj_a",
|
| 236 |
+
"model.language_model.layers.12.linear_attn",
|
| 237 |
+
"model.language_model.layers.12.linear_attn.norm",
|
| 238 |
+
"model.language_model.layers.12.linear_attn.in_proj_b",
|
| 239 |
+
"model.language_model.layers.12.linear_attn.in_proj_a",
|
| 240 |
+
"model.language_model.layers.13.linear_attn",
|
| 241 |
+
"model.language_model.layers.13.linear_attn.norm",
|
| 242 |
+
"model.language_model.layers.13.linear_attn.in_proj_b",
|
| 243 |
+
"model.language_model.layers.13.linear_attn.in_proj_a",
|
| 244 |
+
"model.language_model.layers.14.linear_attn",
|
| 245 |
+
"model.language_model.layers.14.linear_attn.norm",
|
| 246 |
+
"model.language_model.layers.14.linear_attn.in_proj_b",
|
| 247 |
+
"model.language_model.layers.14.linear_attn.in_proj_a",
|
| 248 |
+
"model.language_model.layers.16.linear_attn",
|
| 249 |
+
"model.language_model.layers.16.linear_attn.norm",
|
| 250 |
+
"model.language_model.layers.16.linear_attn.in_proj_b",
|
| 251 |
+
"model.language_model.layers.16.linear_attn.in_proj_a",
|
| 252 |
+
"model.language_model.layers.17.linear_attn",
|
| 253 |
+
"model.language_model.layers.17.linear_attn.norm",
|
| 254 |
+
"model.language_model.layers.17.linear_attn.in_proj_b",
|
| 255 |
+
"model.language_model.layers.17.linear_attn.in_proj_a",
|
| 256 |
+
"model.language_model.layers.18.linear_attn",
|
| 257 |
+
"model.language_model.layers.18.linear_attn.norm",
|
| 258 |
+
"model.language_model.layers.18.linear_attn.in_proj_b",
|
| 259 |
+
"model.language_model.layers.18.linear_attn.in_proj_a",
|
| 260 |
+
"model.language_model.layers.20.linear_attn",
|
| 261 |
+
"model.language_model.layers.20.linear_attn.norm",
|
| 262 |
+
"model.language_model.layers.20.linear_attn.in_proj_b",
|
| 263 |
+
"model.language_model.layers.20.linear_attn.in_proj_a",
|
| 264 |
+
"model.language_model.layers.21.linear_attn",
|
| 265 |
+
"model.language_model.layers.21.linear_attn.norm",
|
| 266 |
+
"model.language_model.layers.21.linear_attn.in_proj_b",
|
| 267 |
+
"model.language_model.layers.21.linear_attn.in_proj_a",
|
| 268 |
+
"model.language_model.layers.22.linear_attn",
|
| 269 |
+
"model.language_model.layers.22.linear_attn.norm",
|
| 270 |
+
"model.language_model.layers.22.linear_attn.in_proj_b",
|
| 271 |
+
"model.language_model.layers.22.linear_attn.in_proj_a",
|
| 272 |
+
"model.language_model.layers.24.linear_attn",
|
| 273 |
+
"model.language_model.layers.24.linear_attn.norm",
|
| 274 |
+
"model.language_model.layers.24.linear_attn.in_proj_b",
|
| 275 |
+
"model.language_model.layers.24.linear_attn.in_proj_a",
|
| 276 |
+
"model.language_model.layers.25.linear_attn",
|
| 277 |
+
"model.language_model.layers.25.linear_attn.norm",
|
| 278 |
+
"model.language_model.layers.25.linear_attn.in_proj_b",
|
| 279 |
+
"model.language_model.layers.25.linear_attn.in_proj_a",
|
| 280 |
+
"model.language_model.layers.26.linear_attn",
|
| 281 |
+
"model.language_model.layers.26.linear_attn.norm",
|
| 282 |
+
"model.language_model.layers.26.linear_attn.in_proj_b",
|
| 283 |
+
"model.language_model.layers.26.linear_attn.in_proj_a",
|
| 284 |
+
"model.language_model.layers.28.linear_attn",
|
| 285 |
+
"model.language_model.layers.28.linear_attn.norm",
|
| 286 |
+
"model.language_model.layers.28.linear_attn.in_proj_b",
|
| 287 |
+
"model.language_model.layers.28.linear_attn.in_proj_a",
|
| 288 |
+
"model.language_model.layers.29.linear_attn",
|
| 289 |
+
"model.language_model.layers.29.linear_attn.norm",
|
| 290 |
+
"model.language_model.layers.29.linear_attn.in_proj_b",
|
| 291 |
+
"model.language_model.layers.29.linear_attn.in_proj_a",
|
| 292 |
+
"model.language_model.layers.30.linear_attn",
|
| 293 |
+
"model.language_model.layers.30.linear_attn.norm",
|
| 294 |
+
"model.language_model.layers.30.linear_attn.in_proj_b",
|
| 295 |
+
"model.language_model.layers.30.linear_attn.in_proj_a",
|
| 296 |
+
"model.language_model.layers.32.linear_attn",
|
| 297 |
+
"model.language_model.layers.32.linear_attn.norm",
|
| 298 |
+
"model.language_model.layers.32.linear_attn.in_proj_b",
|
| 299 |
+
"model.language_model.layers.32.linear_attn.in_proj_a",
|
| 300 |
+
"model.language_model.layers.33.linear_attn",
|
| 301 |
+
"model.language_model.layers.33.linear_attn.norm",
|
| 302 |
+
"model.language_model.layers.33.linear_attn.in_proj_b",
|
| 303 |
+
"model.language_model.layers.33.linear_attn.in_proj_a",
|
| 304 |
+
"model.language_model.layers.34.linear_attn",
|
| 305 |
+
"model.language_model.layers.34.linear_attn.norm",
|
| 306 |
+
"model.language_model.layers.34.linear_attn.in_proj_b",
|
| 307 |
+
"model.language_model.layers.34.linear_attn.in_proj_a",
|
| 308 |
+
"model.language_model.layers.36.linear_attn",
|
| 309 |
+
"model.language_model.layers.36.linear_attn.norm",
|
| 310 |
+
"model.language_model.layers.36.linear_attn.in_proj_b",
|
| 311 |
+
"model.language_model.layers.36.linear_attn.in_proj_a",
|
| 312 |
+
"model.language_model.layers.37.linear_attn",
|
| 313 |
+
"model.language_model.layers.37.linear_attn.norm",
|
| 314 |
+
"model.language_model.layers.37.linear_attn.in_proj_b",
|
| 315 |
+
"model.language_model.layers.37.linear_attn.in_proj_a",
|
| 316 |
+
"model.language_model.layers.38.linear_attn",
|
| 317 |
+
"model.language_model.layers.38.linear_attn.norm",
|
| 318 |
+
"model.language_model.layers.38.linear_attn.in_proj_b",
|
| 319 |
+
"model.language_model.layers.38.linear_attn.in_proj_a",
|
| 320 |
+
"model.language_model.layers.40.linear_attn",
|
| 321 |
+
"model.language_model.layers.40.linear_attn.norm",
|
| 322 |
+
"model.language_model.layers.40.linear_attn.in_proj_b",
|
| 323 |
+
"model.language_model.layers.40.linear_attn.in_proj_a",
|
| 324 |
+
"model.language_model.layers.41.linear_attn",
|
| 325 |
+
"model.language_model.layers.41.linear_attn.norm",
|
| 326 |
+
"model.language_model.layers.41.linear_attn.in_proj_b",
|
| 327 |
+
"model.language_model.layers.41.linear_attn.in_proj_a",
|
| 328 |
+
"model.language_model.layers.42.linear_attn",
|
| 329 |
+
"model.language_model.layers.42.linear_attn.norm",
|
| 330 |
+
"model.language_model.layers.42.linear_attn.in_proj_b",
|
| 331 |
+
"model.language_model.layers.42.linear_attn.in_proj_a",
|
| 332 |
+
"model.language_model.layers.44.linear_attn",
|
| 333 |
+
"model.language_model.layers.44.linear_attn.norm",
|
| 334 |
+
"model.language_model.layers.44.linear_attn.in_proj_b",
|
| 335 |
+
"model.language_model.layers.44.linear_attn.in_proj_a",
|
| 336 |
+
"model.language_model.layers.45.linear_attn",
|
| 337 |
+
"model.language_model.layers.45.linear_attn.norm",
|
| 338 |
+
"model.language_model.layers.45.linear_attn.in_proj_b",
|
| 339 |
+
"model.language_model.layers.45.linear_attn.in_proj_a",
|
| 340 |
+
"model.language_model.layers.46.linear_attn",
|
| 341 |
+
"model.language_model.layers.46.linear_attn.norm",
|
| 342 |
+
"model.language_model.layers.46.linear_attn.in_proj_b",
|
| 343 |
+
"model.language_model.layers.46.linear_attn.in_proj_a",
|
| 344 |
+
"model.language_model.layers.48.linear_attn",
|
| 345 |
+
"model.language_model.layers.48.linear_attn.norm",
|
| 346 |
+
"model.language_model.layers.48.linear_attn.in_proj_b",
|
| 347 |
+
"model.language_model.layers.48.linear_attn.in_proj_a",
|
| 348 |
+
"model.language_model.layers.49.linear_attn",
|
| 349 |
+
"model.language_model.layers.49.linear_attn.norm",
|
| 350 |
+
"model.language_model.layers.49.linear_attn.in_proj_b",
|
| 351 |
+
"model.language_model.layers.49.linear_attn.in_proj_a",
|
| 352 |
+
"model.language_model.layers.50.linear_attn",
|
| 353 |
+
"model.language_model.layers.50.linear_attn.norm",
|
| 354 |
+
"model.language_model.layers.50.linear_attn.in_proj_b",
|
| 355 |
+
"model.language_model.layers.50.linear_attn.in_proj_a",
|
| 356 |
+
"model.language_model.layers.52.linear_attn",
|
| 357 |
+
"model.language_model.layers.52.linear_attn.norm",
|
| 358 |
+
"model.language_model.layers.52.linear_attn.in_proj_b",
|
| 359 |
+
"model.language_model.layers.52.linear_attn.in_proj_a",
|
| 360 |
+
"model.language_model.layers.53.linear_attn",
|
| 361 |
+
"model.language_model.layers.53.linear_attn.norm",
|
| 362 |
+
"model.language_model.layers.53.linear_attn.in_proj_b",
|
| 363 |
+
"model.language_model.layers.53.linear_attn.in_proj_a",
|
| 364 |
+
"model.language_model.layers.54.linear_attn",
|
| 365 |
+
"model.language_model.layers.54.linear_attn.norm",
|
| 366 |
+
"model.language_model.layers.54.linear_attn.in_proj_b",
|
| 367 |
+
"model.language_model.layers.54.linear_attn.in_proj_a",
|
| 368 |
+
"model.language_model.layers.56.linear_attn",
|
| 369 |
+
"model.language_model.layers.56.linear_attn.norm",
|
| 370 |
+
"model.language_model.layers.56.linear_attn.in_proj_b",
|
| 371 |
+
"model.language_model.layers.56.linear_attn.in_proj_a",
|
| 372 |
+
"model.language_model.layers.57.linear_attn",
|
| 373 |
+
"model.language_model.layers.57.linear_attn.norm",
|
| 374 |
+
"model.language_model.layers.57.linear_attn.in_proj_b",
|
| 375 |
+
"model.language_model.layers.57.linear_attn.in_proj_a",
|
| 376 |
+
"model.language_model.layers.58.linear_attn",
|
| 377 |
+
"model.language_model.layers.58.linear_attn.norm",
|
| 378 |
+
"model.language_model.layers.58.linear_attn.in_proj_b",
|
| 379 |
+
"model.language_model.layers.58.linear_attn.in_proj_a",
|
| 380 |
+
"model.language_model.layers.60.linear_attn",
|
| 381 |
+
"model.language_model.layers.60.linear_attn.norm",
|
| 382 |
+
"model.language_model.layers.60.linear_attn.in_proj_b",
|
| 383 |
+
"model.language_model.layers.60.linear_attn.in_proj_a",
|
| 384 |
+
"model.language_model.layers.61.linear_attn",
|
| 385 |
+
"model.language_model.layers.61.linear_attn.norm",
|
| 386 |
+
"model.language_model.layers.61.linear_attn.in_proj_b",
|
| 387 |
+
"model.language_model.layers.61.linear_attn.in_proj_a",
|
| 388 |
+
"model.language_model.layers.62.linear_attn",
|
| 389 |
+
"model.language_model.layers.62.linear_attn.norm",
|
| 390 |
+
"model.language_model.layers.62.linear_attn.in_proj_b",
|
| 391 |
+
"model.language_model.layers.62.linear_attn.in_proj_a",
|
| 392 |
+
"re:^mtp.*"
|
| 393 |
+
],
|
| 394 |
+
"kv_cache_scheme": {
|
| 395 |
+
"actorder": null,
|
| 396 |
+
"block_structure": null,
|
| 397 |
+
"dynamic": false,
|
| 398 |
+
"group_size": null,
|
| 399 |
+
"num_bits": 8,
|
| 400 |
+
"observer": "static_minmax",
|
| 401 |
+
"observer_kwargs": {},
|
| 402 |
+
"scale_dtype": null,
|
| 403 |
+
"strategy": "tensor",
|
| 404 |
+
"symmetric": true,
|
| 405 |
+
"type": "float",
|
| 406 |
+
"zp_dtype": null
|
| 407 |
+
},
|
| 408 |
+
"quant_method": "compressed-tensors",
|
| 409 |
+
"quantization_status": "compressed",
|
| 410 |
+
"sparsity_config": {},
|
| 411 |
+
"transform_config": {},
|
| 412 |
+
"version": "0.17.2.a20260716"
|
| 413 |
+
},
|
| 414 |
+
"text_config": {
|
| 415 |
+
"attention_bias": false,
|
| 416 |
+
"attention_dropout": 0.0,
|
| 417 |
+
"attn_output_gate": true,
|
| 418 |
+
"bos_token_id": 248044,
|
| 419 |
+
"dtype": "bfloat16",
|
| 420 |
+
"eos_token_id": 248044,
|
| 421 |
+
"full_attention_interval": 4,
|
| 422 |
+
"head_dim": 256,
|
| 423 |
+
"hidden_act": "silu",
|
| 424 |
+
"hidden_size": 5120,
|
| 425 |
+
"initializer_range": 0.02,
|
| 426 |
+
"intermediate_size": 17408,
|
| 427 |
+
"layer_types": [
|
| 428 |
+
"linear_attention",
|
| 429 |
+
"linear_attention",
|
| 430 |
+
"linear_attention",
|
| 431 |
+
"full_attention",
|
| 432 |
+
"linear_attention",
|
| 433 |
+
"linear_attention",
|
| 434 |
+
"linear_attention",
|
| 435 |
+
"full_attention",
|
| 436 |
+
"linear_attention",
|
| 437 |
+
"linear_attention",
|
| 438 |
+
"linear_attention",
|
| 439 |
+
"full_attention",
|
| 440 |
+
"linear_attention",
|
| 441 |
+
"linear_attention",
|
| 442 |
+
"linear_attention",
|
| 443 |
+
"full_attention",
|
| 444 |
+
"linear_attention",
|
| 445 |
+
"linear_attention",
|
| 446 |
+
"linear_attention",
|
| 447 |
+
"full_attention",
|
| 448 |
+
"linear_attention",
|
| 449 |
+
"linear_attention",
|
| 450 |
+
"linear_attention",
|
| 451 |
+
"full_attention",
|
| 452 |
+
"linear_attention",
|
| 453 |
+
"linear_attention",
|
| 454 |
+
"linear_attention",
|
| 455 |
+
"full_attention",
|
| 456 |
+
"linear_attention",
|
| 457 |
+
"linear_attention",
|
| 458 |
+
"linear_attention",
|
| 459 |
+
"full_attention",
|
| 460 |
+
"linear_attention",
|
| 461 |
+
"linear_attention",
|
| 462 |
+
"linear_attention",
|
| 463 |
+
"full_attention",
|
| 464 |
+
"linear_attention",
|
| 465 |
+
"linear_attention",
|
| 466 |
+
"linear_attention",
|
| 467 |
+
"full_attention",
|
| 468 |
+
"linear_attention",
|
| 469 |
+
"linear_attention",
|
| 470 |
+
"linear_attention",
|
| 471 |
+
"full_attention",
|
| 472 |
+
"linear_attention",
|
| 473 |
+
"linear_attention",
|
| 474 |
+
"linear_attention",
|
| 475 |
+
"full_attention",
|
| 476 |
+
"linear_attention",
|
| 477 |
+
"linear_attention",
|
| 478 |
+
"linear_attention",
|
| 479 |
+
"full_attention",
|
| 480 |
+
"linear_attention",
|
| 481 |
+
"linear_attention",
|
| 482 |
+
"linear_attention",
|
| 483 |
+
"full_attention",
|
| 484 |
+
"linear_attention",
|
| 485 |
+
"linear_attention",
|
| 486 |
+
"linear_attention",
|
| 487 |
+
"full_attention",
|
| 488 |
+
"linear_attention",
|
| 489 |
+
"linear_attention",
|
| 490 |
+
"linear_attention",
|
| 491 |
+
"full_attention"
|
| 492 |
+
],
|
| 493 |
+
"linear_conv_kernel_dim": 4,
|
| 494 |
+
"linear_key_head_dim": 128,
|
| 495 |
+
"linear_num_key_heads": 16,
|
| 496 |
+
"linear_num_value_heads": 48,
|
| 497 |
+
"linear_value_head_dim": 128,
|
| 498 |
+
"mamba_ssm_dtype": "float32",
|
| 499 |
+
"max_position_embeddings": 262144,
|
| 500 |
+
"model_type": "qwen3_5_text",
|
| 501 |
+
"mtp_num_hidden_layers": 1,
|
| 502 |
+
"mtp_use_dedicated_embeddings": false,
|
| 503 |
+
"num_attention_heads": 24,
|
| 504 |
+
"num_hidden_layers": 64,
|
| 505 |
+
"num_key_value_heads": 4,
|
| 506 |
+
"output_gate_type": "swish",
|
| 507 |
+
"pad_token_id": null,
|
| 508 |
+
"partial_rotary_factor": 0.25,
|
| 509 |
+
"rms_norm_eps": 1e-06,
|
| 510 |
+
"rope_parameters": {
|
| 511 |
+
"mrope_interleaved": true,
|
| 512 |
+
"mrope_section": [
|
| 513 |
+
11,
|
| 514 |
+
11,
|
| 515 |
+
10
|
| 516 |
+
],
|
| 517 |
+
"partial_rotary_factor": 0.25,
|
| 518 |
+
"rope_theta": 10000000,
|
| 519 |
+
"rope_type": "default"
|
| 520 |
+
},
|
| 521 |
+
"tie_word_embeddings": false,
|
| 522 |
+
"use_cache": true,
|
| 523 |
+
"vocab_size": 248320
|
| 524 |
+
},
|
| 525 |
+
"tie_word_embeddings": false,
|
| 526 |
+
"transformers_version": "5.14.1",
|
| 527 |
+
"video_token_id": 248057,
|
| 528 |
+
"vision_config": {
|
| 529 |
+
"deepstack_visual_indexes": [],
|
| 530 |
+
"depth": 27,
|
| 531 |
+
"dtype": "bfloat16",
|
| 532 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 533 |
+
"hidden_size": 1152,
|
| 534 |
+
"in_channels": 3,
|
| 535 |
+
"initializer_range": 0.02,
|
| 536 |
+
"intermediate_size": 4304,
|
| 537 |
+
"model_type": "qwen3_5_vision",
|
| 538 |
+
"num_heads": 16,
|
| 539 |
+
"num_position_embeddings": 2304,
|
| 540 |
+
"out_hidden_size": 5120,
|
| 541 |
+
"patch_size": 16,
|
| 542 |
+
"spatial_merge_size": 2,
|
| 543 |
+
"temporal_patch_size": 2
|
| 544 |
+
},
|
| 545 |
+
"vision_end_token_id": 248054,
|
| 546 |
+
"vision_start_token_id": 248053
|
| 547 |
+
}
|
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.14.1"
|
| 13 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c473512c70eace07e2256fe9fd76596ac03e3295bee7d54cfb72676416afcc05
|
| 3 |
+
size 22568192096
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model_mtp.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d8268aa85ace093a561e3e7b63b9d390dac1cd55a90cd55b5ec509c3c9da9fe
|
| 3 |
+
size 849400392
|
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 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"bos_token": null,
|
| 7 |
+
"clean_up_tokenization_spaces": false,
|
| 8 |
+
"eos_token": "<|im_end|>",
|
| 9 |
+
"errors": "replace",
|
| 10 |
+
"image_token": "<|image_pad|>",
|
| 11 |
+
"model_max_length": 262144,
|
| 12 |
+
"model_specific_special_tokens": {
|
| 13 |
+
"audio_bos_token": "<|audio_start|>",
|
| 14 |
+
"audio_eos_token": "<|audio_end|>",
|
| 15 |
+
"audio_token": "<|audio_pad|>",
|
| 16 |
+
"image_token": "<|image_pad|>",
|
| 17 |
+
"video_token": "<|video_pad|>",
|
| 18 |
+
"vision_bos_token": "<|vision_start|>",
|
| 19 |
+
"vision_eos_token": "<|vision_end|>"
|
| 20 |
+
},
|
| 21 |
+
"pad_token": "<|endoftext|>",
|
| 22 |
+
"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+",
|
| 23 |
+
"split_special_tokens": false,
|
| 24 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 25 |
+
"unk_token": null,
|
| 26 |
+
"video_token": "<|video_pad|>",
|
| 27 |
+
"vision_bos_token": "<|vision_start|>",
|
| 28 |
+
"vision_eos_token": "<|vision_end|>"
|
| 29 |
+
}
|
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
|
|
|