Upload quantized model Agents-A1-AutoRound-W4A16-RTN
Browse files- .gitattributes +1 -0
- README.md +178 -0
- chat_template.jinja +154 -0
- config.json +301 -0
- generation_config.json +7 -0
- model-00001-of-00005.safetensors +3 -0
- model-00002-of-00005.safetensors +3 -0
- model-00003-of-00005.safetensors +3 -0
- model-00004-of-00005.safetensors +3 -0
- model-00005-of-00005.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +26 -0
- processor_config.json +60 -0
- quantization_config.json +179 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -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
|
README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- InternScience/Agents-A1
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- quantized
|
| 7 |
+
- w4a16
|
| 8 |
+
- autoround
|
| 9 |
+
- low-bit-open-llm-leaderboard
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Agents-A1-AutoRound-W4A16-RTN
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
This model is a int4 weight-only quantization with group_size 128 and symmetric quantization of [InternScience/Agents-A1](https://huggingface.co/InternScience/Agents-A1) generated by [AutoRound](https://github.com/intel/auto-round). Please follow the license of the original model.
|
| 17 |
+
|
| 18 |
+
## Quantization Details
|
| 19 |
+
|
| 20 |
+
| Attribute | Value |
|
| 21 |
+
|-----------|-------|
|
| 22 |
+
| Base Model | [InternScience/Agents-A1](https://huggingface.co/InternScience/Agents-A1) |
|
| 23 |
+
| Quantization Tool | [AutoRound](https://github.com/intel/auto-round) |
|
| 24 |
+
| Quantization Scheme | W4A16 |
|
| 25 |
+
| Quantized Size | 19504 MB |
|
| 26 |
+
|
| 27 |
+
## Evaluation Results
|
| 28 |
+
|
| 29 |
+
| Task | Accuracy |
|
| 30 |
+
|------|----------|
|
| 31 |
+
| hellaswag | 0.6244 |
|
| 32 |
+
| mmlu | 0.8183 |
|
| 33 |
+
| mmlu_abstract_algebra | 0.6900 |
|
| 34 |
+
| mmlu_anatomy | 0.8519 |
|
| 35 |
+
| mmlu_astronomy | 0.9408 |
|
| 36 |
+
| mmlu_business_ethics | 0.8400 |
|
| 37 |
+
| mmlu_clinical_knowledge | 0.8906 |
|
| 38 |
+
| mmlu_college_biology | 0.9444 |
|
| 39 |
+
| mmlu_college_chemistry | 0.6100 |
|
| 40 |
+
| mmlu_college_computer_science | 0.7200 |
|
| 41 |
+
| mmlu_college_mathematics | 0.7000 |
|
| 42 |
+
| mmlu_college_medicine | 0.8555 |
|
| 43 |
+
| mmlu_college_physics | 0.6569 |
|
| 44 |
+
| mmlu_computer_security | 0.8000 |
|
| 45 |
+
| mmlu_conceptual_physics | 0.9191 |
|
| 46 |
+
| mmlu_econometrics | 0.8246 |
|
| 47 |
+
| mmlu_electrical_engineering | 0.8414 |
|
| 48 |
+
| mmlu_elementary_mathematics | 0.8148 |
|
| 49 |
+
| mmlu_formal_logic | 0.6984 |
|
| 50 |
+
| mmlu_global_facts | 0.4900 |
|
| 51 |
+
| mmlu_high_school_biology | 0.9548 |
|
| 52 |
+
| mmlu_high_school_chemistry | 0.8079 |
|
| 53 |
+
| mmlu_high_school_computer_science | 0.9100 |
|
| 54 |
+
| mmlu_high_school_european_history | 0.8727 |
|
| 55 |
+
| mmlu_high_school_geography | 0.9545 |
|
| 56 |
+
| mmlu_high_school_government_and_politics | 0.9741 |
|
| 57 |
+
| mmlu_high_school_macroeconomics | 0.9077 |
|
| 58 |
+
| mmlu_high_school_mathematics | 0.5630 |
|
| 59 |
+
| mmlu_high_school_microeconomics | 0.9496 |
|
| 60 |
+
| mmlu_high_school_physics | 0.7682 |
|
| 61 |
+
| mmlu_high_school_psychology | 0.9523 |
|
| 62 |
+
| mmlu_high_school_statistics | 0.8241 |
|
| 63 |
+
| mmlu_high_school_us_history | 0.9118 |
|
| 64 |
+
| mmlu_high_school_world_history | 0.9198 |
|
| 65 |
+
| mmlu_human_aging | 0.8072 |
|
| 66 |
+
| mmlu_human_sexuality | 0.8931 |
|
| 67 |
+
| mmlu_humanities | 0.7426 |
|
| 68 |
+
| mmlu_international_law | 0.9008 |
|
| 69 |
+
| mmlu_jurisprudence | 0.8704 |
|
| 70 |
+
| mmlu_logical_fallacies | 0.8957 |
|
| 71 |
+
| mmlu_machine_learning | 0.7768 |
|
| 72 |
+
| mmlu_management | 0.9126 |
|
| 73 |
+
| mmlu_marketing | 0.9359 |
|
| 74 |
+
| mmlu_medical_genetics | 0.9500 |
|
| 75 |
+
| mmlu_miscellaneous | 0.9361 |
|
| 76 |
+
| mmlu_moral_disputes | 0.8324 |
|
| 77 |
+
| mmlu_moral_scenarios | 0.5687 |
|
| 78 |
+
| mmlu_nutrition | 0.8824 |
|
| 79 |
+
| mmlu_other | 0.8574 |
|
| 80 |
+
| mmlu_philosophy | 0.8489 |
|
| 81 |
+
| mmlu_prehistory | 0.9012 |
|
| 82 |
+
| mmlu_professional_accounting | 0.7447 |
|
| 83 |
+
| mmlu_professional_law | 0.6545 |
|
| 84 |
+
| mmlu_professional_medicine | 0.9412 |
|
| 85 |
+
| mmlu_professional_psychology | 0.8873 |
|
| 86 |
+
| mmlu_public_relations | 0.7455 |
|
| 87 |
+
| mmlu_security_studies | 0.8245 |
|
| 88 |
+
| mmlu_social_sciences | 0.9067 |
|
| 89 |
+
| mmlu_sociology | 0.9154 |
|
| 90 |
+
| mmlu_stem | 0.8065 |
|
| 91 |
+
| mmlu_us_foreign_policy | 0.9200 |
|
| 92 |
+
| mmlu_virology | 0.5422 |
|
| 93 |
+
| mmlu_world_religions | 0.8889 |
|
| 94 |
+
| piqa | 0.8156 |
|
| 95 |
+
|
| 96 |
+
## How to Use
|
| 97 |
+
|
| 98 |
+
### HF Usage
|
| 99 |
+
|
| 100 |
+
**Step 1: Install [AutoRound](https://github.com/intel/auto-round)**
|
| 101 |
+
|
| 102 |
+
```bash
|
| 103 |
+
pip install auto-round
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
**Step 2: Load and run the quantized model**
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 110 |
+
|
| 111 |
+
model_name = "Agents-A1-AutoRound-W4A16-RTN"
|
| 112 |
+
|
| 113 |
+
# load the tokenizer and the model
|
| 114 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 115 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
|
| 116 |
+
|
| 117 |
+
# prepare the model input
|
| 118 |
+
prompt = "Write a quick sort algorithm."
|
| 119 |
+
messages = [{"role": "user", "content": prompt}]
|
| 120 |
+
text = tokenizer.apply_chat_template(
|
| 121 |
+
messages,
|
| 122 |
+
tokenize=False,
|
| 123 |
+
add_generation_prompt=True,
|
| 124 |
+
)
|
| 125 |
+
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 126 |
+
|
| 127 |
+
# conduct text completion
|
| 128 |
+
generated_ids = model.generate(**model_inputs, max_new_tokens=512)
|
| 129 |
+
output_ids = generated_ids[0][len(model_inputs.input_ids[0]) :].tolist()
|
| 130 |
+
|
| 131 |
+
content = tokenizer.decode(output_ids, skip_special_tokens=True)
|
| 132 |
+
print("content:", content)
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
### VLLM Usage
|
| 136 |
+
|
| 137 |
+
```bash
|
| 138 |
+
vllm serve Agents-A1-AutoRound-W4A16-RTN \
|
| 139 |
+
--trust-remote-code \
|
| 140 |
+
--dtype bfloat16 \
|
| 141 |
+
--tensor_parallel_size 1
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
If you encounter any issues, feel free to open an issue on the [AutoRound GitHub repo](https://github.com/intel/auto-round/issues) or provide feedback on the [Low-Bit Open LLM Leaderboard](https://huggingface.co/spaces/Intel/low_bit_open_llm_leaderboard).
|
| 145 |
+
|
| 146 |
+
## Ethical Considerations and Limitations
|
| 147 |
+
|
| 148 |
+
The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
|
| 149 |
+
Therefore, before deploying any applications of the model, developers should perform safety testing.
|
| 150 |
+
|
| 151 |
+
## Caveats and Recommendations
|
| 152 |
+
|
| 153 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
|
| 154 |
+
Here are a couple of useful links to learn more about Intel's AI software:
|
| 155 |
+
|
| 156 |
+
- [Intel Neural Compressor](https://github.com/intel/neural-compressor)
|
| 157 |
+
- [AutoRound](https://github.com/intel/auto-round)
|
| 158 |
+
|
| 159 |
+
## Disclaimer
|
| 160 |
+
|
| 161 |
+
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
|
| 162 |
+
|
| 163 |
+
## Cite
|
| 164 |
+
|
| 165 |
+
```
|
| 166 |
+
@article{cheng2023optimize,
|
| 167 |
+
title={Optimize weight rounding via signed gradient descent for the quantization of llms},
|
| 168 |
+
author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
|
| 169 |
+
journal={arXiv preprint arXiv:2309.05516},
|
| 170 |
+
year={2023}
|
| 171 |
+
}
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
[arxiv](https://arxiv.org/abs/2309.05516) [github](https://github.com/intel/auto-round)
|
| 175 |
+
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
*This model is part of the [Intel Low-Bit Open LLM Leaderboard](https://huggingface.co/spaces/Intel/low_bit_open_llm_leaderboard) initiative.*
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\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>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5MoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 248056,
|
| 7 |
+
"model_type": "qwen3_5_moe",
|
| 8 |
+
"quantization_config": {
|
| 9 |
+
"autoround_version": "0.14.0",
|
| 10 |
+
"bits": 4,
|
| 11 |
+
"block_name_to_quantize": "model.language_model.layers",
|
| 12 |
+
"data_type": "int",
|
| 13 |
+
"enable_quanted_input": false,
|
| 14 |
+
"extra_config": {
|
| 15 |
+
".*model\\.language_model\\.layers\\.[0-39]\\.mlp\\.gate.*": {
|
| 16 |
+
"bits": 16,
|
| 17 |
+
"data_type": "float"
|
| 18 |
+
},
|
| 19 |
+
"model.language_model.layers.0.mlp.shared_expert_gate": {
|
| 20 |
+
"bits": 16,
|
| 21 |
+
"data_type": "fp"
|
| 22 |
+
},
|
| 23 |
+
"model.language_model.layers.1.mlp.shared_expert_gate": {
|
| 24 |
+
"bits": 16,
|
| 25 |
+
"data_type": "fp"
|
| 26 |
+
},
|
| 27 |
+
"model.language_model.layers.10.mlp.shared_expert_gate": {
|
| 28 |
+
"bits": 16,
|
| 29 |
+
"data_type": "fp"
|
| 30 |
+
},
|
| 31 |
+
"model.language_model.layers.11.mlp.shared_expert_gate": {
|
| 32 |
+
"bits": 16,
|
| 33 |
+
"data_type": "fp"
|
| 34 |
+
},
|
| 35 |
+
"model.language_model.layers.12.mlp.shared_expert_gate": {
|
| 36 |
+
"bits": 16,
|
| 37 |
+
"data_type": "fp"
|
| 38 |
+
},
|
| 39 |
+
"model.language_model.layers.13.mlp.shared_expert_gate": {
|
| 40 |
+
"bits": 16,
|
| 41 |
+
"data_type": "fp"
|
| 42 |
+
},
|
| 43 |
+
"model.language_model.layers.14.mlp.shared_expert_gate": {
|
| 44 |
+
"bits": 16,
|
| 45 |
+
"data_type": "fp"
|
| 46 |
+
},
|
| 47 |
+
"model.language_model.layers.15.mlp.shared_expert_gate": {
|
| 48 |
+
"bits": 16,
|
| 49 |
+
"data_type": "fp"
|
| 50 |
+
},
|
| 51 |
+
"model.language_model.layers.16.mlp.shared_expert_gate": {
|
| 52 |
+
"bits": 16,
|
| 53 |
+
"data_type": "fp"
|
| 54 |
+
},
|
| 55 |
+
"model.language_model.layers.17.mlp.shared_expert_gate": {
|
| 56 |
+
"bits": 16,
|
| 57 |
+
"data_type": "fp"
|
| 58 |
+
},
|
| 59 |
+
"model.language_model.layers.18.mlp.shared_expert_gate": {
|
| 60 |
+
"bits": 16,
|
| 61 |
+
"data_type": "fp"
|
| 62 |
+
},
|
| 63 |
+
"model.language_model.layers.19.mlp.shared_expert_gate": {
|
| 64 |
+
"bits": 16,
|
| 65 |
+
"data_type": "fp"
|
| 66 |
+
},
|
| 67 |
+
"model.language_model.layers.2.mlp.shared_expert_gate": {
|
| 68 |
+
"bits": 16,
|
| 69 |
+
"data_type": "fp"
|
| 70 |
+
},
|
| 71 |
+
"model.language_model.layers.20.mlp.shared_expert_gate": {
|
| 72 |
+
"bits": 16,
|
| 73 |
+
"data_type": "fp"
|
| 74 |
+
},
|
| 75 |
+
"model.language_model.layers.21.mlp.shared_expert_gate": {
|
| 76 |
+
"bits": 16,
|
| 77 |
+
"data_type": "fp"
|
| 78 |
+
},
|
| 79 |
+
"model.language_model.layers.22.mlp.shared_expert_gate": {
|
| 80 |
+
"bits": 16,
|
| 81 |
+
"data_type": "fp"
|
| 82 |
+
},
|
| 83 |
+
"model.language_model.layers.23.mlp.shared_expert_gate": {
|
| 84 |
+
"bits": 16,
|
| 85 |
+
"data_type": "fp"
|
| 86 |
+
},
|
| 87 |
+
"model.language_model.layers.24.mlp.shared_expert_gate": {
|
| 88 |
+
"bits": 16,
|
| 89 |
+
"data_type": "fp"
|
| 90 |
+
},
|
| 91 |
+
"model.language_model.layers.25.mlp.shared_expert_gate": {
|
| 92 |
+
"bits": 16,
|
| 93 |
+
"data_type": "fp"
|
| 94 |
+
},
|
| 95 |
+
"model.language_model.layers.26.mlp.shared_expert_gate": {
|
| 96 |
+
"bits": 16,
|
| 97 |
+
"data_type": "fp"
|
| 98 |
+
},
|
| 99 |
+
"model.language_model.layers.27.mlp.shared_expert_gate": {
|
| 100 |
+
"bits": 16,
|
| 101 |
+
"data_type": "fp"
|
| 102 |
+
},
|
| 103 |
+
"model.language_model.layers.28.mlp.shared_expert_gate": {
|
| 104 |
+
"bits": 16,
|
| 105 |
+
"data_type": "fp"
|
| 106 |
+
},
|
| 107 |
+
"model.language_model.layers.29.mlp.shared_expert_gate": {
|
| 108 |
+
"bits": 16,
|
| 109 |
+
"data_type": "fp"
|
| 110 |
+
},
|
| 111 |
+
"model.language_model.layers.3.mlp.shared_expert_gate": {
|
| 112 |
+
"bits": 16,
|
| 113 |
+
"data_type": "fp"
|
| 114 |
+
},
|
| 115 |
+
"model.language_model.layers.30.mlp.shared_expert_gate": {
|
| 116 |
+
"bits": 16,
|
| 117 |
+
"data_type": "fp"
|
| 118 |
+
},
|
| 119 |
+
"model.language_model.layers.31.mlp.shared_expert_gate": {
|
| 120 |
+
"bits": 16,
|
| 121 |
+
"data_type": "fp"
|
| 122 |
+
},
|
| 123 |
+
"model.language_model.layers.32.mlp.shared_expert_gate": {
|
| 124 |
+
"bits": 16,
|
| 125 |
+
"data_type": "fp"
|
| 126 |
+
},
|
| 127 |
+
"model.language_model.layers.33.mlp.shared_expert_gate": {
|
| 128 |
+
"bits": 16,
|
| 129 |
+
"data_type": "fp"
|
| 130 |
+
},
|
| 131 |
+
"model.language_model.layers.34.mlp.shared_expert_gate": {
|
| 132 |
+
"bits": 16,
|
| 133 |
+
"data_type": "fp"
|
| 134 |
+
},
|
| 135 |
+
"model.language_model.layers.35.mlp.shared_expert_gate": {
|
| 136 |
+
"bits": 16,
|
| 137 |
+
"data_type": "fp"
|
| 138 |
+
},
|
| 139 |
+
"model.language_model.layers.36.mlp.shared_expert_gate": {
|
| 140 |
+
"bits": 16,
|
| 141 |
+
"data_type": "fp"
|
| 142 |
+
},
|
| 143 |
+
"model.language_model.layers.37.mlp.shared_expert_gate": {
|
| 144 |
+
"bits": 16,
|
| 145 |
+
"data_type": "fp"
|
| 146 |
+
},
|
| 147 |
+
"model.language_model.layers.38.mlp.shared_expert_gate": {
|
| 148 |
+
"bits": 16,
|
| 149 |
+
"data_type": "fp"
|
| 150 |
+
},
|
| 151 |
+
"model.language_model.layers.39.mlp.shared_expert_gate": {
|
| 152 |
+
"bits": 16,
|
| 153 |
+
"data_type": "fp"
|
| 154 |
+
},
|
| 155 |
+
"model.language_model.layers.4.mlp.shared_expert_gate": {
|
| 156 |
+
"bits": 16,
|
| 157 |
+
"data_type": "fp"
|
| 158 |
+
},
|
| 159 |
+
"model.language_model.layers.5.mlp.shared_expert_gate": {
|
| 160 |
+
"bits": 16,
|
| 161 |
+
"data_type": "fp"
|
| 162 |
+
},
|
| 163 |
+
"model.language_model.layers.6.mlp.shared_expert_gate": {
|
| 164 |
+
"bits": 16,
|
| 165 |
+
"data_type": "fp"
|
| 166 |
+
},
|
| 167 |
+
"model.language_model.layers.7.mlp.shared_expert_gate": {
|
| 168 |
+
"bits": 16,
|
| 169 |
+
"data_type": "fp"
|
| 170 |
+
},
|
| 171 |
+
"model.language_model.layers.8.mlp.shared_expert_gate": {
|
| 172 |
+
"bits": 16,
|
| 173 |
+
"data_type": "fp"
|
| 174 |
+
},
|
| 175 |
+
"model.language_model.layers.9.mlp.shared_expert_gate": {
|
| 176 |
+
"bits": 16,
|
| 177 |
+
"data_type": "fp"
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
+
"group_size": 128,
|
| 181 |
+
"iters": 0,
|
| 182 |
+
"low_gpu_mem_usage": true,
|
| 183 |
+
"packing_format": "auto_round:auto_gptq",
|
| 184 |
+
"quant_method": "auto-round",
|
| 185 |
+
"sym": true
|
| 186 |
+
},
|
| 187 |
+
"text_config": {
|
| 188 |
+
"attention_bias": false,
|
| 189 |
+
"attention_dropout": 0.0,
|
| 190 |
+
"attn_output_gate": true,
|
| 191 |
+
"bos_token_id": null,
|
| 192 |
+
"dtype": "bfloat16",
|
| 193 |
+
"eos_token_id": 248044,
|
| 194 |
+
"full_attention_interval": 4,
|
| 195 |
+
"head_dim": 256,
|
| 196 |
+
"hidden_act": "silu",
|
| 197 |
+
"hidden_size": 2048,
|
| 198 |
+
"initializer_range": 0.02,
|
| 199 |
+
"layer_types": [
|
| 200 |
+
"linear_attention",
|
| 201 |
+
"linear_attention",
|
| 202 |
+
"linear_attention",
|
| 203 |
+
"full_attention",
|
| 204 |
+
"linear_attention",
|
| 205 |
+
"linear_attention",
|
| 206 |
+
"linear_attention",
|
| 207 |
+
"full_attention",
|
| 208 |
+
"linear_attention",
|
| 209 |
+
"linear_attention",
|
| 210 |
+
"linear_attention",
|
| 211 |
+
"full_attention",
|
| 212 |
+
"linear_attention",
|
| 213 |
+
"linear_attention",
|
| 214 |
+
"linear_attention",
|
| 215 |
+
"full_attention",
|
| 216 |
+
"linear_attention",
|
| 217 |
+
"linear_attention",
|
| 218 |
+
"linear_attention",
|
| 219 |
+
"full_attention",
|
| 220 |
+
"linear_attention",
|
| 221 |
+
"linear_attention",
|
| 222 |
+
"linear_attention",
|
| 223 |
+
"full_attention",
|
| 224 |
+
"linear_attention",
|
| 225 |
+
"linear_attention",
|
| 226 |
+
"linear_attention",
|
| 227 |
+
"full_attention",
|
| 228 |
+
"linear_attention",
|
| 229 |
+
"linear_attention",
|
| 230 |
+
"linear_attention",
|
| 231 |
+
"full_attention",
|
| 232 |
+
"linear_attention",
|
| 233 |
+
"linear_attention",
|
| 234 |
+
"linear_attention",
|
| 235 |
+
"full_attention",
|
| 236 |
+
"linear_attention",
|
| 237 |
+
"linear_attention",
|
| 238 |
+
"linear_attention",
|
| 239 |
+
"full_attention"
|
| 240 |
+
],
|
| 241 |
+
"linear_conv_kernel_dim": 4,
|
| 242 |
+
"linear_key_head_dim": 128,
|
| 243 |
+
"linear_num_key_heads": 16,
|
| 244 |
+
"linear_num_value_heads": 32,
|
| 245 |
+
"linear_value_head_dim": 128,
|
| 246 |
+
"mamba_ssm_dtype": "float32",
|
| 247 |
+
"max_position_embeddings": 262144,
|
| 248 |
+
"mlp_only_layers": [],
|
| 249 |
+
"model_type": "qwen3_5_moe_text",
|
| 250 |
+
"moe_intermediate_size": 512,
|
| 251 |
+
"mtp_num_hidden_layers": 1,
|
| 252 |
+
"mtp_use_dedicated_embeddings": false,
|
| 253 |
+
"num_attention_heads": 16,
|
| 254 |
+
"num_experts": 256,
|
| 255 |
+
"num_experts_per_tok": 8,
|
| 256 |
+
"num_hidden_layers": 40,
|
| 257 |
+
"num_key_value_heads": 2,
|
| 258 |
+
"output_router_logits": false,
|
| 259 |
+
"pad_token_id": null,
|
| 260 |
+
"partial_rotary_factor": 0.25,
|
| 261 |
+
"rms_norm_eps": 1e-06,
|
| 262 |
+
"rope_parameters": {
|
| 263 |
+
"mrope_interleaved": true,
|
| 264 |
+
"mrope_section": [
|
| 265 |
+
11,
|
| 266 |
+
11,
|
| 267 |
+
10
|
| 268 |
+
],
|
| 269 |
+
"partial_rotary_factor": 0.25,
|
| 270 |
+
"rope_theta": 10000000,
|
| 271 |
+
"rope_type": "default"
|
| 272 |
+
},
|
| 273 |
+
"router_aux_loss_coef": 0.001,
|
| 274 |
+
"shared_expert_intermediate_size": 512,
|
| 275 |
+
"tie_word_embeddings": false,
|
| 276 |
+
"use_cache": true,
|
| 277 |
+
"vocab_size": 248320
|
| 278 |
+
},
|
| 279 |
+
"tie_word_embeddings": false,
|
| 280 |
+
"transformers_version": "5.12.1",
|
| 281 |
+
"video_token_id": 248057,
|
| 282 |
+
"vision_config": {
|
| 283 |
+
"deepstack_visual_indexes": [],
|
| 284 |
+
"depth": 27,
|
| 285 |
+
"dtype": "bfloat16",
|
| 286 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 287 |
+
"hidden_size": 1152,
|
| 288 |
+
"in_channels": 3,
|
| 289 |
+
"initializer_range": 0.02,
|
| 290 |
+
"intermediate_size": 4304,
|
| 291 |
+
"model_type": "qwen3_5_moe_vision",
|
| 292 |
+
"num_heads": 16,
|
| 293 |
+
"num_position_embeddings": 2304,
|
| 294 |
+
"out_hidden_size": 2048,
|
| 295 |
+
"patch_size": 16,
|
| 296 |
+
"spatial_merge_size": 2,
|
| 297 |
+
"temporal_patch_size": 2
|
| 298 |
+
},
|
| 299 |
+
"vision_end_token_id": 248054,
|
| 300 |
+
"vision_start_token_id": 248053
|
| 301 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": 248044,
|
| 5 |
+
"transformers_version": "5.12.1",
|
| 6 |
+
"use_cache": true
|
| 7 |
+
}
|
model-00001-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33d977ab4072497db9c1302a9bb71d84c8aab6958800718dd147af5186ed9aab
|
| 3 |
+
size 5001644584
|
model-00002-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d99bf66f127350c5581b9f4e67933822ba3962222e74a17341466a97c31e5fb
|
| 3 |
+
size 5003292784
|
model-00003-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca220661e4fba71be91b6c0d9d2551fce05b78b0cdc8357b4926630e8eb605a1
|
| 3 |
+
size 5003205624
|
model-00004-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44b2517aa4be865876714c9a47da652c85e6f9fdf0380d2ee330e6d77312f730
|
| 3 |
+
size 4997862816
|
model-00005-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a76b75b8193f5bdb966165fe448a74db90d9f139b927faeddbbc280e262763c
|
| 3 |
+
size 445900584
|
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,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": true,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"merge_size": 2,
|
| 18 |
+
"patch_size": 16,
|
| 19 |
+
"resample": 3,
|
| 20 |
+
"rescale_factor": 0.00392156862745098,
|
| 21 |
+
"size": {
|
| 22 |
+
"longest_edge": 16777216,
|
| 23 |
+
"shortest_edge": 65536
|
| 24 |
+
},
|
| 25 |
+
"temporal_patch_size": 2
|
| 26 |
+
}
|
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 |
+
}
|
quantization_config.json
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bits": 4,
|
| 3 |
+
"data_type": "int",
|
| 4 |
+
"group_size": 128,
|
| 5 |
+
"sym": true,
|
| 6 |
+
"enable_quanted_input": false,
|
| 7 |
+
"iters": 0,
|
| 8 |
+
"low_gpu_mem_usage": true,
|
| 9 |
+
"autoround_version": "0.14.0",
|
| 10 |
+
"block_name_to_quantize": "model.language_model.layers",
|
| 11 |
+
"quant_method": "auto-round",
|
| 12 |
+
"packing_format": "auto_round:auto_gptq",
|
| 13 |
+
"extra_config": {
|
| 14 |
+
"model.language_model.layers.0.mlp.shared_expert_gate": {
|
| 15 |
+
"bits": 16,
|
| 16 |
+
"data_type": "fp"
|
| 17 |
+
},
|
| 18 |
+
"model.language_model.layers.1.mlp.shared_expert_gate": {
|
| 19 |
+
"bits": 16,
|
| 20 |
+
"data_type": "fp"
|
| 21 |
+
},
|
| 22 |
+
"model.language_model.layers.2.mlp.shared_expert_gate": {
|
| 23 |
+
"bits": 16,
|
| 24 |
+
"data_type": "fp"
|
| 25 |
+
},
|
| 26 |
+
"model.language_model.layers.3.mlp.shared_expert_gate": {
|
| 27 |
+
"bits": 16,
|
| 28 |
+
"data_type": "fp"
|
| 29 |
+
},
|
| 30 |
+
"model.language_model.layers.4.mlp.shared_expert_gate": {
|
| 31 |
+
"bits": 16,
|
| 32 |
+
"data_type": "fp"
|
| 33 |
+
},
|
| 34 |
+
"model.language_model.layers.5.mlp.shared_expert_gate": {
|
| 35 |
+
"bits": 16,
|
| 36 |
+
"data_type": "fp"
|
| 37 |
+
},
|
| 38 |
+
"model.language_model.layers.6.mlp.shared_expert_gate": {
|
| 39 |
+
"bits": 16,
|
| 40 |
+
"data_type": "fp"
|
| 41 |
+
},
|
| 42 |
+
"model.language_model.layers.7.mlp.shared_expert_gate": {
|
| 43 |
+
"bits": 16,
|
| 44 |
+
"data_type": "fp"
|
| 45 |
+
},
|
| 46 |
+
"model.language_model.layers.8.mlp.shared_expert_gate": {
|
| 47 |
+
"bits": 16,
|
| 48 |
+
"data_type": "fp"
|
| 49 |
+
},
|
| 50 |
+
"model.language_model.layers.9.mlp.shared_expert_gate": {
|
| 51 |
+
"bits": 16,
|
| 52 |
+
"data_type": "fp"
|
| 53 |
+
},
|
| 54 |
+
"model.language_model.layers.10.mlp.shared_expert_gate": {
|
| 55 |
+
"bits": 16,
|
| 56 |
+
"data_type": "fp"
|
| 57 |
+
},
|
| 58 |
+
"model.language_model.layers.11.mlp.shared_expert_gate": {
|
| 59 |
+
"bits": 16,
|
| 60 |
+
"data_type": "fp"
|
| 61 |
+
},
|
| 62 |
+
"model.language_model.layers.12.mlp.shared_expert_gate": {
|
| 63 |
+
"bits": 16,
|
| 64 |
+
"data_type": "fp"
|
| 65 |
+
},
|
| 66 |
+
"model.language_model.layers.13.mlp.shared_expert_gate": {
|
| 67 |
+
"bits": 16,
|
| 68 |
+
"data_type": "fp"
|
| 69 |
+
},
|
| 70 |
+
"model.language_model.layers.14.mlp.shared_expert_gate": {
|
| 71 |
+
"bits": 16,
|
| 72 |
+
"data_type": "fp"
|
| 73 |
+
},
|
| 74 |
+
"model.language_model.layers.15.mlp.shared_expert_gate": {
|
| 75 |
+
"bits": 16,
|
| 76 |
+
"data_type": "fp"
|
| 77 |
+
},
|
| 78 |
+
"model.language_model.layers.16.mlp.shared_expert_gate": {
|
| 79 |
+
"bits": 16,
|
| 80 |
+
"data_type": "fp"
|
| 81 |
+
},
|
| 82 |
+
"model.language_model.layers.17.mlp.shared_expert_gate": {
|
| 83 |
+
"bits": 16,
|
| 84 |
+
"data_type": "fp"
|
| 85 |
+
},
|
| 86 |
+
"model.language_model.layers.18.mlp.shared_expert_gate": {
|
| 87 |
+
"bits": 16,
|
| 88 |
+
"data_type": "fp"
|
| 89 |
+
},
|
| 90 |
+
"model.language_model.layers.19.mlp.shared_expert_gate": {
|
| 91 |
+
"bits": 16,
|
| 92 |
+
"data_type": "fp"
|
| 93 |
+
},
|
| 94 |
+
"model.language_model.layers.20.mlp.shared_expert_gate": {
|
| 95 |
+
"bits": 16,
|
| 96 |
+
"data_type": "fp"
|
| 97 |
+
},
|
| 98 |
+
"model.language_model.layers.21.mlp.shared_expert_gate": {
|
| 99 |
+
"bits": 16,
|
| 100 |
+
"data_type": "fp"
|
| 101 |
+
},
|
| 102 |
+
"model.language_model.layers.22.mlp.shared_expert_gate": {
|
| 103 |
+
"bits": 16,
|
| 104 |
+
"data_type": "fp"
|
| 105 |
+
},
|
| 106 |
+
"model.language_model.layers.23.mlp.shared_expert_gate": {
|
| 107 |
+
"bits": 16,
|
| 108 |
+
"data_type": "fp"
|
| 109 |
+
},
|
| 110 |
+
"model.language_model.layers.24.mlp.shared_expert_gate": {
|
| 111 |
+
"bits": 16,
|
| 112 |
+
"data_type": "fp"
|
| 113 |
+
},
|
| 114 |
+
"model.language_model.layers.25.mlp.shared_expert_gate": {
|
| 115 |
+
"bits": 16,
|
| 116 |
+
"data_type": "fp"
|
| 117 |
+
},
|
| 118 |
+
"model.language_model.layers.26.mlp.shared_expert_gate": {
|
| 119 |
+
"bits": 16,
|
| 120 |
+
"data_type": "fp"
|
| 121 |
+
},
|
| 122 |
+
"model.language_model.layers.27.mlp.shared_expert_gate": {
|
| 123 |
+
"bits": 16,
|
| 124 |
+
"data_type": "fp"
|
| 125 |
+
},
|
| 126 |
+
"model.language_model.layers.28.mlp.shared_expert_gate": {
|
| 127 |
+
"bits": 16,
|
| 128 |
+
"data_type": "fp"
|
| 129 |
+
},
|
| 130 |
+
"model.language_model.layers.29.mlp.shared_expert_gate": {
|
| 131 |
+
"bits": 16,
|
| 132 |
+
"data_type": "fp"
|
| 133 |
+
},
|
| 134 |
+
"model.language_model.layers.30.mlp.shared_expert_gate": {
|
| 135 |
+
"bits": 16,
|
| 136 |
+
"data_type": "fp"
|
| 137 |
+
},
|
| 138 |
+
"model.language_model.layers.31.mlp.shared_expert_gate": {
|
| 139 |
+
"bits": 16,
|
| 140 |
+
"data_type": "fp"
|
| 141 |
+
},
|
| 142 |
+
"model.language_model.layers.32.mlp.shared_expert_gate": {
|
| 143 |
+
"bits": 16,
|
| 144 |
+
"data_type": "fp"
|
| 145 |
+
},
|
| 146 |
+
"model.language_model.layers.33.mlp.shared_expert_gate": {
|
| 147 |
+
"bits": 16,
|
| 148 |
+
"data_type": "fp"
|
| 149 |
+
},
|
| 150 |
+
"model.language_model.layers.34.mlp.shared_expert_gate": {
|
| 151 |
+
"bits": 16,
|
| 152 |
+
"data_type": "fp"
|
| 153 |
+
},
|
| 154 |
+
"model.language_model.layers.35.mlp.shared_expert_gate": {
|
| 155 |
+
"bits": 16,
|
| 156 |
+
"data_type": "fp"
|
| 157 |
+
},
|
| 158 |
+
"model.language_model.layers.36.mlp.shared_expert_gate": {
|
| 159 |
+
"bits": 16,
|
| 160 |
+
"data_type": "fp"
|
| 161 |
+
},
|
| 162 |
+
"model.language_model.layers.37.mlp.shared_expert_gate": {
|
| 163 |
+
"bits": 16,
|
| 164 |
+
"data_type": "fp"
|
| 165 |
+
},
|
| 166 |
+
"model.language_model.layers.38.mlp.shared_expert_gate": {
|
| 167 |
+
"bits": 16,
|
| 168 |
+
"data_type": "fp"
|
| 169 |
+
},
|
| 170 |
+
"model.language_model.layers.39.mlp.shared_expert_gate": {
|
| 171 |
+
"bits": 16,
|
| 172 |
+
"data_type": "fp"
|
| 173 |
+
},
|
| 174 |
+
".*model\\.language_model\\.layers\\.[0-39]\\.mlp\\.gate.*": {
|
| 175 |
+
"bits": 16,
|
| 176 |
+
"data_type": "float"
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
}
|
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,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": false,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"processor_class": "Qwen3VLProcessor",
|
| 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 |
+
}
|