Instructions to use netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit") config = load_config("netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add verified NetProjects WeVisOne conversion
Browse filesFiles changed (12)
- .gitattributes+1
- LICENSEAdded+435
- README.mdAdded+29
- chat_template.jinjaAdded+120
- config.jsonAdded+1375
- generation_config.jsonAdded+14
- layerfit-recipe.jsonAdded+152
- model.safetensorsAdded+3
- model.safetensors.index.jsonAdded
- processor_config.jsonAdded+50
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+18
32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435Tencent is pleased to support the open source community by making WeVisOne-VL-4B available.
Copyright (C) 2026 Tencent. All rights reserved.
The open-source software and/or models included in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) Tencent.
WeVisOne-VL-4B is licensed under Apache-2.0, except for the third-party components listed below, which remain licensed under their respective original terms. WeVisOne-VL-4B does not impose any additional restrictions beyond those specified in the original licenses of these third-party components. Users are required to comply with all applicable terms and conditions of the original licenses and to ensure that the use of these third-party components conforms to all relevant laws and regulations.
For the avoidance of doubt, WeVisOne-VL-4B refers to code, parameters, and weights made publicly available by Tencent in accordance with Apache-2.0.
Terms of Apache-2.0:--------------------------------------------------------------------Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependencies and Licenses:
This open-source project, WeVisOne-VL-4B, builds upon the following open-source models and/or software components, each of which remains licensed under its original license. Certain models or software may include modifications made by Tencent (“Tencent Modifications”), which are Copyright (C) Tencent.
In case you believe there have been errors in the attribution below, you may submit the concerns to us for review and correction.
Open Source Model Licensed under the Apache-2.0:--------------------------------------------------------------------1. Qwen3-VL-4B-InstructCopyright 2024 Alibaba CloudPlease note this model has been modified by Tencent in this distribution.
Terms of the Apache-2.0:--------------------------------------------------------------------Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
1234567891011121314151617181920212223242526272829---license: apache-2.0base_model: tencent/WeVisOne-VL-4Bbase_model_relation: quantizedlibrary_name: mlxpipeline_tag: image-text-to-texttags:- mlx- ocr- visual-grounding- wevisone---
# WeVisOne-VL-4B-LayerFit-MLX-4bit
NetProjects conversion of [Tencent WeVisOne-VL-4B](https://huggingface.co/tencent/WeVisOne-VL-4B/tree/6b44a45873b4bbc7dca383922504430dc60eca23). Supports image-to-text perception with structured text, bounding boxes and points. **These builds do not implement segmentation masks or alpha matting.** Tencent’s separate pixel decoder is not bundled.
**Weights:** 3.31 GB, including the BF16 vision tower. The original chat template is retained.
Compact MLX option. At a matched budget, next-token agreement was **89.2% vs. 87.0%** for uniform 4-bit, with **21% lower KL divergence**. It counted all 16 chess pieces and rejected both absent targets on the real-image set, but omitted an ampersand in OCR.
```bashmlx_vlm.generate --model netprojects/WeVisOne-VL-4B-LayerFit-MLX-4bit --image image.png \ --prompt "detect all the word in the box format" --max-tokens 512 --temperature 0```
## License
See `LICENSE` for Tencent and third-party attribution and terms.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {%- if messages[0].content is string %} {{- messages[0].content }} {%- else %} {%- for content in messages[0].content %} {%- if 'text' in content %} {{- content.text }} {%- endif %} {%- endfor %} {%- endif %} {{- '\n\n' }} {%- endif %} {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' }} {%- if messages[0].content is string %} {{- messages[0].content }} {%- else %} {%- for content in messages[0].content %} {%- if 'text' in content %} {{- content.text }} {%- endif %} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}{%- for message in messages %} {%- if message.role == "user" %} {{- '<|im_start|>' + message.role + '\n' }} {%- if message.content is string %} {{- message.content }} {%- else %} {%- for content in message.content %} {%- if content.type == 'image' or 'image' in content or 'image_url' in content %} {%- set image_count.value = image_count.value + 1 %} {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%} <|vision_start|><|image_pad|><|vision_end|> {%- elif content.type == 'video' or 'video' in content %} {%- set video_count.value = video_count.value + 1 %} {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%} <|vision_start|><|video_pad|><|vision_end|> {%- elif 'text' in content %} {{- content.text }} {%- endif %} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role + '\n' }} {%- if message.content is string %} {{- message.content }} {%- else %} {%- for content_item in message.content %} {%- if 'text' in content_item %} {{- content_item.text }} {%- endif %} {%- endfor %} {%- endif %} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and message.content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {%- if message.content is string %} {{- message.content }} {%- else %} {%- for content in message.content %} {%- if content.type == 'image' or 'image' in content or 'image_url' in content %} {%- set image_count.value = image_count.value + 1 %} {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%} <|vision_start|><|image_pad|><|vision_end|> {%- elif content.type == 'video' or 'video' in content %} {%- set video_count.value = video_count.value + 1 %} {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%} <|vision_start|><|video_pad|><|vision_end|> {%- elif 'text' in content %} {{- content.text }} {%- endif %} {%- endfor %} {%- endif %} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }}{%- endif %}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375{ "architectures": [ "Qwen3VLForConditionalGeneration" ], "bos_token_id": null, "do_sample": true, "dtype": "bfloat16", "eos_token_id": [ 151645, 151645, 151643 ], "generation_config": { "do_sample": true, "eos_token_id": [ 151645, 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.0, "temperature": 0.7, "top_k": 20, "top_p": 0.8, "transformers_version": "5.12.1" }, "image_token_id": 151655, "model_type": "qwen3_vl", "pad_token_id": 151643, "quantization": { "language_model.model.embed_tokens": { "group_size": 64, "bits": 3, "mode": "affine" }, "language_model.model.layers.0.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.0.self_attn.o_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.0.self_attn.q_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.0.self_attn.v_proj": { "group_size": 64, "bits": 6, "mode": "affine" }, "language_model.model.layers.1.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.1.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.1.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.1.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.2.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.2.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.2.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.2.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.3.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.3.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.3.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.3.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.4.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.4.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.4.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.4.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.5.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.5.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.5.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.5.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.6.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.6.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.6.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.6.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.7.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.7.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.7.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.7.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.8.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.8.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.8.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.8.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.9.self_attn.k_proj": { "group_size": 64, "bits": 6, "mode": "affine" }, "language_model.model.layers.9.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.9.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.9.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.10.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.10.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.10.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.10.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.11.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.11.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.11.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.11.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.12.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.12.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.12.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.12.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.13.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.13.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.13.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.13.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.14.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.14.self_attn.o_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.14.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.14.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.15.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.15.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.15.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.15.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.16.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.16.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.16.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.16.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.17.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.17.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.17.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.17.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.18.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.18.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.18.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.18.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.19.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.19.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.19.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.19.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.20.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.20.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.20.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.20.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.21.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.21.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.21.self_attn.q_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.21.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.22.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.22.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.22.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.22.self_attn.v_proj": { "group_size": 64, "bits": 6, "mode": "affine" }, "language_model.model.layers.23.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.23.self_attn.o_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.23.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.23.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.24.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.24.self_attn.o_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.24.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.24.self_attn.v_proj": { "group_size": 64, "bits": 6, "mode": "affine" }, "language_model.model.layers.25.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.25.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.25.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.25.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.26.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.26.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.26.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.26.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.27.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.27.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.27.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.27.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.28.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.28.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.28.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.28.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.29.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.29.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.29.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.29.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.30.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.30.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.30.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.30.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.31.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.31.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.31.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.31.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.32.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.32.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.32.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.32.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.33.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.33.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.33.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.33.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.34.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.34.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.34.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.34.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.35.self_attn.k_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.35.self_attn.o_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.35.self_attn.q_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.35.self_attn.v_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.0.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.0.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.0.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.1.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.1.mlp.gate_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.1.mlp.up_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.2.mlp.down_proj": { "group_size": 64, "bits": 3, "mode": "affine" }, "language_model.model.layers.2.mlp.gate_proj": { "group_size": 64, "bits": 6, "mode": "affine" }, "language_model.model.layers.2.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.3.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.3.mlp.gate_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.3.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.4.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.4.mlp.gate_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.4.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.5.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.5.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.5.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.6.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.6.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.6.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.7.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.7.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.7.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.8.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.8.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.8.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.9.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.9.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.9.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.10.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.10.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.10.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.11.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.11.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.11.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.12.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.12.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.12.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.13.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.13.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.13.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.14.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.14.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.14.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.15.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.15.mlp.gate_proj": { "group_size": 64, "bits": 3, "mode": "affine" }, "language_model.model.layers.15.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.16.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.16.mlp.gate_proj": { "group_size": 64, "bits": 3, "mode": "affine" }, "language_model.model.layers.16.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.17.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.17.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.17.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.18.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.18.mlp.gate_proj": { "group_size": 64, "bits": 3, "mode": "affine" }, "language_model.model.layers.18.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.19.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.19.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.19.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.20.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.20.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.20.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.21.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.21.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.21.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.22.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.22.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.22.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.23.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.23.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.23.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.24.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.24.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.24.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.25.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.25.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.25.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.26.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.26.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.26.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.27.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.27.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.27.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.28.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.28.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.28.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.29.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.29.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.29.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.30.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.30.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.30.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.31.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.31.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.31.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.32.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.32.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.32.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.33.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.33.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.33.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.34.mlp.down_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.34.mlp.gate_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.34.mlp.up_proj": { "group_size": 64, "bits": 4, "mode": "affine" }, "language_model.model.layers.35.mlp.down_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.35.mlp.gate_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.model.layers.35.mlp.up_proj": { "group_size": 64, "bits": 5, "mode": "affine" }, "language_model.lm_head": { "group_size": 64, "bits": 4, "mode": "affine" }, "group_size": 64, "bits": 4 }, "temperature": 0.7, "text_config": { "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 151643, "dtype": "bfloat16", "eos_token_id": 151645, "head_dim": 128, "hidden_act": "silu", "hidden_size": 2560, "initializer_range": 0.02, "intermediate_size": 9728, "max_position_embeddings": 262144, "model_type": "qwen3_vl_text", "num_attention_heads": 32, "num_hidden_layers": 36, "num_key_value_heads": 8, "pad_token_id": null, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 24, 20, 20 ], "rope_theta": 5000000, "rope_type": "default" }, "tie_word_embeddings": false, "use_cache": true, "vocab_size": 152680, "rope_theta": 5000000, "rope_scaling": { "mrope_interleaved": true, "mrope_section": [ 24, 20, 20 ], "rope_type": "default" } }, "tie_word_embeddings": false, "top_k": 20, "top_p": 0.8, "transformers_version": "5.12.1", "video_token_id": 151656, "vision_config": { "deepstack_visual_indexes": [ 5, 11, 17 ], "depth": 24, "dtype": "bfloat16", "hidden_act": "gelu_pytorch_tanh", "hidden_size": 1024, "in_channels": 3, "initializer_range": 0.02, "intermediate_size": 4096, "model_type": "qwen3_vl", "num_heads": 16, "num_position_embeddings": 2304, "out_hidden_size": 2560, "patch_size": 16, "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_end_token_id": 151653, "vision_start_token_id": 151652}1234567891011121314{ "do_sample": true, "eos_token_id": [ 151645, 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.0, "temperature": 0.7, "top_k": 20, "top_p": 0.8, "transformers_version": "5.12.1"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152{ "recipe": [ [ "L*.attn.k", "a5g64" ], [ "L9.attn.k", "a6g64" ], [ "L*.attn.o", "a4g64" ], [ "L0.attn.o", "a5g64" ], [ "L14.attn.o", "a5g64" ], [ "L23.attn.o", "a5g64" ], [ "L24.attn.o", "a5g64" ], [ "L*.attn.q", "a4g64" ], [ "L0.attn.q", "a5g64" ], [ "L21.attn.q", "a5g64" ], [ "L*.attn.v", "a5g64" ], [ "L0.attn.v", "a6g64" ], [ "L22.attn.v", "a6g64" ], [ "L24.attn.v", "a6g64" ], [ "embed", "a3g64" ], [ "head", "a4g64" ], [ "L*.mlp.down", "a4g64" ], [ "L2.mlp.down", "a3g64" ], [ "L35.mlp.down", "a5g64" ], [ "L*.mlp.gate", "a4g64" ], [ "L1.mlp.gate", "a5g64" ], [ "L2.mlp.gate", "a6g64" ], [ "L3.mlp.gate", "a5g64" ], [ "L4.mlp.gate", "a5g64" ], [ "L15.mlp.gate", "a3g64" ], [ "L16.mlp.gate", "a3g64" ], [ "L18.mlp.gate", "a3g64" ], [ "L35.mlp.gate", "a5g64" ], [ "L*.mlp.up", "a4g64" ], [ "L1.mlp.up", "a5g64" ], [ "L35.mlp.up", "a5g64" ] ], "metrics": { "kl_mean": 0.07225, "kl_p99": 0.6805, "top1": 89.18, "kl_non_english": 0.0761, "kl_by_kind": { "code": 0.04105, "de": 0.10821, "el": 0.08034, "en": 0.08403, "es": 0.07154, "fr": 0.06734, "it": 0.08483, "ja": 0.0522, "math": 0.06348, "ru": 0.09023, "tool": 0.08601, "zh": 0.05411 }, "size_gb": 2.483326, "name": "greedy-b6", "gate": "PASS (top1 +2.13 pt, KL -21%)" }, "tool": "qwen38_layerfit 0.4.1"}123version https://git-lfs.github.com/spec/v1oid sha256:abe956d723fddc63026453722955d325feac628be5e6b666ff73d40d20797c36size 33141733941234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "image_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "Qwen3VLImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "max_pixels": 16777216, "merge_size": 2, "min_pixels": 65536, "patch_size": 16, "rescale_factor": 0.00392156862745098, "temporal_patch_size": 2 }, "processor_class": "Qwen3VLProcessor", "video_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "fps": 2.0, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "max_frames": 768, "max_pixels": 786432, "merge_size": 2, "min_frames": 4, "min_pixels": 131072, "patch_size": 16, "rescale_factor": 0.00392156862745098, "temporal_patch_size": 2, "video_processor_type": "Qwen3VLVideoProcessor" }}123version https://git-lfs.github.com/spec/v1oid sha256:3bb172429b952469b51c64783f52fa01c26d1b30f1f31a4693e385a43f9cfc5esize 11607393123456789101112131415161718{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [], "is_local": true, "local_files_only": true, "model_max_length": 8192, "pad_token": "<|endoftext|>", "padding_side": "right", "processor_class": "Qwen3VLProcessor", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}.gitattributes+1
LICENSEAdded+435
README.mdAdded+29
chat_template.jinjaAdded+120
config.jsonAdded+1375
generation_config.jsonAdded+14
layerfit-recipe.jsonAdded+152
model.safetensorsAdded+3
model.safetensors.index.jsonAdded
processor_config.jsonAdded+50
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+18