Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +144 -0
- chat_template.jinja +86 -0
- config.json +287 -0
- generation_config.json +11 -0
- model.safetensors +3 -0
- recipe.yaml +40 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
library_name: transformers
|
| 6 |
+
license: mit
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
base_model: zai-org/GLM-4.7-Flash
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# GLM-4.7-Flash
|
| 12 |
+
|
| 13 |
+
<div align="center">
|
| 14 |
+
<img src=https://raw.githubusercontent.com/zai-org/GLM-4.5/refs/heads/main/resources/logo.svg width="15%"/>
|
| 15 |
+
</div>
|
| 16 |
+
<p align="center">
|
| 17 |
+
👋 Join our <a href="https://discord.gg/QR7SARHRxK" target="_blank">Discord</a> community.
|
| 18 |
+
<br>
|
| 19 |
+
📖 Check out the GLM-4.7 <a href="https://z.ai/blog/glm-4.7" target="_blank">technical blog</a>, <a href="https://arxiv.org/abs/2508.06471" target="_blank">technical report(GLM-4.5)</a>.
|
| 20 |
+
<br>
|
| 21 |
+
📍 Use GLM-4.7-Flash API services on <a href="https://docs.z.ai/guides/llm/glm-4.7">Z.ai API Platform. </a>
|
| 22 |
+
<br>
|
| 23 |
+
👉 One click to <a href="https://chat.z.ai">GLM-4.7</a>.
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
+
## Introduction
|
| 27 |
+
|
| 28 |
+
GLM-4.7-Flash is a 30B-A3B MoE model. As the strongest model in the 30B class, GLM-4.7-Flash offers a new option for lightweight deployment that balances performance and efficiency.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
### Performances on Benchmarks
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
| Benchmark | GLM-4.7-Flash | Qwen3-30B-A3B-Thinking-2507 | GPT-OSS-20B |
|
| 35 |
+
|--------------------|---------------|-----------------------------|-------------|
|
| 36 |
+
| AIME 25 | 91.6 | 85.0 | 91.7 |
|
| 37 |
+
| GPQA | 75.2 | 73.4 | 71.5 |
|
| 38 |
+
| LCB v6 | 64.0 | 66.0 | 61.0 |
|
| 39 |
+
| HLE | 14.4 | 9.8 | 10.9 |
|
| 40 |
+
| SWE-bench Verified | 59.2 | 22.0 | 34.0 |
|
| 41 |
+
| τ²-Bench | 79.5 | 49.0 | 47.7 |
|
| 42 |
+
| BrowseComp | 42.8 | 2.29 | 28.3 |
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
## Serve GLM-4.7-Flash Locally
|
| 46 |
+
|
| 47 |
+
For local deployment, GLM-4.7-Flash supports inference frameworks including vLLM and SGLang. Comprehensive deployment
|
| 48 |
+
instructions are available in the official [Github](https://github.com/zai-org/GLM-4.5) repository.
|
| 49 |
+
|
| 50 |
+
vLLM and SGLang only support GLM-4.7-Flash on their main branches.
|
| 51 |
+
|
| 52 |
+
### vLLM
|
| 53 |
+
|
| 54 |
+
+ using pip (must use pypi.org as the index url):
|
| 55 |
+
|
| 56 |
+
```shell
|
| 57 |
+
pip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly
|
| 58 |
+
pip install git+https://github.com/huggingface/transformers.git
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### SGLang
|
| 62 |
+
|
| 63 |
+
+ using pip install sglang from source, then update transformers to the latest main branch.
|
| 64 |
+
|
| 65 |
+
### transformers
|
| 66 |
+
|
| 67 |
+
using with transformers as
|
| 68 |
+
|
| 69 |
+
```shell
|
| 70 |
+
pip install git+https://github.com/huggingface/transformers.git
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
and then run:
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
import torch
|
| 77 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 78 |
+
|
| 79 |
+
MODEL_PATH = "zai-org/GLM-4.7-Flash"
|
| 80 |
+
messages = [{"role": "user", "content": "hello"}]
|
| 81 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
|
| 82 |
+
inputs = tokenizer.apply_chat_template(
|
| 83 |
+
messages,
|
| 84 |
+
tokenize=True,
|
| 85 |
+
add_generation_prompt=True,
|
| 86 |
+
return_dict=True,
|
| 87 |
+
return_tensors="pt",
|
| 88 |
+
)
|
| 89 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 90 |
+
pretrained_model_name_or_path=MODEL_PATH,
|
| 91 |
+
torch_dtype=torch.bfloat16,
|
| 92 |
+
device_map="auto",
|
| 93 |
+
)
|
| 94 |
+
inputs = inputs.to(model.device)
|
| 95 |
+
generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)
|
| 96 |
+
output_text = tokenizer.decode(generated_ids[0][inputs.input_ids.shape[1]:])
|
| 97 |
+
print(output_text)
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### vLLM
|
| 101 |
+
|
| 102 |
+
```shell
|
| 103 |
+
vllm serve zai-org/GLM-4.7-Flash \
|
| 104 |
+
--tensor-parallel-size 4 \
|
| 105 |
+
--speculative-config.method mtp \
|
| 106 |
+
--speculative-config.num_speculative_tokens 1 \
|
| 107 |
+
--tool-call-parser glm47 \
|
| 108 |
+
--reasoning-parser glm45 \
|
| 109 |
+
--enable-auto-tool-choice \
|
| 110 |
+
--served-model-name glm-4.7-flash
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
### SGLang
|
| 114 |
+
|
| 115 |
+
```shell
|
| 116 |
+
python3 -m sglang.launch_server \
|
| 117 |
+
--model-path zai-org/GLM-4.7-Flash \
|
| 118 |
+
--tp-size 4 \
|
| 119 |
+
--tool-call-parser glm47 \
|
| 120 |
+
--reasoning-parser glm45 \
|
| 121 |
+
--speculative-algorithm EAGLE \
|
| 122 |
+
--speculative-num-steps 3 \
|
| 123 |
+
--speculative-eagle-topk 1 \
|
| 124 |
+
--speculative-num-draft-tokens 4 \
|
| 125 |
+
--mem-fraction-static 0.8 \
|
| 126 |
+
--served-model-name glm-4.7-flash \
|
| 127 |
+
--host 0.0.0.0 \
|
| 128 |
+
--port 8000
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
## Citation
|
| 132 |
+
|
| 133 |
+
If you find our work useful in your research, please consider citing the following paper:
|
| 134 |
+
|
| 135 |
+
```bibtex
|
| 136 |
+
@misc{5team2025glm45agenticreasoningcoding,
|
| 137 |
+
title={GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models},
|
| 138 |
+
author={GLM Team and Aohan Zeng and Xin Lv and Qinkai Zheng and Zhenyu Hou and Bin Chen and Chengxing Xie and Cunxiang Wang and Da Yin and Hao Zeng and Jiajie Zhang and Kedong Wang and Lucen Zhong and Mingdao Liu and Rui Lu and Shulin Cao and Xiaohan Zhang and Xuancheng Huang and Yao Wei and Yean Cheng and Yifan An and Yilin Niu and Yuanhao Wen and Yushi Bai and Zhengxiao Du and Zihan Wang and Zilin Zhu and Bohan Zhang and Bosi Wen and Bowen Wu and Bowen Xu and Can Huang and Casey Zhao and Changpeng Cai and Chao Yu and Chen Li and Chendi Ge and Chenghua Huang and Chenhui Zhang and Chenxi Xu and Chenzheng Zhu and Chuang Li and Congfeng Yin and Daoyan Lin and Dayong Yang and Dazhi Jiang and Ding Ai and Erle Zhu and Fei Wang and Gengzheng Pan and Guo Wang and Hailong Sun and Haitao Li and Haiyang Li and Haiyi Hu and Hanyu Zhang and Hao Peng and Hao Tai and Haoke Zhang and Haoran Wang and Haoyu Yang and He Liu and He Zhao and Hongwei Liu and Hongxi Yan and Huan Liu and Huilong Chen and Ji Li and Jiajing Zhao and Jiamin Ren and Jian Jiao and Jiani Zhao and Jianyang Yan and Jiaqi Wang and Jiayi Gui and Jiayue Zhao and Jie Liu and Jijie Li and Jing Li and Jing Lu and Jingsen Wang and Jingwei Yuan and Jingxuan Li and Jingzhao Du and Jinhua Du and Jinxin Liu and Junkai Zhi and Junli Gao and Ke Wang and Lekang Yang and Liang Xu and Lin Fan and Lindong Wu and Lintao Ding and Lu Wang and Man Zhang and Minghao Li and Minghuan Xu and Mingming Zhao and Mingshu Zhai and Pengfan Du and Qian Dong and Shangde Lei and Shangqing Tu and Shangtong Yang and Shaoyou Lu and Shijie Li and Shuang Li and Shuang-Li and Shuxun Yang and Sibo Yi and Tianshu Yu and Wei Tian and Weihan Wang and Wenbo Yu and Weng Lam Tam and Wenjie Liang and Wentao Liu and Xiao Wang and Xiaohan Jia and Xiaotao Gu and Xiaoying Ling and Xin Wang and Xing Fan and Xingru Pan and Xinyuan Zhang and Xinze Zhang and Xiuqing Fu and Xunkai Zhang and Yabo Xu and Yandong Wu and Yida Lu and Yidong Wang and Yilin Zhou and Yiming Pan and Ying Zhang and Yingli Wang and Yingru Li and Yinpei Su and Yipeng Geng and Yitong Zhu and Yongkun Yang and Yuhang Li and Yuhao Wu and Yujiang Li and Yunan Liu and Yunqing Wang and Yuntao Li and Yuxuan Zhang and Zezhen Liu and Zhen Yang and Zhengda Zhou and Zhongpei Qiao and Zhuoer Feng and Zhuorui Liu and Zichen Zhang and Zihan Wang and Zijun Yao and Zikang Wang and Ziqiang Liu and Ziwei Chai and Zixuan Li and Zuodong Zhao and Wenguang Chen and Jidong Zhai and Bin Xu and Minlie Huang and Hongning Wang and Juanzi Li and Yuxiao Dong and Jie Tang},
|
| 139 |
+
year={2025},
|
| 140 |
+
eprint={2508.06471},
|
| 141 |
+
archivePrefix={arXiv},
|
| 142 |
+
primaryClass={cs.CL},
|
| 143 |
+
url={https://arxiv.org/abs/2508.06471},
|
| 144 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
<|system|>
|
| 4 |
+
# Tools
|
| 5 |
+
|
| 6 |
+
You may call one or more functions to assist with the user query.
|
| 7 |
+
|
| 8 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 9 |
+
<tools>
|
| 10 |
+
{% for tool in tools %}
|
| 11 |
+
{{ tool | tojson(ensure_ascii=False) }}
|
| 12 |
+
{% endfor %}
|
| 13 |
+
</tools>
|
| 14 |
+
|
| 15 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 16 |
+
<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 -%}
|
| 17 |
+
{%- macro visible_text(content) -%}
|
| 18 |
+
{%- if content is string -%}
|
| 19 |
+
{{- content }}
|
| 20 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 21 |
+
{%- for item in content -%}
|
| 22 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 23 |
+
{{- item.text }}
|
| 24 |
+
{%- elif item is string -%}
|
| 25 |
+
{{- item }}
|
| 26 |
+
{%- endif -%}
|
| 27 |
+
{%- endfor -%}
|
| 28 |
+
{%- else -%}
|
| 29 |
+
{{- content }}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{%- endmacro -%}
|
| 32 |
+
{%- set ns = namespace(last_user_index=-1) %}
|
| 33 |
+
{%- for m in messages %}
|
| 34 |
+
{%- if m.role == 'user' %}
|
| 35 |
+
{% set ns.last_user_index = loop.index0 -%}
|
| 36 |
+
{%- endif %}
|
| 37 |
+
{%- endfor %}
|
| 38 |
+
{% for m in messages %}
|
| 39 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 40 |
+
{%- elif m.role == 'assistant' -%}
|
| 41 |
+
<|assistant|>
|
| 42 |
+
{%- set reasoning_content = '' %}
|
| 43 |
+
{%- set content = visible_text(m.content) %}
|
| 44 |
+
{%- if m.reasoning_content is string %}
|
| 45 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 46 |
+
{%- else %}
|
| 47 |
+
{%- if '</think>' in content %}
|
| 48 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 49 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content -%}
|
| 53 |
+
{{ '<think>' + reasoning_content.strip() + '</think>'}}
|
| 54 |
+
{%- else -%}
|
| 55 |
+
{{ '</think>' }}
|
| 56 |
+
{%- endif -%}
|
| 57 |
+
{%- if content.strip() -%}
|
| 58 |
+
{{ content.strip() }}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{% if m.tool_calls %}
|
| 61 |
+
{% for tc in m.tool_calls %}
|
| 62 |
+
{%- if tc.function %}
|
| 63 |
+
{%- set tc = tc.function %}
|
| 64 |
+
{%- endif %}
|
| 65 |
+
{{- '<tool_call>' + tc.name -}}
|
| 66 |
+
{% 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 %}
|
| 67 |
+
{% endif %}
|
| 68 |
+
{%- elif m.role == 'tool' -%}
|
| 69 |
+
{%- if m.content is string -%}
|
| 70 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 71 |
+
{{- '<|observation|>' }}
|
| 72 |
+
{%- endif %}
|
| 73 |
+
{{- '<tool_response>' }}
|
| 74 |
+
{{- m.content }}
|
| 75 |
+
{{- '</tool_response>' }}
|
| 76 |
+
{%- else -%}
|
| 77 |
+
<|observation|>{% for tr in m.content %}
|
| 78 |
+
<tool_response>{{ tr.output if tr.output is defined else tr }}</tool_response>{% endfor -%}
|
| 79 |
+
{% endif -%}
|
| 80 |
+
{%- elif m.role == 'system' -%}
|
| 81 |
+
<|system|>{{ visible_text(m.content) }}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{%- endfor -%}
|
| 84 |
+
{%- if add_generation_prompt -%}
|
| 85 |
+
<|assistant|>{{- '</think>' if (enable_thinking is defined and not enable_thinking) else '<think>' -}}
|
| 86 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Glm4MoeLiteForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": [
|
| 10 |
+
154820,
|
| 11 |
+
154827,
|
| 12 |
+
154829
|
| 13 |
+
],
|
| 14 |
+
"first_k_dense_replace": 1,
|
| 15 |
+
"head_dim": 64,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 2048,
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 10240,
|
| 20 |
+
"kv_lora_rank": 512,
|
| 21 |
+
"max_position_embeddings": 202752,
|
| 22 |
+
"mlp_layer_types": [
|
| 23 |
+
"dense",
|
| 24 |
+
"sparse",
|
| 25 |
+
"sparse",
|
| 26 |
+
"sparse",
|
| 27 |
+
"sparse",
|
| 28 |
+
"sparse",
|
| 29 |
+
"sparse",
|
| 30 |
+
"sparse",
|
| 31 |
+
"sparse",
|
| 32 |
+
"sparse",
|
| 33 |
+
"sparse",
|
| 34 |
+
"sparse",
|
| 35 |
+
"sparse",
|
| 36 |
+
"sparse",
|
| 37 |
+
"sparse",
|
| 38 |
+
"sparse",
|
| 39 |
+
"sparse",
|
| 40 |
+
"sparse",
|
| 41 |
+
"sparse",
|
| 42 |
+
"sparse",
|
| 43 |
+
"sparse",
|
| 44 |
+
"sparse",
|
| 45 |
+
"sparse",
|
| 46 |
+
"sparse",
|
| 47 |
+
"sparse",
|
| 48 |
+
"sparse",
|
| 49 |
+
"sparse",
|
| 50 |
+
"sparse",
|
| 51 |
+
"sparse",
|
| 52 |
+
"sparse",
|
| 53 |
+
"sparse",
|
| 54 |
+
"sparse",
|
| 55 |
+
"sparse",
|
| 56 |
+
"sparse",
|
| 57 |
+
"sparse",
|
| 58 |
+
"sparse",
|
| 59 |
+
"sparse",
|
| 60 |
+
"sparse",
|
| 61 |
+
"sparse",
|
| 62 |
+
"sparse",
|
| 63 |
+
"sparse",
|
| 64 |
+
"sparse",
|
| 65 |
+
"sparse",
|
| 66 |
+
"sparse",
|
| 67 |
+
"sparse",
|
| 68 |
+
"sparse",
|
| 69 |
+
"sparse"
|
| 70 |
+
],
|
| 71 |
+
"model_type": "glm4_moe_lite",
|
| 72 |
+
"moe_intermediate_size": 1536,
|
| 73 |
+
"n_group": 1,
|
| 74 |
+
"n_routed_experts": 64,
|
| 75 |
+
"n_shared_experts": 1,
|
| 76 |
+
"norm_topk_prob": true,
|
| 77 |
+
"num_attention_heads": 20,
|
| 78 |
+
"num_experts_per_tok": 4,
|
| 79 |
+
"num_hidden_layers": 47,
|
| 80 |
+
"num_key_value_heads": 20,
|
| 81 |
+
"num_nextn_predict_layers": 1,
|
| 82 |
+
"pad_token_id": 154820,
|
| 83 |
+
"partial_rotary_factor": 1.0,
|
| 84 |
+
"pretraining_tp": 1,
|
| 85 |
+
"q_lora_rank": 768,
|
| 86 |
+
"qk_head_dim": 256,
|
| 87 |
+
"qk_nope_head_dim": 192,
|
| 88 |
+
"qk_rope_head_dim": 64,
|
| 89 |
+
"quantization_config": {
|
| 90 |
+
"config_groups": {
|
| 91 |
+
"group_0": {
|
| 92 |
+
"format": "pack-quantized",
|
| 93 |
+
"input_activations": null,
|
| 94 |
+
"output_activations": null,
|
| 95 |
+
"targets": [
|
| 96 |
+
"Linear"
|
| 97 |
+
],
|
| 98 |
+
"weights": {
|
| 99 |
+
"actorder": null,
|
| 100 |
+
"block_structure": null,
|
| 101 |
+
"dynamic": false,
|
| 102 |
+
"group_size": 32,
|
| 103 |
+
"num_bits": 4,
|
| 104 |
+
"observer": "mse",
|
| 105 |
+
"observer_kwargs": {},
|
| 106 |
+
"scale_dtype": null,
|
| 107 |
+
"strategy": "group",
|
| 108 |
+
"symmetric": true,
|
| 109 |
+
"type": "int",
|
| 110 |
+
"zp_dtype": null
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"format": "pack-quantized",
|
| 115 |
+
"global_compression_ratio": null,
|
| 116 |
+
"ignore": [
|
| 117 |
+
"model.layers.0.self_attn.q_a_proj",
|
| 118 |
+
"model.layers.0.self_attn.q_b_proj",
|
| 119 |
+
"model.layers.0.self_attn.kv_a_proj_with_mqa",
|
| 120 |
+
"model.layers.0.self_attn.kv_b_proj",
|
| 121 |
+
"model.layers.0.self_attn.o_proj",
|
| 122 |
+
"model.layers.0.mlp.gate_proj",
|
| 123 |
+
"model.layers.0.mlp.up_proj",
|
| 124 |
+
"model.layers.0.mlp.down_proj",
|
| 125 |
+
"model.layers.1.mlp.shared_experts.gate_proj",
|
| 126 |
+
"model.layers.1.mlp.shared_experts.up_proj",
|
| 127 |
+
"model.layers.1.mlp.shared_experts.down_proj",
|
| 128 |
+
"model.layers.2.mlp.shared_experts.gate_proj",
|
| 129 |
+
"model.layers.2.mlp.shared_experts.up_proj",
|
| 130 |
+
"model.layers.2.mlp.shared_experts.down_proj",
|
| 131 |
+
"model.layers.3.mlp.shared_experts.gate_proj",
|
| 132 |
+
"model.layers.3.mlp.shared_experts.up_proj",
|
| 133 |
+
"model.layers.3.mlp.shared_experts.down_proj",
|
| 134 |
+
"model.layers.4.mlp.shared_experts.gate_proj",
|
| 135 |
+
"model.layers.4.mlp.shared_experts.up_proj",
|
| 136 |
+
"model.layers.4.mlp.shared_experts.down_proj",
|
| 137 |
+
"model.layers.5.mlp.shared_experts.gate_proj",
|
| 138 |
+
"model.layers.5.mlp.shared_experts.up_proj",
|
| 139 |
+
"model.layers.5.mlp.shared_experts.down_proj",
|
| 140 |
+
"model.layers.6.mlp.shared_experts.gate_proj",
|
| 141 |
+
"model.layers.6.mlp.shared_experts.up_proj",
|
| 142 |
+
"model.layers.6.mlp.shared_experts.down_proj",
|
| 143 |
+
"model.layers.7.mlp.shared_experts.gate_proj",
|
| 144 |
+
"model.layers.7.mlp.shared_experts.up_proj",
|
| 145 |
+
"model.layers.7.mlp.shared_experts.down_proj",
|
| 146 |
+
"model.layers.8.mlp.shared_experts.gate_proj",
|
| 147 |
+
"model.layers.8.mlp.shared_experts.up_proj",
|
| 148 |
+
"model.layers.8.mlp.shared_experts.down_proj",
|
| 149 |
+
"model.layers.9.mlp.shared_experts.gate_proj",
|
| 150 |
+
"model.layers.9.mlp.shared_experts.up_proj",
|
| 151 |
+
"model.layers.9.mlp.shared_experts.down_proj",
|
| 152 |
+
"model.layers.10.mlp.shared_experts.gate_proj",
|
| 153 |
+
"model.layers.10.mlp.shared_experts.up_proj",
|
| 154 |
+
"model.layers.10.mlp.shared_experts.down_proj",
|
| 155 |
+
"model.layers.11.mlp.shared_experts.gate_proj",
|
| 156 |
+
"model.layers.11.mlp.shared_experts.up_proj",
|
| 157 |
+
"model.layers.11.mlp.shared_experts.down_proj",
|
| 158 |
+
"model.layers.12.mlp.shared_experts.gate_proj",
|
| 159 |
+
"model.layers.12.mlp.shared_experts.up_proj",
|
| 160 |
+
"model.layers.12.mlp.shared_experts.down_proj",
|
| 161 |
+
"model.layers.13.mlp.shared_experts.gate_proj",
|
| 162 |
+
"model.layers.13.mlp.shared_experts.up_proj",
|
| 163 |
+
"model.layers.13.mlp.shared_experts.down_proj",
|
| 164 |
+
"model.layers.14.mlp.shared_experts.gate_proj",
|
| 165 |
+
"model.layers.14.mlp.shared_experts.up_proj",
|
| 166 |
+
"model.layers.14.mlp.shared_experts.down_proj",
|
| 167 |
+
"model.layers.15.mlp.shared_experts.gate_proj",
|
| 168 |
+
"model.layers.15.mlp.shared_experts.up_proj",
|
| 169 |
+
"model.layers.15.mlp.shared_experts.down_proj",
|
| 170 |
+
"model.layers.16.mlp.shared_experts.gate_proj",
|
| 171 |
+
"model.layers.16.mlp.shared_experts.up_proj",
|
| 172 |
+
"model.layers.16.mlp.shared_experts.down_proj",
|
| 173 |
+
"model.layers.17.mlp.shared_experts.gate_proj",
|
| 174 |
+
"model.layers.17.mlp.shared_experts.up_proj",
|
| 175 |
+
"model.layers.17.mlp.shared_experts.down_proj",
|
| 176 |
+
"model.layers.18.mlp.shared_experts.gate_proj",
|
| 177 |
+
"model.layers.18.mlp.shared_experts.up_proj",
|
| 178 |
+
"model.layers.18.mlp.shared_experts.down_proj",
|
| 179 |
+
"model.layers.19.mlp.shared_experts.gate_proj",
|
| 180 |
+
"model.layers.19.mlp.shared_experts.up_proj",
|
| 181 |
+
"model.layers.19.mlp.shared_experts.down_proj",
|
| 182 |
+
"model.layers.20.mlp.shared_experts.gate_proj",
|
| 183 |
+
"model.layers.20.mlp.shared_experts.up_proj",
|
| 184 |
+
"model.layers.20.mlp.shared_experts.down_proj",
|
| 185 |
+
"model.layers.21.mlp.shared_experts.gate_proj",
|
| 186 |
+
"model.layers.21.mlp.shared_experts.up_proj",
|
| 187 |
+
"model.layers.21.mlp.shared_experts.down_proj",
|
| 188 |
+
"model.layers.22.mlp.shared_experts.gate_proj",
|
| 189 |
+
"model.layers.22.mlp.shared_experts.up_proj",
|
| 190 |
+
"model.layers.22.mlp.shared_experts.down_proj",
|
| 191 |
+
"model.layers.23.mlp.shared_experts.gate_proj",
|
| 192 |
+
"model.layers.23.mlp.shared_experts.up_proj",
|
| 193 |
+
"model.layers.23.mlp.shared_experts.down_proj",
|
| 194 |
+
"model.layers.24.mlp.shared_experts.gate_proj",
|
| 195 |
+
"model.layers.24.mlp.shared_experts.up_proj",
|
| 196 |
+
"model.layers.24.mlp.shared_experts.down_proj",
|
| 197 |
+
"model.layers.25.mlp.shared_experts.gate_proj",
|
| 198 |
+
"model.layers.25.mlp.shared_experts.up_proj",
|
| 199 |
+
"model.layers.25.mlp.shared_experts.down_proj",
|
| 200 |
+
"model.layers.26.mlp.shared_experts.gate_proj",
|
| 201 |
+
"model.layers.26.mlp.shared_experts.up_proj",
|
| 202 |
+
"model.layers.26.mlp.shared_experts.down_proj",
|
| 203 |
+
"model.layers.27.mlp.shared_experts.gate_proj",
|
| 204 |
+
"model.layers.27.mlp.shared_experts.up_proj",
|
| 205 |
+
"model.layers.27.mlp.shared_experts.down_proj",
|
| 206 |
+
"model.layers.28.mlp.shared_experts.gate_proj",
|
| 207 |
+
"model.layers.28.mlp.shared_experts.up_proj",
|
| 208 |
+
"model.layers.28.mlp.shared_experts.down_proj",
|
| 209 |
+
"model.layers.29.mlp.shared_experts.gate_proj",
|
| 210 |
+
"model.layers.29.mlp.shared_experts.up_proj",
|
| 211 |
+
"model.layers.29.mlp.shared_experts.down_proj",
|
| 212 |
+
"model.layers.30.mlp.shared_experts.gate_proj",
|
| 213 |
+
"model.layers.30.mlp.shared_experts.up_proj",
|
| 214 |
+
"model.layers.30.mlp.shared_experts.down_proj",
|
| 215 |
+
"model.layers.31.mlp.shared_experts.gate_proj",
|
| 216 |
+
"model.layers.31.mlp.shared_experts.up_proj",
|
| 217 |
+
"model.layers.31.mlp.shared_experts.down_proj",
|
| 218 |
+
"model.layers.32.mlp.shared_experts.gate_proj",
|
| 219 |
+
"model.layers.32.mlp.shared_experts.up_proj",
|
| 220 |
+
"model.layers.32.mlp.shared_experts.down_proj",
|
| 221 |
+
"model.layers.33.mlp.shared_experts.gate_proj",
|
| 222 |
+
"model.layers.33.mlp.shared_experts.up_proj",
|
| 223 |
+
"model.layers.33.mlp.shared_experts.down_proj",
|
| 224 |
+
"model.layers.34.mlp.shared_experts.gate_proj",
|
| 225 |
+
"model.layers.34.mlp.shared_experts.up_proj",
|
| 226 |
+
"model.layers.34.mlp.shared_experts.down_proj",
|
| 227 |
+
"model.layers.35.mlp.shared_experts.gate_proj",
|
| 228 |
+
"model.layers.35.mlp.shared_experts.up_proj",
|
| 229 |
+
"model.layers.35.mlp.shared_experts.down_proj",
|
| 230 |
+
"model.layers.36.mlp.shared_experts.gate_proj",
|
| 231 |
+
"model.layers.36.mlp.shared_experts.up_proj",
|
| 232 |
+
"model.layers.36.mlp.shared_experts.down_proj",
|
| 233 |
+
"model.layers.37.mlp.shared_experts.gate_proj",
|
| 234 |
+
"model.layers.37.mlp.shared_experts.up_proj",
|
| 235 |
+
"model.layers.37.mlp.shared_experts.down_proj",
|
| 236 |
+
"model.layers.38.mlp.shared_experts.gate_proj",
|
| 237 |
+
"model.layers.38.mlp.shared_experts.up_proj",
|
| 238 |
+
"model.layers.38.mlp.shared_experts.down_proj",
|
| 239 |
+
"model.layers.39.mlp.shared_experts.gate_proj",
|
| 240 |
+
"model.layers.39.mlp.shared_experts.up_proj",
|
| 241 |
+
"model.layers.39.mlp.shared_experts.down_proj",
|
| 242 |
+
"model.layers.40.mlp.shared_experts.gate_proj",
|
| 243 |
+
"model.layers.40.mlp.shared_experts.up_proj",
|
| 244 |
+
"model.layers.40.mlp.shared_experts.down_proj",
|
| 245 |
+
"model.layers.41.mlp.shared_experts.gate_proj",
|
| 246 |
+
"model.layers.41.mlp.shared_experts.up_proj",
|
| 247 |
+
"model.layers.41.mlp.shared_experts.down_proj",
|
| 248 |
+
"model.layers.42.mlp.shared_experts.gate_proj",
|
| 249 |
+
"model.layers.42.mlp.shared_experts.up_proj",
|
| 250 |
+
"model.layers.42.mlp.shared_experts.down_proj",
|
| 251 |
+
"model.layers.43.mlp.shared_experts.gate_proj",
|
| 252 |
+
"model.layers.43.mlp.shared_experts.up_proj",
|
| 253 |
+
"model.layers.43.mlp.shared_experts.down_proj",
|
| 254 |
+
"model.layers.44.mlp.shared_experts.gate_proj",
|
| 255 |
+
"model.layers.44.mlp.shared_experts.up_proj",
|
| 256 |
+
"model.layers.44.mlp.shared_experts.down_proj",
|
| 257 |
+
"model.layers.45.mlp.shared_experts.gate_proj",
|
| 258 |
+
"model.layers.45.mlp.shared_experts.up_proj",
|
| 259 |
+
"model.layers.45.mlp.shared_experts.down_proj",
|
| 260 |
+
"model.layers.46.mlp.shared_experts.gate_proj",
|
| 261 |
+
"model.layers.46.mlp.shared_experts.up_proj",
|
| 262 |
+
"model.layers.46.mlp.shared_experts.down_proj",
|
| 263 |
+
"lm_head"
|
| 264 |
+
],
|
| 265 |
+
"kv_cache_scheme": null,
|
| 266 |
+
"quant_method": "compressed-tensors",
|
| 267 |
+
"quantization_status": "compressed",
|
| 268 |
+
"sparsity_config": {},
|
| 269 |
+
"transform_config": {},
|
| 270 |
+
"version": "0.12.3.a20251114"
|
| 271 |
+
},
|
| 272 |
+
"rms_norm_eps": 1e-05,
|
| 273 |
+
"rope_interleave": true,
|
| 274 |
+
"rope_parameters": {
|
| 275 |
+
"partial_rotary_factor": 1.0,
|
| 276 |
+
"rope_theta": 1000000,
|
| 277 |
+
"rope_type": "default"
|
| 278 |
+
},
|
| 279 |
+
"routed_scaling_factor": 1.8,
|
| 280 |
+
"tie_word_embeddings": false,
|
| 281 |
+
"topk_group": 1,
|
| 282 |
+
"topk_method": "noaux_tc",
|
| 283 |
+
"transformers_version": "5.0.0.dev0",
|
| 284 |
+
"use_cache": true,
|
| 285 |
+
"v_head_dim": 256,
|
| 286 |
+
"vocab_size": 154880
|
| 287 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
154820,
|
| 5 |
+
154827,
|
| 6 |
+
154829
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 154820,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"transformers_version": "5.0.0.dev0"
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4beb7ced67b93a9d1c66be553717a36f1bcd419144935e9313b7be987d70917e
|
| 3 |
+
size 18513468944
|
recipe.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default_stage:
|
| 2 |
+
default_modifiers:
|
| 3 |
+
AWQModifier:
|
| 4 |
+
config_groups:
|
| 5 |
+
group_0:
|
| 6 |
+
targets: [Linear]
|
| 7 |
+
weights:
|
| 8 |
+
num_bits: 4
|
| 9 |
+
type: int
|
| 10 |
+
symmetric: true
|
| 11 |
+
group_size: 32
|
| 12 |
+
strategy: group
|
| 13 |
+
block_structure: null
|
| 14 |
+
dynamic: false
|
| 15 |
+
actorder: null
|
| 16 |
+
scale_dtype: null
|
| 17 |
+
zp_dtype: null
|
| 18 |
+
observer: mse
|
| 19 |
+
observer_kwargs: {}
|
| 20 |
+
input_activations: null
|
| 21 |
+
output_activations: null
|
| 22 |
+
format: null
|
| 23 |
+
targets: [Linear]
|
| 24 |
+
ignore: [lm_head, model.embed_tokens, 're:.*input_layernorm$', 're:.*post_attention_layernorm$',
|
| 25 |
+
model.norm, 're:.*shared_experts.*', 're:model[.]layers[.]0[.].*', 're:.*mlp[.]gate$']
|
| 26 |
+
mappings:
|
| 27 |
+
- smooth_layer: re:.*input_layernorm$
|
| 28 |
+
balance_layers: ['re:.*(q_a_proj|q_proj)$', 're:.*kv_a_proj_with_mqa$']
|
| 29 |
+
- smooth_layer: re:.*q_a_layernorm$
|
| 30 |
+
balance_layers: ['re:.*q_b_proj$']
|
| 31 |
+
- smooth_layer: re:.*kv_a_layernorm$
|
| 32 |
+
balance_layers: ['re:.*kv_b_proj$']
|
| 33 |
+
- smooth_layer: re:.*post_attention_layernorm$
|
| 34 |
+
balance_layers: ['re:.*gate_proj$', 're:.*up_proj$', 're:.*gate_up_proj$']
|
| 35 |
+
- smooth_layer: re:.*up_proj$
|
| 36 |
+
balance_layers: ['re:.*down_proj$']
|
| 37 |
+
- smooth_layer: re:.*gate_up_proj$
|
| 38 |
+
balance_layers: ['re:.*down_proj$']
|
| 39 |
+
duo_scaling: true
|
| 40 |
+
n_grid: 20
|
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": false,
|
| 27 |
+
"model_max_length": 128000,
|
| 28 |
+
"model_specific_special_tokens": {},
|
| 29 |
+
"pad_token": "<|endoftext|>",
|
| 30 |
+
"padding_side": "left",
|
| 31 |
+
"remove_space": false,
|
| 32 |
+
"tokenizer_class": "TokenizersBackend"
|
| 33 |
+
}
|