Text Generation
Transformers
Safetensors
English
Chinese
glm5_next
image-text-to-text
conversational
8-bit precision
modelopt
Instructions to use local-inference-lab/GLM-5.3-Flash-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="local-inference-lab/GLM-5.3-Flash-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("local-inference-lab/GLM-5.3-Flash-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("local-inference-lab/GLM-5.3-Flash-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "local-inference-lab/GLM-5.3-Flash-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "local-inference-lab/GLM-5.3-Flash-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/local-inference-lab/GLM-5.3-Flash-NVFP4
- SGLang
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "local-inference-lab/GLM-5.3-Flash-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "local-inference-lab/GLM-5.3-Flash-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "local-inference-lab/GLM-5.3-Flash-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "local-inference-lab/GLM-5.3-Flash-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with Docker Model Runner:
docker model run hf.co/local-inference-lab/GLM-5.3-Flash-NVFP4
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- LICENSE +21 -0
- README.md +68 -1
- chat_template.jinja +210 -0
- config.json +597 -452
- hf_quant_config.json +263 -118
- model-mtp-00001-of-00004.safetensors +3 -0
- model-mtp-00002-of-00004.safetensors +3 -0
- model-mtp-00003-of-00004.safetensors +3 -0
- model-mtp-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +2 -2
- processor_config.json +44 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
.gitattributes
CHANGED
|
@@ -33,4 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 36 |
model.safetensors.index.json 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
|
| 37 |
model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Z.AI Co., Ltd
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
CHANGED
|
@@ -1 +1,68 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
library_name: transformers
|
| 6 |
+
license: mit
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# GLM-5.3-Flash-BF16
|
| 11 |
+
|
| 12 |
+
<div align="center">
|
| 13 |
+
<img src=https://raw.githubusercontent.com/zai-org/GLM-5/refs/heads/main/resources/logo.svg width="15%"/>
|
| 14 |
+
</div>
|
| 15 |
+
<p align="center">
|
| 16 |
+
👋 Join our <a href="https://raw.githubusercontent.com/zai-org/GLM-5/refs/heads/main/resources/wechat.png" target="_blank">WeChat</a> or <a href="https://discord.gg/QR7SARHRxK" target="_blank">Discord</a> community.
|
| 17 |
+
<br>
|
| 18 |
+
📖 Check out the GLM-5.3-Flash <a href="https://z.ai/blog/glm-5.3-flash" target="_blank">blog</a> and GLM-5 <a href="https://arxiv.org/abs/2602.15763" target="_blank">Technical report</a>.
|
| 19 |
+
<br>
|
| 20 |
+
📍 Use GLM-5.3-Flash API services on <a href="https://docs.z.ai/guides/llm/glm-5.3-flash">Z.ai API Platform. </a>
|
| 21 |
+
</p>
|
| 22 |
+
|
| 23 |
+
## Introduction
|
| 24 |
+
|
| 25 |
+
We introduce GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series. With 320B total parameters and just 18B active parameters, it outperforms GLM-5.2 across benchmarks and real-world workloads at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic benchmarks.
|
| 26 |
+
|
| 27 |
+
GLM-5.3-Flash starts from a newly trained base model, with its architecture and training recipe redesigned around capability and efficiency. For the first time in the GLM series, we introduce a hybrid architecture combining sparse and linear attention, sharply reducing long-context serving costs while preserving precise long-context capabilities. The model also adopts Manifold-Constrained Hyper-Connections (mHC) to further improve scaling efficiency. Together with our latest 30T-token multimodal pre-training corpus, these changes enable GLM-5.3-Flash to deliver more intelligence with less compute.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
## Serve GLM-5.3-Flash Locally
|
| 33 |
+
|
| 34 |
+
GLM-5.3-Flash supports deployment with the following frameworks. Feel free to try them out:
|
| 35 |
+
|
| 36 |
+
- [SGLang](https://github.com/sgl-project/sglang) — see [cookbook](https://cookbook.sglang.io/autoregressive/GLM/GLM-5.3-Flash)
|
| 37 |
+
- [vLLM](https://github.com/vllm-project/vllm) — see [recipes](https://recipes.vllm.ai/zai-org/GLM-5.3-Flash)
|
| 38 |
+
- [TokenSpeed](https://github.com/lightseekorg/tokenspeed) — see [here](https://lightseek.org/tokenspeed/recipes/models#glm-5-3-flash)
|
| 39 |
+
- [KTransformers](https://github.com/kvcache-ai/ktransformers) — see [tutorial](https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/kt-kernel/GLM-5.3-Flash-Tutorial.md)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
## Footnotes
|
| 43 |
+
|
| 44 |
+
* **HLE w/ tools (full set)**: We use sampling parameters of `temperature=1.0` and `top_p=0.95` for evaluation, with a maximum generation length of `163,840` tokens. The evaluation is conducted with a maximum context length of `300,000` tokens, using a context management strategy. We use GPT-5.6-luna (medium) as the judge model.
|
| 45 |
+
* **NL2Repo**: We evaluated NL2Repo with temperature=1.0, top_p=1.0, and max_new_tokens=64k under 1M context. To prevent hacking, we use rule-based and a LLM-based judgement to prevent malicious behaviors (e.g., unauthorized pip or curl operations).
|
| 46 |
+
* **DeepSWE**: We run DeepSWE using the mini-swe-agent harness with `temperature=0.95`, `top_p=1.0`, `timeout=6h` and 400K context.
|
| 47 |
+
* **Terminal-Bench 2.1**: We evaluate in Claude Code 2.1.207 with temperature=1.0, top_p=1, max_new_tokens=65536 with 6h timeout.
|
| 48 |
+
* **Agent’s Last Exam**:
|
| 49 |
+
* **Toolathlon Verified**: We obtain all results via the official evaluation service and report pass@1 averaged over 3 independent runs.
|
| 50 |
+
* **AutomationBench**: We evaluate on AutomationBench **v1.0.6**, incorporating the fix for the `null`-type handling issue introduced in [PR #13](https://github.com/zapier/AutomationBench/pull/13).
|
| 51 |
+
* **GDPval-AA v2**: Models are evaluated by Artificial Analysis.
|
| 52 |
+
* **BabyVision**: We use temperature=1.0, top_p=0.95, and a maximum context length of 164K tokens. We resize the input images such that their shorter side is at least 1.5K pixels, consistent with other baselines.
|
| 53 |
+
|
| 54 |
+
## Citation
|
| 55 |
+
|
| 56 |
+
If you find GLM-5.3-Flash useful in your research, please cite our technical report:
|
| 57 |
+
|
| 58 |
+
```bibtex
|
| 59 |
+
@misc{glm5team2026glm5vibecodingagentic,
|
| 60 |
+
title={GLM-5: from Vibe Coding to Agentic Engineering},
|
| 61 |
+
author={GLM-5-Team and : and Aohan Zeng and Xin Lv and Zhenyu Hou and Zhengxiao Du and Qinkai Zheng and Bin Chen and Da Yin and Chendi Ge and Chenghua Huang and Chengxing Xie and Chenzheng Zhu and Congfeng Yin and Cunxiang Wang and Gengzheng Pan and Hao Zeng and Haoke Zhang and Haoran Wang and Huilong Chen and Jiajie Zhang and Jian Jiao and Jiaqi Guo and Jingsen Wang and Jingzhao Du and Jinzhu Wu and Kedong Wang and Lei Li and Lin Fan and Lucen Zhong and Mingdao Liu and Mingming Zhao and Pengfan Du and Qian Dong and Rui Lu and Shuang-Li and Shulin Cao and Song Liu and Ting Jiang and Xiaodong Chen and Xiaohan Zhang and Xuancheng Huang and Xuezhen Dong and Yabo Xu and Yao Wei and Yifan An and Yilin Niu and Yitong Zhu and Yuanhao Wen and Yukuo Cen and Yushi Bai and Zhongpei Qiao and Zihan Wang and Zikang Wang and Zilin Zhu and Ziqiang Liu and Zixuan Li and Bojie Wang and Bosi Wen and Can Huang and Changpeng Cai and Chao Yu and Chen Li and Chengwei Hu and Chenhui Zhang and Dan Zhang and Daoyan Lin and Dayong Yang and Di Wang and Ding Ai and Erle Zhu and Fangzhou Yi and Feiyu Chen and Guohong Wen and Hailong Sun and Haisha Zhao and Haiyi Hu and Hanchen Zhang and Hanrui Liu and Hanyu Zhang and Hao Peng and Hao Tai and Haobo Zhang and He Liu and Hongwei Wang and Hongxi Yan and Hongyu Ge and Huan Liu and Huanpeng Chu and Jia'ni Zhao and Jiachen Wang and Jiajing Zhao and Jiamin Ren and Jiapeng Wang and Jiaxin Zhang and Jiayi Gui and Jiayue Zhao and Jijie Li and Jing An and Jing Li and Jingwei Yuan and Jinhua Du and Jinxin Liu and Junkai Zhi and Junwen Duan and Kaiyue Zhou and Kangjian Wei and Ke Wang and Keyun Luo and Laiqiang Zhang and Leigang Sha and Liang Xu and Lindong Wu and Lintao Ding and Lu Chen and Minghao Li and Nianyi Lin and Pan Ta and Qiang Zou and Rongjun Song and Ruiqi Yang and Shangqing Tu and Shangtong Yang and Shaoxiang Wu and Shengyan Zhang and Shijie Li and Shuang Li and Shuyi Fan and Wei Qin and Wei Tian and Weining Zhang and Wenbo Yu and Wenjie Liang and Xiang Kuang and Xiangmeng Cheng and Xiangyang Li and Xiaoquan Yan and Xiaowei Hu and Xiaoying Ling and Xing Fan and Xingye Xia and Xinyuan Zhang and Xinze Zhang and Xirui Pan and Xu Zou and Xunkai Zhang and Yadi Liu and Yandong Wu and Yanfu Li and Yidong Wang and Yifan Zhu and Yijun Tan and Yilin Zhou and Yiming Pan and Ying Zhang and Yinpei Su and Yipeng Geng and Yong Yan and Yonglin Tan and Yuean Bi and Yuhan Shen and Yuhao Yang and Yujiang Li and Yunan Liu and Yunqing Wang and Yuntao Li and Yurong Wu and Yutao Zhang and Yuxi Duan and Yuxuan Zhang and Zezhen Liu and Zhengtao Jiang and Zhenhe Yan and Zheyu Zhang and Zhixiang Wei and Zhuo Chen and Zhuoer Feng and Zijun Yao and Ziwei Chai and Ziyuan Wang and Zuzhou Zhang and Bin Xu and Minlie Huang and Hongning Wang and Juanzi Li and Yuxiao Dong and Jie Tang},
|
| 62 |
+
year={2026},
|
| 63 |
+
eprint={2602.15763},
|
| 64 |
+
archivePrefix={arXiv},
|
| 65 |
+
primaryClass={cs.LG},
|
| 66 |
+
url={https://arxiv.org/abs/2602.15763},
|
| 67 |
+
}
|
| 68 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}
|
| 3 |
+
{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}
|
| 4 |
+
{%- if tools -%}
|
| 5 |
+
{%- macro tool_to_json(tool) -%}
|
| 6 |
+
{%- set ns_tool = namespace(first=true) -%}
|
| 7 |
+
{{ '{' -}}
|
| 8 |
+
{%- for k, v in tool.items() -%}
|
| 9 |
+
{%- if k != 'defer_loading' and k != 'strict' -%}
|
| 10 |
+
{%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}
|
| 11 |
+
{%- set ns_tool.first = false -%}
|
| 12 |
+
"{{ k }}": {{ v | tojson(ensure_ascii=False) }}
|
| 13 |
+
{%- endif -%}
|
| 14 |
+
{%- endfor -%}
|
| 15 |
+
{{- '}' -}}
|
| 16 |
+
{%- endmacro -%}
|
| 17 |
+
{%- macro tool_references_to_response(refs) -%}
|
| 18 |
+
{{- '<tool_response><tools>\n' -}}
|
| 19 |
+
{%- for tr in refs -%}
|
| 20 |
+
{%- for tool in tools -%}
|
| 21 |
+
{%- if 'function' in tool -%}
|
| 22 |
+
{%- set tool = tool['function'] -%}
|
| 23 |
+
{%- endif -%}
|
| 24 |
+
{%- if tool.name == tr.name -%}
|
| 25 |
+
{{- tool_to_json(tool) + '\n' -}}
|
| 26 |
+
{%- endif -%}
|
| 27 |
+
{%- endfor -%}
|
| 28 |
+
{%- endfor -%}
|
| 29 |
+
{{- '</tools></tool_response>' -}}
|
| 30 |
+
{%- endmacro -%}
|
| 31 |
+
<|system|>
|
| 32 |
+
# Tools
|
| 33 |
+
|
| 34 |
+
You may call one or more functions to assist with the user query.
|
| 35 |
+
|
| 36 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 37 |
+
<tools>
|
| 38 |
+
{% for tool in tools %}
|
| 39 |
+
{%- if 'function' in tool -%}
|
| 40 |
+
{%- set tool = tool['function'] -%}
|
| 41 |
+
{%- endif -%}
|
| 42 |
+
{% if tool.defer_loading is not defined or not tool.defer_loading %}
|
| 43 |
+
{{ tool_to_json(tool) }}
|
| 44 |
+
{% endif %}
|
| 45 |
+
{% endfor %}
|
| 46 |
+
</tools>
|
| 47 |
+
|
| 48 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 49 |
+
<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}
|
| 50 |
+
{%- macro visible_text(content) -%}
|
| 51 |
+
{%- if content is string -%}
|
| 52 |
+
{{- content }}
|
| 53 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 54 |
+
{%- for item in content -%}
|
| 55 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 56 |
+
{{- item.text }}
|
| 57 |
+
{%- elif item is string -%}
|
| 58 |
+
{{- item }}
|
| 59 |
+
{%- elif item is mapping and item.type in ['image', 'image_url', 'video', 'video_url', 'audio', 'audio_url', 'input_audio'] -%}
|
| 60 |
+
{%- set media_type = item.type | replace('_url', '') | replace('input_', '') -%}
|
| 61 |
+
{{- "<reminder>You are unable to process this " ~ media_type ~ " because you don't have multi-modal input ability. Try different methods.</reminder>" }}
|
| 62 |
+
{%- endif -%}
|
| 63 |
+
{%- endfor -%}
|
| 64 |
+
{%- else -%}
|
| 65 |
+
{{- content }}
|
| 66 |
+
{%- endif -%}
|
| 67 |
+
{%- endmacro -%}
|
| 68 |
+
{%- macro tool_response(text) -%}
|
| 69 |
+
{{- '<tool_response>' + text + '</tool_response>' -}}
|
| 70 |
+
{%- endmacro -%}
|
| 71 |
+
{%- macro render_tool_response(m) -%}
|
| 72 |
+
{%- if m.content is string -%}
|
| 73 |
+
{{- tool_response(m.content) -}}
|
| 74 |
+
{%- elif m.content and m.content is not mapping and m.content.0.type == "tool_reference" -%}
|
| 75 |
+
{{- tool_references_to_response(m.content) -}}
|
| 76 |
+
{%- elif is_list_of_outputs(m) -%}
|
| 77 |
+
{%- for tr in m.content -%}
|
| 78 |
+
{%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == "tool_reference" -%}
|
| 79 |
+
{{- tool_references_to_response(tr.output) -}}
|
| 80 |
+
{%- else -%}
|
| 81 |
+
{{- tool_response(visible_text(tr.output)) -}}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{%- endfor -%}
|
| 84 |
+
{%- else -%}
|
| 85 |
+
{{- tool_response(visible_text(m.content)) -}}
|
| 86 |
+
{%- endif -%}
|
| 87 |
+
{%- endmacro -%}
|
| 88 |
+
{%- macro id_of(obj) -%}
|
| 89 |
+
{%- if obj.tool_call_id -%}
|
| 90 |
+
{{- obj.tool_call_id -}}
|
| 91 |
+
{%- elif obj.id -%}
|
| 92 |
+
{{- obj.id -}}
|
| 93 |
+
{%- endif -%}
|
| 94 |
+
{%- endmacro -%}
|
| 95 |
+
{%- macro is_list_of_outputs(m) -%}
|
| 96 |
+
{%- if m.content and m.content.0.output is defined -%}1{%- endif -%}
|
| 97 |
+
{%- endmacro -%}
|
| 98 |
+
{%- set ns = namespace(last_user_index=-1) -%}
|
| 99 |
+
{%- for m in messages %}
|
| 100 |
+
{%- if m.role == 'user' %}
|
| 101 |
+
{%- set ns.last_user_index = loop.index0 -%}
|
| 102 |
+
{%- endif %}
|
| 103 |
+
{%- endfor %}
|
| 104 |
+
{%- for m in messages -%}
|
| 105 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 106 |
+
{%- elif m.role == 'assistant' -%}
|
| 107 |
+
<|assistant|>
|
| 108 |
+
{%- set content = visible_text(m.content) %}
|
| 109 |
+
{%- if m.reasoning_content is string %}
|
| 110 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 111 |
+
{%- elif '</think>' in content %}
|
| 112 |
+
{%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}
|
| 113 |
+
{%- set content = content.split('</think>')[-1] %}
|
| 114 |
+
{%- endif %}
|
| 115 |
+
{%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}
|
| 116 |
+
{{ '<think>' + reasoning_content + '</think>'}}
|
| 117 |
+
{%- else -%}
|
| 118 |
+
{{ '<think></think>' }}
|
| 119 |
+
{%- endif -%}
|
| 120 |
+
{%- if content.strip() -%}
|
| 121 |
+
{{ content.strip() }}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{% if m.tool_calls %}
|
| 124 |
+
{% for tc in m.tool_calls %}
|
| 125 |
+
{%- if tc.function %}
|
| 126 |
+
{%- set tc = tc.function %}
|
| 127 |
+
{%- endif %}
|
| 128 |
+
{{- '<tool_call>' + tc.name -}}
|
| 129 |
+
{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}
|
| 130 |
+
{% endif %}
|
| 131 |
+
{%- elif m.role == 'tool' -%}
|
| 132 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 133 |
+
{{- '<|observation|>' -}}
|
| 134 |
+
{%- set block_start = loop.index0 -%}
|
| 135 |
+
{%- set ns_blk = namespace(end=block_start) -%}
|
| 136 |
+
{%- for j in range(block_start, messages|length) -%}
|
| 137 |
+
{%- if messages[j].role == 'tool' -%}
|
| 138 |
+
{%- set ns_blk.end = j -%}
|
| 139 |
+
{%- else -%}
|
| 140 |
+
{%- break -%}
|
| 141 |
+
{%- endif -%}
|
| 142 |
+
{%- endfor -%}
|
| 143 |
+
{%- set ns_a = namespace(tool_calls=none) -%}
|
| 144 |
+
{%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}
|
| 145 |
+
{%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}
|
| 146 |
+
{%- endif -%}
|
| 147 |
+
{%- set ns_chk = namespace(can_sort=true) -%}
|
| 148 |
+
{%- if not ns_a.tool_calls -%}
|
| 149 |
+
{%- set ns_chk.can_sort = false -%}
|
| 150 |
+
{%- else -%}
|
| 151 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 152 |
+
{%- set m = messages[k] -%}
|
| 153 |
+
{%- if is_list_of_outputs(m) -%}
|
| 154 |
+
{%- for entry in m.content -%}
|
| 155 |
+
{%- set eid = id_of(entry) -%}
|
| 156 |
+
{%- if not eid -%}
|
| 157 |
+
{%- set ns_chk.can_sort = false -%}
|
| 158 |
+
{%- endif -%}
|
| 159 |
+
{%- endfor -%}
|
| 160 |
+
{%- else -%}
|
| 161 |
+
{%- set tk_id = id_of(m) -%}
|
| 162 |
+
{%- if not tk_id -%}
|
| 163 |
+
{%- set ns_chk.can_sort = false -%}
|
| 164 |
+
{%- endif -%}
|
| 165 |
+
{%- endif -%}
|
| 166 |
+
{%- endfor -%}
|
| 167 |
+
{%- for tc in ns_a.tool_calls -%}
|
| 168 |
+
{%- set tc_id = id_of(tc) -%}
|
| 169 |
+
{%- if not tc_id -%}
|
| 170 |
+
{%- set ns_chk.can_sort = false -%}
|
| 171 |
+
{%- endif -%}
|
| 172 |
+
{%- endfor -%}
|
| 173 |
+
{%- endif -%}
|
| 174 |
+
{%- if ns_chk.can_sort -%}
|
| 175 |
+
{%- for tc in ns_a.tool_calls -%}
|
| 176 |
+
{%- set tc_id = id_of(tc) -%}
|
| 177 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 178 |
+
{%- set m = messages[k] -%}
|
| 179 |
+
{%- if is_list_of_outputs(m) -%}
|
| 180 |
+
{%- for entry in m.content -%}
|
| 181 |
+
{%- set eid = id_of(entry) -%}
|
| 182 |
+
{%- if eid == tc_id -%}
|
| 183 |
+
{%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == "tool_reference" -%}
|
| 184 |
+
{{- tool_references_to_response(entry.output) -}}
|
| 185 |
+
{%- else -%}
|
| 186 |
+
{{- tool_response(visible_text(entry.output)) -}}
|
| 187 |
+
{%- endif -%}
|
| 188 |
+
{%- endif -%}
|
| 189 |
+
{%- endfor -%}
|
| 190 |
+
{%- else -%}
|
| 191 |
+
{%- set tk_id = id_of(m) -%}
|
| 192 |
+
{%- if tk_id == tc_id -%}
|
| 193 |
+
{{- render_tool_response(m) -}}
|
| 194 |
+
{%- endif -%}
|
| 195 |
+
{%- endif -%}
|
| 196 |
+
{%- endfor -%}
|
| 197 |
+
{%- endfor -%}
|
| 198 |
+
{%- else -%}
|
| 199 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 200 |
+
{{- render_tool_response(messages[k]) -}}
|
| 201 |
+
{%- endfor -%}
|
| 202 |
+
{%- endif -%}
|
| 203 |
+
{% endif -%}
|
| 204 |
+
{%- elif m.role == 'system' -%}
|
| 205 |
+
<|system|>{{ visible_text(m.content) }}
|
| 206 |
+
{%- endif -%}
|
| 207 |
+
{%- endfor -%}
|
| 208 |
+
{%- if add_generation_prompt -%}
|
| 209 |
+
<|assistant|>{{- '<think>' -}}
|
| 210 |
+
{%- endif -%}
|
config.json
CHANGED
|
@@ -1,462 +1,607 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"chunk_size_feed_forward": 0,
|
| 10 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"id2label": {
|
| 12 |
-
|
| 13 |
-
|
| 14 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"label2id": {
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
},
|
| 19 |
-
"problem_type": null,
|
| 20 |
-
"text_config": {
|
| 21 |
-
"output_hidden_states": false,
|
| 22 |
-
"return_dict": true,
|
| 23 |
-
"dtype": "bfloat16",
|
| 24 |
-
"chunk_size_feed_forward": 0,
|
| 25 |
-
"is_encoder_decoder": false,
|
| 26 |
-
"id2label": {
|
| 27 |
-
"0": "LABEL_0",
|
| 28 |
-
"1": "LABEL_1"
|
| 29 |
-
},
|
| 30 |
-
"label2id": {
|
| 31 |
-
"LABEL_0": 0,
|
| 32 |
-
"LABEL_1": 1
|
| 33 |
-
},
|
| 34 |
-
"problem_type": null,
|
| 35 |
-
"vocab_size": 154880,
|
| 36 |
-
"hidden_size": 4096,
|
| 37 |
-
"intermediate_size": 12288,
|
| 38 |
-
"moe_intermediate_size": 2048,
|
| 39 |
-
"num_hidden_layers": 45,
|
| 40 |
-
"num_attention_heads": 64,
|
| 41 |
-
"num_key_value_heads": 64,
|
| 42 |
-
"n_shared_experts": 1,
|
| 43 |
-
"n_routed_experts": 288,
|
| 44 |
-
"routed_scaling_factor": 2.5,
|
| 45 |
-
"kv_lora_rank": 512,
|
| 46 |
-
"q_lora_rank": 1536,
|
| 47 |
-
"qk_rope_head_dim": 0,
|
| 48 |
-
"v_head_dim": 256,
|
| 49 |
-
"qk_nope_head_dim": 256,
|
| 50 |
-
"n_group": 1,
|
| 51 |
-
"topk_group": 1,
|
| 52 |
-
"num_experts_per_tok": 8,
|
| 53 |
-
"norm_topk_prob": true,
|
| 54 |
-
"hidden_act": "silu",
|
| 55 |
-
"max_position_embeddings": 1048576,
|
| 56 |
-
"initializer_range": 0.02,
|
| 57 |
-
"rms_norm_eps": 1e-05,
|
| 58 |
-
"use_cache": true,
|
| 59 |
-
"pad_token_id": 154820,
|
| 60 |
-
"bos_token_id": null,
|
| 61 |
-
"eos_token_id": [
|
| 62 |
-
154820,
|
| 63 |
-
154827,
|
| 64 |
-
154829
|
| 65 |
-
],
|
| 66 |
-
"tie_word_embeddings": false,
|
| 67 |
-
"mlp_layer_types": [
|
| 68 |
-
"dense",
|
| 69 |
-
"dense",
|
| 70 |
-
"dense",
|
| 71 |
-
"sparse",
|
| 72 |
-
"sparse",
|
| 73 |
-
"sparse",
|
| 74 |
-
"sparse",
|
| 75 |
-
"sparse",
|
| 76 |
-
"sparse",
|
| 77 |
-
"sparse",
|
| 78 |
-
"sparse",
|
| 79 |
-
"sparse",
|
| 80 |
-
"sparse",
|
| 81 |
-
"sparse",
|
| 82 |
-
"sparse",
|
| 83 |
-
"sparse",
|
| 84 |
-
"sparse",
|
| 85 |
-
"sparse",
|
| 86 |
-
"sparse",
|
| 87 |
-
"sparse",
|
| 88 |
-
"sparse",
|
| 89 |
-
"sparse",
|
| 90 |
-
"sparse",
|
| 91 |
-
"sparse",
|
| 92 |
-
"sparse",
|
| 93 |
-
"sparse",
|
| 94 |
-
"sparse",
|
| 95 |
-
"sparse",
|
| 96 |
-
"sparse",
|
| 97 |
-
"sparse",
|
| 98 |
-
"sparse",
|
| 99 |
-
"sparse",
|
| 100 |
-
"sparse",
|
| 101 |
-
"sparse",
|
| 102 |
-
"sparse",
|
| 103 |
-
"sparse",
|
| 104 |
-
"sparse",
|
| 105 |
-
"sparse",
|
| 106 |
-
"sparse",
|
| 107 |
-
"sparse",
|
| 108 |
-
"sparse",
|
| 109 |
-
"sparse",
|
| 110 |
-
"sparse",
|
| 111 |
-
"sparse",
|
| 112 |
-
"sparse"
|
| 113 |
-
],
|
| 114 |
-
"attention_bias": false,
|
| 115 |
-
"attention_dropout": 0.0,
|
| 116 |
-
"index_topk": 2048,
|
| 117 |
-
"index_head_dim": 128,
|
| 118 |
-
"index_n_heads": 32,
|
| 119 |
-
"head_dim": 0,
|
| 120 |
-
"layer_types": [
|
| 121 |
-
"linear_attention",
|
| 122 |
-
"linear_attention",
|
| 123 |
-
"linear_attention",
|
| 124 |
-
"deepseek_sparse_attention",
|
| 125 |
-
"linear_attention",
|
| 126 |
-
"linear_attention",
|
| 127 |
-
"linear_attention",
|
| 128 |
-
"deepseek_sparse_attention",
|
| 129 |
-
"linear_attention",
|
| 130 |
-
"linear_attention",
|
| 131 |
-
"linear_attention",
|
| 132 |
-
"deepseek_sparse_attention",
|
| 133 |
-
"linear_attention",
|
| 134 |
-
"linear_attention",
|
| 135 |
-
"linear_attention",
|
| 136 |
-
"deepseek_sparse_attention",
|
| 137 |
-
"linear_attention",
|
| 138 |
-
"linear_attention",
|
| 139 |
-
"linear_attention",
|
| 140 |
-
"deepseek_sparse_attention",
|
| 141 |
-
"linear_attention",
|
| 142 |
-
"linear_attention",
|
| 143 |
-
"linear_attention",
|
| 144 |
-
"deepseek_sparse_attention",
|
| 145 |
-
"linear_attention",
|
| 146 |
-
"linear_attention",
|
| 147 |
-
"linear_attention",
|
| 148 |
-
"deepseek_sparse_attention",
|
| 149 |
-
"linear_attention",
|
| 150 |
-
"linear_attention",
|
| 151 |
-
"linear_attention",
|
| 152 |
-
"deepseek_sparse_attention",
|
| 153 |
-
"linear_attention",
|
| 154 |
-
"linear_attention",
|
| 155 |
-
"linear_attention",
|
| 156 |
-
"deepseek_sparse_attention",
|
| 157 |
-
"linear_attention",
|
| 158 |
-
"linear_attention",
|
| 159 |
-
"linear_attention",
|
| 160 |
-
"deepseek_sparse_attention",
|
| 161 |
-
"linear_attention",
|
| 162 |
-
"linear_attention",
|
| 163 |
-
"linear_attention",
|
| 164 |
-
"deepseek_sparse_attention",
|
| 165 |
-
"linear_attention"
|
| 166 |
-
],
|
| 167 |
-
"indexer_types": [
|
| 168 |
-
"full",
|
| 169 |
-
"full",
|
| 170 |
-
"full",
|
| 171 |
-
"full",
|
| 172 |
-
"full",
|
| 173 |
-
"full",
|
| 174 |
-
"full",
|
| 175 |
-
"full",
|
| 176 |
-
"full",
|
| 177 |
-
"full",
|
| 178 |
-
"full",
|
| 179 |
-
"full",
|
| 180 |
-
"full",
|
| 181 |
-
"full",
|
| 182 |
-
"full",
|
| 183 |
-
"full",
|
| 184 |
-
"full",
|
| 185 |
-
"full",
|
| 186 |
-
"full",
|
| 187 |
-
"full",
|
| 188 |
-
"full",
|
| 189 |
-
"full",
|
| 190 |
-
"full",
|
| 191 |
-
"full",
|
| 192 |
-
"full",
|
| 193 |
-
"full",
|
| 194 |
-
"full",
|
| 195 |
-
"full",
|
| 196 |
-
"full",
|
| 197 |
-
"full",
|
| 198 |
-
"full",
|
| 199 |
-
"full",
|
| 200 |
-
"full",
|
| 201 |
-
"full",
|
| 202 |
-
"full",
|
| 203 |
-
"full",
|
| 204 |
-
"full",
|
| 205 |
-
"full",
|
| 206 |
-
"full",
|
| 207 |
-
"full",
|
| 208 |
-
"full",
|
| 209 |
-
"full",
|
| 210 |
-
"full",
|
| 211 |
-
"full",
|
| 212 |
-
"full"
|
| 213 |
-
],
|
| 214 |
-
"swiglu_limit": 10.0,
|
| 215 |
-
"linear_head_dim": 128,
|
| 216 |
-
"linear_num_heads": 64,
|
| 217 |
-
"linear_conv_kernel_dim": 4,
|
| 218 |
-
"linear_lower_bound": -5.0,
|
| 219 |
-
"hc_mult": 4,
|
| 220 |
-
"hc_eps": 1e-06,
|
| 221 |
-
"hc_sinkhorn_iters": 20,
|
| 222 |
-
"output_router_logits": false,
|
| 223 |
-
"router_aux_loss_coef": 0.001,
|
| 224 |
-
"index_kpool": 4,
|
| 225 |
-
"index_kpool_always_select_tail": true,
|
| 226 |
-
"qk_head_dim": 256,
|
| 227 |
-
"_name_or_path": "",
|
| 228 |
-
"first_k_dense_replace": 3,
|
| 229 |
-
"index_kpool_compress": true,
|
| 230 |
-
"index_share_for_mtp_iteration": true,
|
| 231 |
-
"indexer_rope_interleave": true,
|
| 232 |
-
"linear_attn_config": {
|
| 233 |
-
"num_heads": 64,
|
| 234 |
-
"gate_lower_bound": -5.0,
|
| 235 |
-
"head_dim": 128,
|
| 236 |
-
"short_conv_kernel_size": 4,
|
| 237 |
-
"kda_layers": [
|
| 238 |
-
0,
|
| 239 |
-
1,
|
| 240 |
-
2,
|
| 241 |
-
4,
|
| 242 |
-
5,
|
| 243 |
-
6,
|
| 244 |
-
8,
|
| 245 |
-
9,
|
| 246 |
-
10,
|
| 247 |
-
12,
|
| 248 |
-
13,
|
| 249 |
-
14,
|
| 250 |
-
16,
|
| 251 |
-
17,
|
| 252 |
-
18,
|
| 253 |
-
20,
|
| 254 |
-
21,
|
| 255 |
-
22,
|
| 256 |
-
24,
|
| 257 |
-
25,
|
| 258 |
-
26,
|
| 259 |
-
28,
|
| 260 |
-
29,
|
| 261 |
-
30,
|
| 262 |
-
32,
|
| 263 |
-
33,
|
| 264 |
-
34,
|
| 265 |
-
36,
|
| 266 |
-
37,
|
| 267 |
-
38,
|
| 268 |
-
40,
|
| 269 |
-
41,
|
| 270 |
-
42,
|
| 271 |
-
44
|
| 272 |
-
],
|
| 273 |
-
"full_attn_layers": [
|
| 274 |
-
3,
|
| 275 |
-
7,
|
| 276 |
-
11,
|
| 277 |
-
15,
|
| 278 |
-
19,
|
| 279 |
-
23,
|
| 280 |
-
27,
|
| 281 |
-
31,
|
| 282 |
-
35,
|
| 283 |
-
39,
|
| 284 |
-
43
|
| 285 |
-
]
|
| 286 |
-
},
|
| 287 |
-
"mhc": true,
|
| 288 |
-
"mla_use_nope": true,
|
| 289 |
-
"model_type": "glm5_next_text",
|
| 290 |
-
"moe_router_dtype": "float32",
|
| 291 |
-
"num_nextn_predict_layers": 1,
|
| 292 |
-
"scoring_func": "sigmoid",
|
| 293 |
-
"topk_method": "noaux_tc",
|
| 294 |
-
"output_attentions": false
|
| 295 |
},
|
| 296 |
-
"
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
},
|
| 333 |
-
"
|
| 334 |
-
"
|
| 335 |
-
"
|
| 336 |
-
"
|
| 337 |
-
"
|
| 338 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
"tie_word_embeddings": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
"_name_or_path": "",
|
| 341 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
"output_attentions": false,
|
| 343 |
-
"
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
"num_bits": 4,
|
| 355 |
-
"type": "float",
|
| 356 |
-
"group_size": 16
|
| 357 |
-
},
|
| 358 |
-
"targets": [
|
| 359 |
-
"Linear"
|
| 360 |
-
]
|
| 361 |
-
}
|
| 362 |
-
},
|
| 363 |
-
"ignore": [
|
| 364 |
-
"lm_head",
|
| 365 |
-
"model.language_model.embed_tokens",
|
| 366 |
-
"model.language_model.layers.0*",
|
| 367 |
-
"model.language_model.layers.1.*",
|
| 368 |
-
"model.language_model.layers.10.mlp.shared_experts*",
|
| 369 |
-
"model.language_model.layers.10.self_attn*",
|
| 370 |
-
"model.language_model.layers.11.mlp.shared_experts*",
|
| 371 |
-
"model.language_model.layers.11.self_attn*",
|
| 372 |
-
"model.language_model.layers.12.mlp.shared_experts*",
|
| 373 |
-
"model.language_model.layers.12.self_attn*",
|
| 374 |
-
"model.language_model.layers.13.mlp.shared_experts*",
|
| 375 |
-
"model.language_model.layers.13.self_attn*",
|
| 376 |
-
"model.language_model.layers.14.mlp.shared_experts*",
|
| 377 |
-
"model.language_model.layers.14.self_attn*",
|
| 378 |
-
"model.language_model.layers.15.mlp.shared_experts*",
|
| 379 |
-
"model.language_model.layers.15.self_attn*",
|
| 380 |
-
"model.language_model.layers.16.mlp.shared_experts*",
|
| 381 |
-
"model.language_model.layers.16.self_attn*",
|
| 382 |
-
"model.language_model.layers.17.mlp.shared_experts*",
|
| 383 |
-
"model.language_model.layers.17.self_attn*",
|
| 384 |
-
"model.language_model.layers.18.mlp.shared_experts*",
|
| 385 |
-
"model.language_model.layers.18.self_attn*",
|
| 386 |
-
"model.language_model.layers.19.mlp.shared_experts*",
|
| 387 |
-
"model.language_model.layers.19.self_attn*",
|
| 388 |
-
"model.language_model.layers.2.*",
|
| 389 |
-
"model.language_model.layers.20.mlp.shared_experts*",
|
| 390 |
-
"model.language_model.layers.20.self_attn*",
|
| 391 |
-
"model.language_model.layers.21.mlp.shared_experts*",
|
| 392 |
-
"model.language_model.layers.21.self_attn*",
|
| 393 |
-
"model.language_model.layers.22.mlp.shared_experts*",
|
| 394 |
-
"model.language_model.layers.22.self_attn*",
|
| 395 |
-
"model.language_model.layers.23.mlp.shared_experts*",
|
| 396 |
-
"model.language_model.layers.23.self_attn*",
|
| 397 |
-
"model.language_model.layers.24.mlp.shared_experts*",
|
| 398 |
-
"model.language_model.layers.24.self_attn*",
|
| 399 |
-
"model.language_model.layers.25.mlp.shared_experts*",
|
| 400 |
-
"model.language_model.layers.25.self_attn*",
|
| 401 |
-
"model.language_model.layers.26.mlp.shared_experts*",
|
| 402 |
-
"model.language_model.layers.26.self_attn*",
|
| 403 |
-
"model.language_model.layers.27.mlp.shared_experts*",
|
| 404 |
-
"model.language_model.layers.27.self_attn*",
|
| 405 |
-
"model.language_model.layers.28.mlp.shared_experts*",
|
| 406 |
-
"model.language_model.layers.28.self_attn*",
|
| 407 |
-
"model.language_model.layers.29.mlp.shared_experts*",
|
| 408 |
-
"model.language_model.layers.29.self_attn*",
|
| 409 |
-
"model.language_model.layers.3.mlp.shared_experts*",
|
| 410 |
-
"model.language_model.layers.3.self_attn*",
|
| 411 |
-
"model.language_model.layers.30.mlp.shared_experts*",
|
| 412 |
-
"model.language_model.layers.30.self_attn*",
|
| 413 |
-
"model.language_model.layers.31.mlp.shared_experts*",
|
| 414 |
-
"model.language_model.layers.31.self_attn*",
|
| 415 |
-
"model.language_model.layers.32.mlp.shared_experts*",
|
| 416 |
-
"model.language_model.layers.32.self_attn*",
|
| 417 |
-
"model.language_model.layers.33.mlp.shared_experts*",
|
| 418 |
-
"model.language_model.layers.33.self_attn*",
|
| 419 |
-
"model.language_model.layers.34.mlp.shared_experts*",
|
| 420 |
-
"model.language_model.layers.34.self_attn*",
|
| 421 |
-
"model.language_model.layers.35.mlp.shared_experts*",
|
| 422 |
-
"model.language_model.layers.35.self_attn*",
|
| 423 |
-
"model.language_model.layers.36.mlp.shared_experts*",
|
| 424 |
-
"model.language_model.layers.36.self_attn*",
|
| 425 |
-
"model.language_model.layers.37.mlp.shared_experts*",
|
| 426 |
-
"model.language_model.layers.37.self_attn*",
|
| 427 |
-
"model.language_model.layers.38.mlp.shared_experts*",
|
| 428 |
-
"model.language_model.layers.38.self_attn*",
|
| 429 |
-
"model.language_model.layers.39.mlp.shared_experts*",
|
| 430 |
-
"model.language_model.layers.39.self_attn*",
|
| 431 |
-
"model.language_model.layers.4.mlp.shared_experts*",
|
| 432 |
-
"model.language_model.layers.4.self_attn*",
|
| 433 |
-
"model.language_model.layers.40.mlp.shared_experts*",
|
| 434 |
-
"model.language_model.layers.40.self_attn*",
|
| 435 |
-
"model.language_model.layers.41.mlp.shared_experts*",
|
| 436 |
-
"model.language_model.layers.41.self_attn*",
|
| 437 |
-
"model.language_model.layers.42.mlp.shared_experts*",
|
| 438 |
-
"model.language_model.layers.42.self_attn*",
|
| 439 |
-
"model.language_model.layers.43.mlp.shared_experts*",
|
| 440 |
-
"model.language_model.layers.43.self_attn*",
|
| 441 |
-
"model.language_model.layers.44.mlp.shared_experts*",
|
| 442 |
-
"model.language_model.layers.44.self_attn*",
|
| 443 |
-
"model.language_model.layers.5.mlp.shared_experts*",
|
| 444 |
-
"model.language_model.layers.5.self_attn*",
|
| 445 |
-
"model.language_model.layers.6.mlp.shared_experts*",
|
| 446 |
-
"model.language_model.layers.6.self_attn*",
|
| 447 |
-
"model.language_model.layers.7.mlp.shared_experts*",
|
| 448 |
-
"model.language_model.layers.7.self_attn*",
|
| 449 |
-
"model.language_model.layers.8.mlp.shared_experts*",
|
| 450 |
-
"model.language_model.layers.8.self_attn*",
|
| 451 |
-
"model.language_model.layers.9.mlp.shared_experts*",
|
| 452 |
-
"model.language_model.layers.9.self_attn*",
|
| 453 |
-
"model.visual*"
|
| 454 |
-
],
|
| 455 |
-
"quant_algo": "NVFP4",
|
| 456 |
-
"producer": {
|
| 457 |
-
"name": "modelopt",
|
| 458 |
-
"version": "0.39.0.dev290+gf9d9a71de.d20260407"
|
| 459 |
-
},
|
| 460 |
-
"quant_method": "modelopt"
|
| 461 |
-
}
|
| 462 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Glm5NextForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"chunk_size_feed_forward": 0,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
+
"id2label": {
|
| 9 |
+
"0": "LABEL_0",
|
| 10 |
+
"1": "LABEL_1"
|
| 11 |
+
},
|
| 12 |
+
"image_end_token_id": 154831,
|
| 13 |
+
"image_start_token_id": 154830,
|
| 14 |
+
"image_token_id": 154854,
|
| 15 |
+
"is_encoder_decoder": false,
|
| 16 |
+
"label2id": {
|
| 17 |
+
"LABEL_0": 0,
|
| 18 |
+
"LABEL_1": 1
|
| 19 |
+
},
|
| 20 |
+
"model_type": "glm5_next",
|
| 21 |
+
"output_attentions": false,
|
| 22 |
+
"output_hidden_states": false,
|
| 23 |
+
"problem_type": null,
|
| 24 |
+
"quantization_config": {
|
| 25 |
+
"config_groups": {
|
| 26 |
+
"group_mxfp8_mtp_routed_experts": {
|
| 27 |
+
"input_activations": {
|
| 28 |
+
"dynamic": true,
|
| 29 |
+
"group_size": 32,
|
| 30 |
+
"num_bits": 8,
|
| 31 |
+
"type": "float"
|
| 32 |
+
},
|
| 33 |
+
"targets": [
|
| 34 |
+
"model.language_model.layers.45.mlp.experts"
|
| 35 |
+
],
|
| 36 |
+
"weights": {
|
| 37 |
+
"dynamic": false,
|
| 38 |
+
"group_size": 32,
|
| 39 |
+
"num_bits": 8,
|
| 40 |
+
"type": "float",
|
| 41 |
+
"weight_block_size": [
|
| 42 |
+
1,
|
| 43 |
+
32
|
| 44 |
+
]
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"group_nvfp4_routed_experts": {
|
| 48 |
+
"input_activations": {
|
| 49 |
+
"dynamic": false,
|
| 50 |
+
"group_size": 16,
|
| 51 |
+
"num_bits": 4,
|
| 52 |
+
"type": "float"
|
| 53 |
+
},
|
| 54 |
+
"targets": [
|
| 55 |
+
"model.language_model.layers.3.mlp.experts",
|
| 56 |
+
"model.language_model.layers.4.mlp.experts",
|
| 57 |
+
"model.language_model.layers.5.mlp.experts",
|
| 58 |
+
"model.language_model.layers.6.mlp.experts",
|
| 59 |
+
"model.language_model.layers.7.mlp.experts",
|
| 60 |
+
"model.language_model.layers.8.mlp.experts",
|
| 61 |
+
"model.language_model.layers.9.mlp.experts",
|
| 62 |
+
"model.language_model.layers.10.mlp.experts",
|
| 63 |
+
"model.language_model.layers.11.mlp.experts",
|
| 64 |
+
"model.language_model.layers.12.mlp.experts",
|
| 65 |
+
"model.language_model.layers.13.mlp.experts",
|
| 66 |
+
"model.language_model.layers.14.mlp.experts",
|
| 67 |
+
"model.language_model.layers.15.mlp.experts",
|
| 68 |
+
"model.language_model.layers.16.mlp.experts",
|
| 69 |
+
"model.language_model.layers.17.mlp.experts",
|
| 70 |
+
"model.language_model.layers.18.mlp.experts",
|
| 71 |
+
"model.language_model.layers.19.mlp.experts",
|
| 72 |
+
"model.language_model.layers.20.mlp.experts",
|
| 73 |
+
"model.language_model.layers.21.mlp.experts",
|
| 74 |
+
"model.language_model.layers.22.mlp.experts",
|
| 75 |
+
"model.language_model.layers.23.mlp.experts",
|
| 76 |
+
"model.language_model.layers.24.mlp.experts",
|
| 77 |
+
"model.language_model.layers.25.mlp.experts",
|
| 78 |
+
"model.language_model.layers.26.mlp.experts",
|
| 79 |
+
"model.language_model.layers.27.mlp.experts",
|
| 80 |
+
"model.language_model.layers.28.mlp.experts",
|
| 81 |
+
"model.language_model.layers.29.mlp.experts",
|
| 82 |
+
"model.language_model.layers.30.mlp.experts",
|
| 83 |
+
"model.language_model.layers.31.mlp.experts",
|
| 84 |
+
"model.language_model.layers.32.mlp.experts",
|
| 85 |
+
"model.language_model.layers.33.mlp.experts",
|
| 86 |
+
"model.language_model.layers.34.mlp.experts",
|
| 87 |
+
"model.language_model.layers.35.mlp.experts",
|
| 88 |
+
"model.language_model.layers.36.mlp.experts",
|
| 89 |
+
"model.language_model.layers.37.mlp.experts",
|
| 90 |
+
"model.language_model.layers.38.mlp.experts",
|
| 91 |
+
"model.language_model.layers.39.mlp.experts",
|
| 92 |
+
"model.language_model.layers.40.mlp.experts",
|
| 93 |
+
"model.language_model.layers.41.mlp.experts",
|
| 94 |
+
"model.language_model.layers.42.mlp.experts",
|
| 95 |
+
"model.language_model.layers.43.mlp.experts",
|
| 96 |
+
"model.language_model.layers.44.mlp.experts"
|
| 97 |
+
],
|
| 98 |
+
"weights": {
|
| 99 |
+
"dynamic": false,
|
| 100 |
+
"group_size": 16,
|
| 101 |
+
"num_bits": 4,
|
| 102 |
+
"type": "float"
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
},
|
| 106 |
+
"ignore": [],
|
| 107 |
+
"producer": {
|
| 108 |
+
"name": "modelopt",
|
| 109 |
+
"version": "0.39.0.dev290+gf9d9a71de.d20260407"
|
| 110 |
+
},
|
| 111 |
+
"quant_algo": "MIXED_PRECISION",
|
| 112 |
+
"quant_method": "modelopt",
|
| 113 |
+
"quantized_layers": {
|
| 114 |
+
"model.language_model.layers.10.mlp.experts": {
|
| 115 |
+
"group_size": 16,
|
| 116 |
+
"quant_algo": "NVFP4"
|
| 117 |
+
},
|
| 118 |
+
"model.language_model.layers.11.mlp.experts": {
|
| 119 |
+
"group_size": 16,
|
| 120 |
+
"quant_algo": "NVFP4"
|
| 121 |
+
},
|
| 122 |
+
"model.language_model.layers.12.mlp.experts": {
|
| 123 |
+
"group_size": 16,
|
| 124 |
+
"quant_algo": "NVFP4"
|
| 125 |
+
},
|
| 126 |
+
"model.language_model.layers.13.mlp.experts": {
|
| 127 |
+
"group_size": 16,
|
| 128 |
+
"quant_algo": "NVFP4"
|
| 129 |
+
},
|
| 130 |
+
"model.language_model.layers.14.mlp.experts": {
|
| 131 |
+
"group_size": 16,
|
| 132 |
+
"quant_algo": "NVFP4"
|
| 133 |
+
},
|
| 134 |
+
"model.language_model.layers.15.mlp.experts": {
|
| 135 |
+
"group_size": 16,
|
| 136 |
+
"quant_algo": "NVFP4"
|
| 137 |
+
},
|
| 138 |
+
"model.language_model.layers.16.mlp.experts": {
|
| 139 |
+
"group_size": 16,
|
| 140 |
+
"quant_algo": "NVFP4"
|
| 141 |
+
},
|
| 142 |
+
"model.language_model.layers.17.mlp.experts": {
|
| 143 |
+
"group_size": 16,
|
| 144 |
+
"quant_algo": "NVFP4"
|
| 145 |
+
},
|
| 146 |
+
"model.language_model.layers.18.mlp.experts": {
|
| 147 |
+
"group_size": 16,
|
| 148 |
+
"quant_algo": "NVFP4"
|
| 149 |
+
},
|
| 150 |
+
"model.language_model.layers.19.mlp.experts": {
|
| 151 |
+
"group_size": 16,
|
| 152 |
+
"quant_algo": "NVFP4"
|
| 153 |
+
},
|
| 154 |
+
"model.language_model.layers.20.mlp.experts": {
|
| 155 |
+
"group_size": 16,
|
| 156 |
+
"quant_algo": "NVFP4"
|
| 157 |
+
},
|
| 158 |
+
"model.language_model.layers.21.mlp.experts": {
|
| 159 |
+
"group_size": 16,
|
| 160 |
+
"quant_algo": "NVFP4"
|
| 161 |
+
},
|
| 162 |
+
"model.language_model.layers.22.mlp.experts": {
|
| 163 |
+
"group_size": 16,
|
| 164 |
+
"quant_algo": "NVFP4"
|
| 165 |
+
},
|
| 166 |
+
"model.language_model.layers.23.mlp.experts": {
|
| 167 |
+
"group_size": 16,
|
| 168 |
+
"quant_algo": "NVFP4"
|
| 169 |
+
},
|
| 170 |
+
"model.language_model.layers.24.mlp.experts": {
|
| 171 |
+
"group_size": 16,
|
| 172 |
+
"quant_algo": "NVFP4"
|
| 173 |
+
},
|
| 174 |
+
"model.language_model.layers.25.mlp.experts": {
|
| 175 |
+
"group_size": 16,
|
| 176 |
+
"quant_algo": "NVFP4"
|
| 177 |
+
},
|
| 178 |
+
"model.language_model.layers.26.mlp.experts": {
|
| 179 |
+
"group_size": 16,
|
| 180 |
+
"quant_algo": "NVFP4"
|
| 181 |
+
},
|
| 182 |
+
"model.language_model.layers.27.mlp.experts": {
|
| 183 |
+
"group_size": 16,
|
| 184 |
+
"quant_algo": "NVFP4"
|
| 185 |
+
},
|
| 186 |
+
"model.language_model.layers.28.mlp.experts": {
|
| 187 |
+
"group_size": 16,
|
| 188 |
+
"quant_algo": "NVFP4"
|
| 189 |
+
},
|
| 190 |
+
"model.language_model.layers.29.mlp.experts": {
|
| 191 |
+
"group_size": 16,
|
| 192 |
+
"quant_algo": "NVFP4"
|
| 193 |
+
},
|
| 194 |
+
"model.language_model.layers.3.mlp.experts": {
|
| 195 |
+
"group_size": 16,
|
| 196 |
+
"quant_algo": "NVFP4"
|
| 197 |
+
},
|
| 198 |
+
"model.language_model.layers.30.mlp.experts": {
|
| 199 |
+
"group_size": 16,
|
| 200 |
+
"quant_algo": "NVFP4"
|
| 201 |
+
},
|
| 202 |
+
"model.language_model.layers.31.mlp.experts": {
|
| 203 |
+
"group_size": 16,
|
| 204 |
+
"quant_algo": "NVFP4"
|
| 205 |
+
},
|
| 206 |
+
"model.language_model.layers.32.mlp.experts": {
|
| 207 |
+
"group_size": 16,
|
| 208 |
+
"quant_algo": "NVFP4"
|
| 209 |
+
},
|
| 210 |
+
"model.language_model.layers.33.mlp.experts": {
|
| 211 |
+
"group_size": 16,
|
| 212 |
+
"quant_algo": "NVFP4"
|
| 213 |
+
},
|
| 214 |
+
"model.language_model.layers.34.mlp.experts": {
|
| 215 |
+
"group_size": 16,
|
| 216 |
+
"quant_algo": "NVFP4"
|
| 217 |
+
},
|
| 218 |
+
"model.language_model.layers.35.mlp.experts": {
|
| 219 |
+
"group_size": 16,
|
| 220 |
+
"quant_algo": "NVFP4"
|
| 221 |
+
},
|
| 222 |
+
"model.language_model.layers.36.mlp.experts": {
|
| 223 |
+
"group_size": 16,
|
| 224 |
+
"quant_algo": "NVFP4"
|
| 225 |
+
},
|
| 226 |
+
"model.language_model.layers.37.mlp.experts": {
|
| 227 |
+
"group_size": 16,
|
| 228 |
+
"quant_algo": "NVFP4"
|
| 229 |
+
},
|
| 230 |
+
"model.language_model.layers.38.mlp.experts": {
|
| 231 |
+
"group_size": 16,
|
| 232 |
+
"quant_algo": "NVFP4"
|
| 233 |
+
},
|
| 234 |
+
"model.language_model.layers.39.mlp.experts": {
|
| 235 |
+
"group_size": 16,
|
| 236 |
+
"quant_algo": "NVFP4"
|
| 237 |
+
},
|
| 238 |
+
"model.language_model.layers.4.mlp.experts": {
|
| 239 |
+
"group_size": 16,
|
| 240 |
+
"quant_algo": "NVFP4"
|
| 241 |
+
},
|
| 242 |
+
"model.language_model.layers.40.mlp.experts": {
|
| 243 |
+
"group_size": 16,
|
| 244 |
+
"quant_algo": "NVFP4"
|
| 245 |
+
},
|
| 246 |
+
"model.language_model.layers.41.mlp.experts": {
|
| 247 |
+
"group_size": 16,
|
| 248 |
+
"quant_algo": "NVFP4"
|
| 249 |
+
},
|
| 250 |
+
"model.language_model.layers.42.mlp.experts": {
|
| 251 |
+
"group_size": 16,
|
| 252 |
+
"quant_algo": "NVFP4"
|
| 253 |
+
},
|
| 254 |
+
"model.language_model.layers.43.mlp.experts": {
|
| 255 |
+
"group_size": 16,
|
| 256 |
+
"quant_algo": "NVFP4"
|
| 257 |
+
},
|
| 258 |
+
"model.language_model.layers.44.mlp.experts": {
|
| 259 |
+
"group_size": 16,
|
| 260 |
+
"quant_algo": "NVFP4"
|
| 261 |
+
},
|
| 262 |
+
"model.language_model.layers.45.mlp.experts": {
|
| 263 |
+
"group_size": 32,
|
| 264 |
+
"quant_algo": "MXFP8"
|
| 265 |
+
},
|
| 266 |
+
"model.language_model.layers.5.mlp.experts": {
|
| 267 |
+
"group_size": 16,
|
| 268 |
+
"quant_algo": "NVFP4"
|
| 269 |
+
},
|
| 270 |
+
"model.language_model.layers.6.mlp.experts": {
|
| 271 |
+
"group_size": 16,
|
| 272 |
+
"quant_algo": "NVFP4"
|
| 273 |
+
},
|
| 274 |
+
"model.language_model.layers.7.mlp.experts": {
|
| 275 |
+
"group_size": 16,
|
| 276 |
+
"quant_algo": "NVFP4"
|
| 277 |
+
},
|
| 278 |
+
"model.language_model.layers.8.mlp.experts": {
|
| 279 |
+
"group_size": 16,
|
| 280 |
+
"quant_algo": "NVFP4"
|
| 281 |
+
},
|
| 282 |
+
"model.language_model.layers.9.mlp.experts": {
|
| 283 |
+
"group_size": 16,
|
| 284 |
+
"quant_algo": "NVFP4"
|
| 285 |
+
}
|
| 286 |
+
}
|
| 287 |
+
},
|
| 288 |
+
"return_dict": true,
|
| 289 |
+
"text_config": {
|
| 290 |
+
"_name_or_path": "",
|
| 291 |
+
"attention_bias": false,
|
| 292 |
+
"attention_dropout": 0.0,
|
| 293 |
+
"bos_token_id": null,
|
| 294 |
"chunk_size_feed_forward": 0,
|
| 295 |
+
"dtype": "bfloat16",
|
| 296 |
+
"eos_token_id": [
|
| 297 |
+
154820,
|
| 298 |
+
154827,
|
| 299 |
+
154829
|
| 300 |
+
],
|
| 301 |
+
"first_k_dense_replace": 3,
|
| 302 |
+
"hc_eps": 1e-06,
|
| 303 |
+
"hc_mult": 4,
|
| 304 |
+
"hc_sinkhorn_iters": 20,
|
| 305 |
+
"head_dim": 0,
|
| 306 |
+
"hidden_act": "silu",
|
| 307 |
+
"hidden_size": 4096,
|
| 308 |
"id2label": {
|
| 309 |
+
"0": "LABEL_0",
|
| 310 |
+
"1": "LABEL_1"
|
| 311 |
},
|
| 312 |
+
"index_head_dim": 128,
|
| 313 |
+
"index_kpool": 4,
|
| 314 |
+
"index_kpool_always_select_tail": true,
|
| 315 |
+
"index_kpool_compress": true,
|
| 316 |
+
"index_n_heads": 32,
|
| 317 |
+
"index_share_for_mtp_iteration": true,
|
| 318 |
+
"index_topk": 2048,
|
| 319 |
+
"indexer_rope_interleave": true,
|
| 320 |
+
"indexer_types": [
|
| 321 |
+
"full",
|
| 322 |
+
"full",
|
| 323 |
+
"full",
|
| 324 |
+
"full",
|
| 325 |
+
"full",
|
| 326 |
+
"full",
|
| 327 |
+
"full",
|
| 328 |
+
"full",
|
| 329 |
+
"full",
|
| 330 |
+
"full",
|
| 331 |
+
"full",
|
| 332 |
+
"full",
|
| 333 |
+
"full",
|
| 334 |
+
"full",
|
| 335 |
+
"full",
|
| 336 |
+
"full",
|
| 337 |
+
"full",
|
| 338 |
+
"full",
|
| 339 |
+
"full",
|
| 340 |
+
"full",
|
| 341 |
+
"full",
|
| 342 |
+
"full",
|
| 343 |
+
"full",
|
| 344 |
+
"full",
|
| 345 |
+
"full",
|
| 346 |
+
"full",
|
| 347 |
+
"full",
|
| 348 |
+
"full",
|
| 349 |
+
"full",
|
| 350 |
+
"full",
|
| 351 |
+
"full",
|
| 352 |
+
"full",
|
| 353 |
+
"full",
|
| 354 |
+
"full",
|
| 355 |
+
"full",
|
| 356 |
+
"full",
|
| 357 |
+
"full",
|
| 358 |
+
"full",
|
| 359 |
+
"full",
|
| 360 |
+
"full",
|
| 361 |
+
"full",
|
| 362 |
+
"full",
|
| 363 |
+
"full",
|
| 364 |
+
"full",
|
| 365 |
+
"full"
|
| 366 |
+
],
|
| 367 |
+
"initializer_range": 0.02,
|
| 368 |
+
"intermediate_size": 12288,
|
| 369 |
+
"is_encoder_decoder": false,
|
| 370 |
+
"kv_lora_rank": 512,
|
| 371 |
"label2id": {
|
| 372 |
+
"LABEL_0": 0,
|
| 373 |
+
"LABEL_1": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 374 |
},
|
| 375 |
+
"layer_types": [
|
| 376 |
+
"linear_attention",
|
| 377 |
+
"linear_attention",
|
| 378 |
+
"linear_attention",
|
| 379 |
+
"deepseek_sparse_attention",
|
| 380 |
+
"linear_attention",
|
| 381 |
+
"linear_attention",
|
| 382 |
+
"linear_attention",
|
| 383 |
+
"deepseek_sparse_attention",
|
| 384 |
+
"linear_attention",
|
| 385 |
+
"linear_attention",
|
| 386 |
+
"linear_attention",
|
| 387 |
+
"deepseek_sparse_attention",
|
| 388 |
+
"linear_attention",
|
| 389 |
+
"linear_attention",
|
| 390 |
+
"linear_attention",
|
| 391 |
+
"deepseek_sparse_attention",
|
| 392 |
+
"linear_attention",
|
| 393 |
+
"linear_attention",
|
| 394 |
+
"linear_attention",
|
| 395 |
+
"deepseek_sparse_attention",
|
| 396 |
+
"linear_attention",
|
| 397 |
+
"linear_attention",
|
| 398 |
+
"linear_attention",
|
| 399 |
+
"deepseek_sparse_attention",
|
| 400 |
+
"linear_attention",
|
| 401 |
+
"linear_attention",
|
| 402 |
+
"linear_attention",
|
| 403 |
+
"deepseek_sparse_attention",
|
| 404 |
+
"linear_attention",
|
| 405 |
+
"linear_attention",
|
| 406 |
+
"linear_attention",
|
| 407 |
+
"deepseek_sparse_attention",
|
| 408 |
+
"linear_attention",
|
| 409 |
+
"linear_attention",
|
| 410 |
+
"linear_attention",
|
| 411 |
+
"deepseek_sparse_attention",
|
| 412 |
+
"linear_attention",
|
| 413 |
+
"linear_attention",
|
| 414 |
+
"linear_attention",
|
| 415 |
+
"deepseek_sparse_attention",
|
| 416 |
+
"linear_attention",
|
| 417 |
+
"linear_attention",
|
| 418 |
+
"linear_attention",
|
| 419 |
+
"deepseek_sparse_attention",
|
| 420 |
+
"linear_attention"
|
| 421 |
+
],
|
| 422 |
+
"linear_attn_config": {
|
| 423 |
+
"full_attn_layers": [
|
| 424 |
+
3,
|
| 425 |
+
7,
|
| 426 |
+
11,
|
| 427 |
+
15,
|
| 428 |
+
19,
|
| 429 |
+
23,
|
| 430 |
+
27,
|
| 431 |
+
31,
|
| 432 |
+
35,
|
| 433 |
+
39,
|
| 434 |
+
43
|
| 435 |
+
],
|
| 436 |
+
"gate_lower_bound": -5.0,
|
| 437 |
+
"head_dim": 128,
|
| 438 |
+
"kda_layers": [
|
| 439 |
+
0,
|
| 440 |
+
1,
|
| 441 |
+
2,
|
| 442 |
+
4,
|
| 443 |
+
5,
|
| 444 |
+
6,
|
| 445 |
+
8,
|
| 446 |
+
9,
|
| 447 |
+
10,
|
| 448 |
+
12,
|
| 449 |
+
13,
|
| 450 |
+
14,
|
| 451 |
+
16,
|
| 452 |
+
17,
|
| 453 |
+
18,
|
| 454 |
+
20,
|
| 455 |
+
21,
|
| 456 |
+
22,
|
| 457 |
+
24,
|
| 458 |
+
25,
|
| 459 |
+
26,
|
| 460 |
+
28,
|
| 461 |
+
29,
|
| 462 |
+
30,
|
| 463 |
+
32,
|
| 464 |
+
33,
|
| 465 |
+
34,
|
| 466 |
+
36,
|
| 467 |
+
37,
|
| 468 |
+
38,
|
| 469 |
+
40,
|
| 470 |
+
41,
|
| 471 |
+
42,
|
| 472 |
+
44
|
| 473 |
+
],
|
| 474 |
+
"num_heads": 64,
|
| 475 |
+
"short_conv_kernel_size": 4
|
| 476 |
},
|
| 477 |
+
"linear_conv_kernel_dim": 4,
|
| 478 |
+
"linear_head_dim": 128,
|
| 479 |
+
"linear_lower_bound": -5.0,
|
| 480 |
+
"linear_num_heads": 64,
|
| 481 |
+
"max_position_embeddings": 1048576,
|
| 482 |
+
"mhc": true,
|
| 483 |
+
"mla_use_nope": true,
|
| 484 |
+
"mlp_layer_types": [
|
| 485 |
+
"dense",
|
| 486 |
+
"dense",
|
| 487 |
+
"dense",
|
| 488 |
+
"sparse",
|
| 489 |
+
"sparse",
|
| 490 |
+
"sparse",
|
| 491 |
+
"sparse",
|
| 492 |
+
"sparse",
|
| 493 |
+
"sparse",
|
| 494 |
+
"sparse",
|
| 495 |
+
"sparse",
|
| 496 |
+
"sparse",
|
| 497 |
+
"sparse",
|
| 498 |
+
"sparse",
|
| 499 |
+
"sparse",
|
| 500 |
+
"sparse",
|
| 501 |
+
"sparse",
|
| 502 |
+
"sparse",
|
| 503 |
+
"sparse",
|
| 504 |
+
"sparse",
|
| 505 |
+
"sparse",
|
| 506 |
+
"sparse",
|
| 507 |
+
"sparse",
|
| 508 |
+
"sparse",
|
| 509 |
+
"sparse",
|
| 510 |
+
"sparse",
|
| 511 |
+
"sparse",
|
| 512 |
+
"sparse",
|
| 513 |
+
"sparse",
|
| 514 |
+
"sparse",
|
| 515 |
+
"sparse",
|
| 516 |
+
"sparse",
|
| 517 |
+
"sparse",
|
| 518 |
+
"sparse",
|
| 519 |
+
"sparse",
|
| 520 |
+
"sparse",
|
| 521 |
+
"sparse",
|
| 522 |
+
"sparse",
|
| 523 |
+
"sparse",
|
| 524 |
+
"sparse",
|
| 525 |
+
"sparse",
|
| 526 |
+
"sparse",
|
| 527 |
+
"sparse",
|
| 528 |
+
"sparse",
|
| 529 |
+
"sparse"
|
| 530 |
+
],
|
| 531 |
+
"model_type": "glm5_next_text",
|
| 532 |
+
"moe_intermediate_size": 2048,
|
| 533 |
+
"moe_router_dtype": "float32",
|
| 534 |
+
"n_group": 1,
|
| 535 |
+
"n_routed_experts": 288,
|
| 536 |
+
"n_shared_experts": 1,
|
| 537 |
+
"norm_topk_prob": true,
|
| 538 |
+
"num_attention_heads": 64,
|
| 539 |
+
"num_experts_per_tok": 8,
|
| 540 |
+
"num_hidden_layers": 45,
|
| 541 |
+
"num_key_value_heads": 64,
|
| 542 |
+
"num_nextn_predict_layers": 1,
|
| 543 |
+
"output_attentions": false,
|
| 544 |
+
"output_hidden_states": false,
|
| 545 |
+
"output_router_logits": false,
|
| 546 |
+
"pad_token_id": 154820,
|
| 547 |
+
"problem_type": null,
|
| 548 |
+
"q_lora_rank": 1536,
|
| 549 |
+
"qk_head_dim": 256,
|
| 550 |
+
"qk_nope_head_dim": 256,
|
| 551 |
+
"qk_rope_head_dim": 0,
|
| 552 |
+
"return_dict": true,
|
| 553 |
+
"rms_norm_eps": 1e-05,
|
| 554 |
+
"routed_scaling_factor": 2.5,
|
| 555 |
+
"router_aux_loss_coef": 0.001,
|
| 556 |
+
"scoring_func": "sigmoid",
|
| 557 |
+
"swiglu_limit": 10.0,
|
| 558 |
"tie_word_embeddings": false,
|
| 559 |
+
"topk_group": 1,
|
| 560 |
+
"topk_method": "noaux_tc",
|
| 561 |
+
"use_cache": true,
|
| 562 |
+
"v_head_dim": 256,
|
| 563 |
+
"vocab_size": 154880
|
| 564 |
+
},
|
| 565 |
+
"tie_word_embeddings": false,
|
| 566 |
+
"transformers_version": "5.16.1",
|
| 567 |
+
"video_end_token_id": 154833,
|
| 568 |
+
"video_start_token_id": 154832,
|
| 569 |
+
"video_token_id": 154855,
|
| 570 |
+
"vision_config": {
|
| 571 |
"_name_or_path": "",
|
| 572 |
+
"architectures": null,
|
| 573 |
+
"attention_bias": true,
|
| 574 |
+
"attention_dropout": 0.0,
|
| 575 |
+
"chunk_size_feed_forward": 0,
|
| 576 |
+
"depth": 24,
|
| 577 |
+
"dtype": "bfloat16",
|
| 578 |
+
"hidden_act": "silu",
|
| 579 |
+
"hidden_size": 1024,
|
| 580 |
+
"id2label": {
|
| 581 |
+
"0": "LABEL_0",
|
| 582 |
+
"1": "LABEL_1"
|
| 583 |
+
},
|
| 584 |
+
"image_size": 448,
|
| 585 |
+
"in_channels": 3,
|
| 586 |
+
"initializer_range": 0.02,
|
| 587 |
+
"intermediate_size": 4096,
|
| 588 |
+
"is_encoder_decoder": false,
|
| 589 |
+
"label2id": {
|
| 590 |
+
"LABEL_0": 0,
|
| 591 |
+
"LABEL_1": 1
|
| 592 |
+
},
|
| 593 |
+
"model_type": "glm5_next_vision",
|
| 594 |
+
"num_heads": 16,
|
| 595 |
+
"out_hidden_size": 4096,
|
| 596 |
"output_attentions": false,
|
| 597 |
+
"output_hidden_states": false,
|
| 598 |
+
"patch_size": 14,
|
| 599 |
+
"problem_type": null,
|
| 600 |
+
"projection_intermediate_size": 10240,
|
| 601 |
+
"return_dict": true,
|
| 602 |
+
"rms_norm_eps": 1e-05,
|
| 603 |
+
"spatial_merge_size": 2,
|
| 604 |
+
"swiglu_limit": 10.0,
|
| 605 |
+
"temporal_patch_size": 2
|
| 606 |
+
}
|
| 607 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hf_quant_config.json
CHANGED
|
@@ -1,119 +1,264 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"model.language_model.layers.
|
| 33 |
-
"model.language_model.layers.
|
| 34 |
-
"model.language_model.layers.
|
| 35 |
-
"model.language_model.layers.
|
| 36 |
-
"model.language_model.layers.
|
| 37 |
-
"model.language_model.layers.
|
| 38 |
-
"model.language_model.layers.
|
| 39 |
-
"model.language_model.layers.
|
| 40 |
-
"model.language_model.layers.
|
| 41 |
-
"model.language_model.layers.
|
| 42 |
-
"model.language_model.layers.
|
| 43 |
-
"model.language_model.layers.
|
| 44 |
-
"model.language_model.layers.
|
| 45 |
-
"model.language_model.layers.
|
| 46 |
-
"model.language_model.layers.
|
| 47 |
-
"model.language_model.layers.
|
| 48 |
-
"model.language_model.layers.
|
| 49 |
-
"model.language_model.layers.
|
| 50 |
-
"model.language_model.layers.21.
|
| 51 |
-
"model.language_model.layers.22.mlp.
|
| 52 |
-
"model.language_model.layers.
|
| 53 |
-
"model.language_model.layers.
|
| 54 |
-
"model.language_model.layers.
|
| 55 |
-
"model.language_model.layers.
|
| 56 |
-
"model.language_model.layers.
|
| 57 |
-
"model.language_model.layers.
|
| 58 |
-
"model.language_model.layers.
|
| 59 |
-
"model.language_model.layers.
|
| 60 |
-
"model.language_model.layers.
|
| 61 |
-
"model.language_model.layers.
|
| 62 |
-
"model.language_model.layers.
|
| 63 |
-
"model.language_model.layers.
|
| 64 |
-
"model.language_model.layers.
|
| 65 |
-
"model.language_model.layers.
|
| 66 |
-
"model.language_model.layers.
|
| 67 |
-
"model.language_model.layers.
|
| 68 |
-
"model.language_model.layers.
|
| 69 |
-
"model.language_model.layers.
|
| 70 |
-
"model.language_model.layers.
|
| 71 |
-
"model.language_model.layers.
|
| 72 |
-
"model.language_model.layers.
|
| 73 |
-
"model.language_model.layers.
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
"
|
| 77 |
-
"
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"config_groups": {
|
| 3 |
+
"group_mxfp8_mtp_routed_experts": {
|
| 4 |
+
"input_activations": {
|
| 5 |
+
"dynamic": true,
|
| 6 |
+
"group_size": 32,
|
| 7 |
+
"num_bits": 8,
|
| 8 |
+
"type": "float"
|
| 9 |
+
},
|
| 10 |
+
"targets": [
|
| 11 |
+
"model.language_model.layers.45.mlp.experts"
|
| 12 |
+
],
|
| 13 |
+
"weights": {
|
| 14 |
+
"dynamic": false,
|
| 15 |
+
"group_size": 32,
|
| 16 |
+
"num_bits": 8,
|
| 17 |
+
"type": "float",
|
| 18 |
+
"weight_block_size": [
|
| 19 |
+
1,
|
| 20 |
+
32
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"group_nvfp4_routed_experts": {
|
| 25 |
+
"input_activations": {
|
| 26 |
+
"dynamic": false,
|
| 27 |
+
"group_size": 16,
|
| 28 |
+
"num_bits": 4,
|
| 29 |
+
"type": "float"
|
| 30 |
+
},
|
| 31 |
+
"targets": [
|
| 32 |
+
"model.language_model.layers.3.mlp.experts",
|
| 33 |
+
"model.language_model.layers.4.mlp.experts",
|
| 34 |
+
"model.language_model.layers.5.mlp.experts",
|
| 35 |
+
"model.language_model.layers.6.mlp.experts",
|
| 36 |
+
"model.language_model.layers.7.mlp.experts",
|
| 37 |
+
"model.language_model.layers.8.mlp.experts",
|
| 38 |
+
"model.language_model.layers.9.mlp.experts",
|
| 39 |
+
"model.language_model.layers.10.mlp.experts",
|
| 40 |
+
"model.language_model.layers.11.mlp.experts",
|
| 41 |
+
"model.language_model.layers.12.mlp.experts",
|
| 42 |
+
"model.language_model.layers.13.mlp.experts",
|
| 43 |
+
"model.language_model.layers.14.mlp.experts",
|
| 44 |
+
"model.language_model.layers.15.mlp.experts",
|
| 45 |
+
"model.language_model.layers.16.mlp.experts",
|
| 46 |
+
"model.language_model.layers.17.mlp.experts",
|
| 47 |
+
"model.language_model.layers.18.mlp.experts",
|
| 48 |
+
"model.language_model.layers.19.mlp.experts",
|
| 49 |
+
"model.language_model.layers.20.mlp.experts",
|
| 50 |
+
"model.language_model.layers.21.mlp.experts",
|
| 51 |
+
"model.language_model.layers.22.mlp.experts",
|
| 52 |
+
"model.language_model.layers.23.mlp.experts",
|
| 53 |
+
"model.language_model.layers.24.mlp.experts",
|
| 54 |
+
"model.language_model.layers.25.mlp.experts",
|
| 55 |
+
"model.language_model.layers.26.mlp.experts",
|
| 56 |
+
"model.language_model.layers.27.mlp.experts",
|
| 57 |
+
"model.language_model.layers.28.mlp.experts",
|
| 58 |
+
"model.language_model.layers.29.mlp.experts",
|
| 59 |
+
"model.language_model.layers.30.mlp.experts",
|
| 60 |
+
"model.language_model.layers.31.mlp.experts",
|
| 61 |
+
"model.language_model.layers.32.mlp.experts",
|
| 62 |
+
"model.language_model.layers.33.mlp.experts",
|
| 63 |
+
"model.language_model.layers.34.mlp.experts",
|
| 64 |
+
"model.language_model.layers.35.mlp.experts",
|
| 65 |
+
"model.language_model.layers.36.mlp.experts",
|
| 66 |
+
"model.language_model.layers.37.mlp.experts",
|
| 67 |
+
"model.language_model.layers.38.mlp.experts",
|
| 68 |
+
"model.language_model.layers.39.mlp.experts",
|
| 69 |
+
"model.language_model.layers.40.mlp.experts",
|
| 70 |
+
"model.language_model.layers.41.mlp.experts",
|
| 71 |
+
"model.language_model.layers.42.mlp.experts",
|
| 72 |
+
"model.language_model.layers.43.mlp.experts",
|
| 73 |
+
"model.language_model.layers.44.mlp.experts"
|
| 74 |
+
],
|
| 75 |
+
"weights": {
|
| 76 |
+
"dynamic": false,
|
| 77 |
+
"group_size": 16,
|
| 78 |
+
"num_bits": 4,
|
| 79 |
+
"type": "float"
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"ignore": [],
|
| 84 |
+
"producer": {
|
| 85 |
+
"name": "modelopt",
|
| 86 |
+
"version": "0.39.0.dev290+gf9d9a71de.d20260407"
|
| 87 |
+
},
|
| 88 |
+
"quant_algo": "MIXED_PRECISION",
|
| 89 |
+
"quant_method": "modelopt",
|
| 90 |
+
"quantized_layers": {
|
| 91 |
+
"model.language_model.layers.10.mlp.experts": {
|
| 92 |
+
"group_size": 16,
|
| 93 |
+
"quant_algo": "NVFP4"
|
| 94 |
+
},
|
| 95 |
+
"model.language_model.layers.11.mlp.experts": {
|
| 96 |
+
"group_size": 16,
|
| 97 |
+
"quant_algo": "NVFP4"
|
| 98 |
+
},
|
| 99 |
+
"model.language_model.layers.12.mlp.experts": {
|
| 100 |
+
"group_size": 16,
|
| 101 |
+
"quant_algo": "NVFP4"
|
| 102 |
+
},
|
| 103 |
+
"model.language_model.layers.13.mlp.experts": {
|
| 104 |
+
"group_size": 16,
|
| 105 |
+
"quant_algo": "NVFP4"
|
| 106 |
+
},
|
| 107 |
+
"model.language_model.layers.14.mlp.experts": {
|
| 108 |
+
"group_size": 16,
|
| 109 |
+
"quant_algo": "NVFP4"
|
| 110 |
+
},
|
| 111 |
+
"model.language_model.layers.15.mlp.experts": {
|
| 112 |
+
"group_size": 16,
|
| 113 |
+
"quant_algo": "NVFP4"
|
| 114 |
+
},
|
| 115 |
+
"model.language_model.layers.16.mlp.experts": {
|
| 116 |
+
"group_size": 16,
|
| 117 |
+
"quant_algo": "NVFP4"
|
| 118 |
+
},
|
| 119 |
+
"model.language_model.layers.17.mlp.experts": {
|
| 120 |
+
"group_size": 16,
|
| 121 |
+
"quant_algo": "NVFP4"
|
| 122 |
+
},
|
| 123 |
+
"model.language_model.layers.18.mlp.experts": {
|
| 124 |
+
"group_size": 16,
|
| 125 |
+
"quant_algo": "NVFP4"
|
| 126 |
+
},
|
| 127 |
+
"model.language_model.layers.19.mlp.experts": {
|
| 128 |
+
"group_size": 16,
|
| 129 |
+
"quant_algo": "NVFP4"
|
| 130 |
+
},
|
| 131 |
+
"model.language_model.layers.20.mlp.experts": {
|
| 132 |
+
"group_size": 16,
|
| 133 |
+
"quant_algo": "NVFP4"
|
| 134 |
+
},
|
| 135 |
+
"model.language_model.layers.21.mlp.experts": {
|
| 136 |
+
"group_size": 16,
|
| 137 |
+
"quant_algo": "NVFP4"
|
| 138 |
+
},
|
| 139 |
+
"model.language_model.layers.22.mlp.experts": {
|
| 140 |
+
"group_size": 16,
|
| 141 |
+
"quant_algo": "NVFP4"
|
| 142 |
+
},
|
| 143 |
+
"model.language_model.layers.23.mlp.experts": {
|
| 144 |
+
"group_size": 16,
|
| 145 |
+
"quant_algo": "NVFP4"
|
| 146 |
+
},
|
| 147 |
+
"model.language_model.layers.24.mlp.experts": {
|
| 148 |
+
"group_size": 16,
|
| 149 |
+
"quant_algo": "NVFP4"
|
| 150 |
+
},
|
| 151 |
+
"model.language_model.layers.25.mlp.experts": {
|
| 152 |
+
"group_size": 16,
|
| 153 |
+
"quant_algo": "NVFP4"
|
| 154 |
+
},
|
| 155 |
+
"model.language_model.layers.26.mlp.experts": {
|
| 156 |
+
"group_size": 16,
|
| 157 |
+
"quant_algo": "NVFP4"
|
| 158 |
+
},
|
| 159 |
+
"model.language_model.layers.27.mlp.experts": {
|
| 160 |
+
"group_size": 16,
|
| 161 |
+
"quant_algo": "NVFP4"
|
| 162 |
+
},
|
| 163 |
+
"model.language_model.layers.28.mlp.experts": {
|
| 164 |
+
"group_size": 16,
|
| 165 |
+
"quant_algo": "NVFP4"
|
| 166 |
+
},
|
| 167 |
+
"model.language_model.layers.29.mlp.experts": {
|
| 168 |
+
"group_size": 16,
|
| 169 |
+
"quant_algo": "NVFP4"
|
| 170 |
+
},
|
| 171 |
+
"model.language_model.layers.3.mlp.experts": {
|
| 172 |
+
"group_size": 16,
|
| 173 |
+
"quant_algo": "NVFP4"
|
| 174 |
+
},
|
| 175 |
+
"model.language_model.layers.30.mlp.experts": {
|
| 176 |
+
"group_size": 16,
|
| 177 |
+
"quant_algo": "NVFP4"
|
| 178 |
+
},
|
| 179 |
+
"model.language_model.layers.31.mlp.experts": {
|
| 180 |
+
"group_size": 16,
|
| 181 |
+
"quant_algo": "NVFP4"
|
| 182 |
+
},
|
| 183 |
+
"model.language_model.layers.32.mlp.experts": {
|
| 184 |
+
"group_size": 16,
|
| 185 |
+
"quant_algo": "NVFP4"
|
| 186 |
+
},
|
| 187 |
+
"model.language_model.layers.33.mlp.experts": {
|
| 188 |
+
"group_size": 16,
|
| 189 |
+
"quant_algo": "NVFP4"
|
| 190 |
+
},
|
| 191 |
+
"model.language_model.layers.34.mlp.experts": {
|
| 192 |
+
"group_size": 16,
|
| 193 |
+
"quant_algo": "NVFP4"
|
| 194 |
+
},
|
| 195 |
+
"model.language_model.layers.35.mlp.experts": {
|
| 196 |
+
"group_size": 16,
|
| 197 |
+
"quant_algo": "NVFP4"
|
| 198 |
+
},
|
| 199 |
+
"model.language_model.layers.36.mlp.experts": {
|
| 200 |
+
"group_size": 16,
|
| 201 |
+
"quant_algo": "NVFP4"
|
| 202 |
+
},
|
| 203 |
+
"model.language_model.layers.37.mlp.experts": {
|
| 204 |
+
"group_size": 16,
|
| 205 |
+
"quant_algo": "NVFP4"
|
| 206 |
+
},
|
| 207 |
+
"model.language_model.layers.38.mlp.experts": {
|
| 208 |
+
"group_size": 16,
|
| 209 |
+
"quant_algo": "NVFP4"
|
| 210 |
+
},
|
| 211 |
+
"model.language_model.layers.39.mlp.experts": {
|
| 212 |
+
"group_size": 16,
|
| 213 |
+
"quant_algo": "NVFP4"
|
| 214 |
+
},
|
| 215 |
+
"model.language_model.layers.4.mlp.experts": {
|
| 216 |
+
"group_size": 16,
|
| 217 |
+
"quant_algo": "NVFP4"
|
| 218 |
+
},
|
| 219 |
+
"model.language_model.layers.40.mlp.experts": {
|
| 220 |
+
"group_size": 16,
|
| 221 |
+
"quant_algo": "NVFP4"
|
| 222 |
+
},
|
| 223 |
+
"model.language_model.layers.41.mlp.experts": {
|
| 224 |
+
"group_size": 16,
|
| 225 |
+
"quant_algo": "NVFP4"
|
| 226 |
+
},
|
| 227 |
+
"model.language_model.layers.42.mlp.experts": {
|
| 228 |
+
"group_size": 16,
|
| 229 |
+
"quant_algo": "NVFP4"
|
| 230 |
+
},
|
| 231 |
+
"model.language_model.layers.43.mlp.experts": {
|
| 232 |
+
"group_size": 16,
|
| 233 |
+
"quant_algo": "NVFP4"
|
| 234 |
+
},
|
| 235 |
+
"model.language_model.layers.44.mlp.experts": {
|
| 236 |
+
"group_size": 16,
|
| 237 |
+
"quant_algo": "NVFP4"
|
| 238 |
+
},
|
| 239 |
+
"model.language_model.layers.45.mlp.experts": {
|
| 240 |
+
"group_size": 32,
|
| 241 |
+
"quant_algo": "MXFP8"
|
| 242 |
+
},
|
| 243 |
+
"model.language_model.layers.5.mlp.experts": {
|
| 244 |
+
"group_size": 16,
|
| 245 |
+
"quant_algo": "NVFP4"
|
| 246 |
+
},
|
| 247 |
+
"model.language_model.layers.6.mlp.experts": {
|
| 248 |
+
"group_size": 16,
|
| 249 |
+
"quant_algo": "NVFP4"
|
| 250 |
+
},
|
| 251 |
+
"model.language_model.layers.7.mlp.experts": {
|
| 252 |
+
"group_size": 16,
|
| 253 |
+
"quant_algo": "NVFP4"
|
| 254 |
+
},
|
| 255 |
+
"model.language_model.layers.8.mlp.experts": {
|
| 256 |
+
"group_size": 16,
|
| 257 |
+
"quant_algo": "NVFP4"
|
| 258 |
+
},
|
| 259 |
+
"model.language_model.layers.9.mlp.experts": {
|
| 260 |
+
"group_size": 16,
|
| 261 |
+
"quant_algo": "NVFP4"
|
| 262 |
+
}
|
| 263 |
+
}
|
| 264 |
+
}
|
model-mtp-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:872508b605ecf1a423bd83d5ef1601d9ff4c4f635c235882839dc5ac8fc5a7be
|
| 3 |
+
size 67133912
|
model-mtp-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c19aef14bf823752d94cf45f34331ced6ead9d4c140195d4877132330d10cc37
|
| 3 |
+
size 2768332568
|
model-mtp-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7be2f838840af87bc3f503ce9eba1d1ae509272e347704922ccec22e7aca4875
|
| 3 |
+
size 2768332552
|
model-mtp-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4dc6b851f6acce39f339e91a8f4ff3763ba7ada3f352f8c28bd3b81d0ba5400
|
| 3 |
+
size 2240372552
|
model.safetensors.index.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72439c1033508ed90283da3ed2baa5fd491d9d111c1ae8213602368cbe568c68
|
| 3 |
+
size 16278438
|
processor_config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"patch_expand_factor": 1,
|
| 5 |
+
"merge_size": 2,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.48145466,
|
| 8 |
+
0.4578275,
|
| 9 |
+
0.40821073
|
| 10 |
+
],
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.26862954,
|
| 13 |
+
0.26130258,
|
| 14 |
+
0.27577711
|
| 15 |
+
],
|
| 16 |
+
"temporal_patch_size": 2,
|
| 17 |
+
"patch_size": 14,
|
| 18 |
+
"min_image_tokens": 16,
|
| 19 |
+
"max_image_tokens": 8000,
|
| 20 |
+
"image_processor_type": "Glm5NextImageProcessor"
|
| 21 |
+
},
|
| 22 |
+
"video_processor": {
|
| 23 |
+
"do_rescale": true,
|
| 24 |
+
"video_processor_type": "Glm5NextVideoProcessor",
|
| 25 |
+
"patch_expand_factor": 1,
|
| 26 |
+
"merge_size": 2,
|
| 27 |
+
"image_mean": [
|
| 28 |
+
0.48145466,
|
| 29 |
+
0.4578275,
|
| 30 |
+
0.40821073
|
| 31 |
+
],
|
| 32 |
+
"image_std": [
|
| 33 |
+
0.26862954,
|
| 34 |
+
0.26130258,
|
| 35 |
+
0.27577711
|
| 36 |
+
],
|
| 37 |
+
"temporal_patch_size": 2,
|
| 38 |
+
"patch_size": 14,
|
| 39 |
+
"min_image_tokens": 16,
|
| 40 |
+
"max_image_tokens": 240000,
|
| 41 |
+
"fps": 2
|
| 42 |
+
},
|
| 43 |
+
"processor_class": "Glm5NextProcessor"
|
| 44 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d
|
| 3 |
+
size 20217442
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": false,
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"eos_token": "<|endoftext|>",
|
| 6 |
+
"extra_special_tokens": [
|
| 7 |
+
"<|endoftext|>",
|
| 8 |
+
"[MASK]",
|
| 9 |
+
"[gMASK]",
|
| 10 |
+
"[sMASK]",
|
| 11 |
+
"<sop>",
|
| 12 |
+
"<eop>",
|
| 13 |
+
"<|system|>",
|
| 14 |
+
"<|user|>",
|
| 15 |
+
"<|assistant|>",
|
| 16 |
+
"<|observation|>",
|
| 17 |
+
"<|begin_of_image|>",
|
| 18 |
+
"<|end_of_image|>",
|
| 19 |
+
"<|begin_of_video|>",
|
| 20 |
+
"<|end_of_video|>",
|
| 21 |
+
"<|begin_of_audio|>",
|
| 22 |
+
"<|end_of_audio|>",
|
| 23 |
+
"<|begin_of_transcription|>",
|
| 24 |
+
"<|end_of_transcription|>"
|
| 25 |
+
],
|
| 26 |
+
"is_local": true,
|
| 27 |
+
"model_max_length": 1048576,
|
| 28 |
+
"model_specific_special_tokens": {},
|
| 29 |
+
"pad_token": "<|endoftext|>",
|
| 30 |
+
"padding_side": "left",
|
| 31 |
+
"remove_space": false,
|
| 32 |
+
"tokenizer_class": "TokenizersBackend"
|
| 33 |
+
}
|