Instructions to use QuantTrio/GLM-4.7-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantTrio/GLM-4.7-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantTrio/GLM-4.7-AWQ") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("QuantTrio/GLM-4.7-AWQ") model = AutoModelForCausalLM.from_pretrained("QuantTrio/GLM-4.7-AWQ", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuantTrio/GLM-4.7-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantTrio/GLM-4.7-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantTrio/GLM-4.7-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantTrio/GLM-4.7-AWQ
- SGLang
How to use QuantTrio/GLM-4.7-AWQ 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 "QuantTrio/GLM-4.7-AWQ" \ --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": "QuantTrio/GLM-4.7-AWQ", "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 "QuantTrio/GLM-4.7-AWQ" \ --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": "QuantTrio/GLM-4.7-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use QuantTrio/GLM-4.7-AWQ with Docker Model Runner:
docker model run hf.co/QuantTrio/GLM-4.7-AWQ
Add files using upload-large-folder tool
Browse filesFiles changed (50)
- .mdlAdded
- .mscAdded
- .mvAdded+1
- README.mdAdded+287
- chat_template.jinjaAdded+86
- config.jsonAdded+52
- configuration.jsonAdded+1
- generation_config.jsonAdded+11
- model-00001-of-00065.safetensorsAdded+3
- model-00002-of-00065.safetensorsAdded+3
- model-00003-of-00065.safetensorsAdded+3
- model-00004-of-00065.safetensorsAdded+3
- model-00005-of-00065.safetensorsAdded+3
- model-00006-of-00065.safetensorsAdded+3
- model-00007-of-00065.safetensorsAdded+3
- model-00008-of-00065.safetensorsAdded+3
- model-00009-of-00065.safetensorsAdded+3
- model-00010-of-00065.safetensorsAdded+3
- model-00011-of-00065.safetensorsAdded+3
- model-00012-of-00065.safetensorsAdded+3
- model-00013-of-00065.safetensorsAdded+3
- model-00014-of-00065.safetensorsAdded+3
- model-00015-of-00065.safetensorsAdded+3
- model-00016-of-00065.safetensorsAdded+3
- model-00017-of-00065.safetensorsAdded+3
- model-00018-of-00065.safetensorsAdded+3
- model-00019-of-00065.safetensorsAdded+3
- model-00020-of-00065.safetensorsAdded+3
- model-00021-of-00065.safetensorsAdded+3
- model-00022-of-00065.safetensorsAdded+3
- model-00023-of-00065.safetensorsAdded+3
- model-00024-of-00065.safetensorsAdded+3
- model-00025-of-00065.safetensorsAdded+3
- model-00026-of-00065.safetensorsAdded+3
- model-00027-of-00065.safetensorsAdded+3
- model-00028-of-00065.safetensorsAdded+3
- model-00029-of-00065.safetensorsAdded+3
- model-00030-of-00065.safetensorsAdded+3
- model-00031-of-00065.safetensorsAdded+3
- model-00032-of-00065.safetensorsAdded+3
- model-00033-of-00065.safetensorsAdded+3
- model-00034-of-00065.safetensorsAdded+3
- model-00035-of-00065.safetensorsAdded+3
- model-00036-of-00065.safetensorsAdded+3
- model-00038-of-00065.safetensorsAdded+3
- model-00039-of-00065.safetensorsAdded+3
- model-00040-of-00065.safetensorsAdded+3
- model-00041-of-00065.safetensorsAdded+3
- model-00042-of-00065.safetensorsAdded+3
- model-00044-of-00065.safetensorsAdded+3
1Revision:master,CreatedAt:1766543923123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287---license: mitlibrary_name: transformerspipeline_tag: text-generationtags:- vLLM- AWQbase_model: - ZhipuAI/GLM-4.7base_model_relation: quantized
---# GLM-4.7-AWQBase model: [ZhipuAI/GLM-4.7](https://www.modelscope.cn/models/ZhipuAI/GLM-4.7)
### 【Dependencies / Installation】
```pythonvllm==0.14.0```
As of **2025-12-24**, make sure your system has cuda12.8 installed.
Then, create a fresh Python environment (e.g. python3.12 venv) and run:```bashpip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly```
### 【vLLM Startup Command】<i>Note: When launching with TP=8, include `--enable-expert-parallel`; otherwise the expert tensors couldn’t be evenly sharded across GPU devices.</i>
```export VLLM_USE_DEEP_GEMM=0export VLLM_USE_FLASHINFER_MOE_FP16=1export VLLM_USE_FLASHINFER_SAMPLER=0export OMP_NUM_THREADS=4
vllm serve \ __YOUR_PATH__/tclf90/GLM-4.7-AWQ \ --served-model-name MY_MODEL_NAME \ --swap-space 16 \ --max-num-seqs 32 \ --max-model-len 32768 \ --gpu-memory-utilization 0.9 \ --tensor-parallel-size 8 \ --enable-expert-parallel \ --speculative-config.method mtp \ --speculative-config.num_speculative_tokens 1 \ --tool-call-parser glm47 \ --reasoning-parser glm45 \ --enable-auto-tool-choice \ --trust-remote-code \ --host 0.0.0.0 \ --port 8000```
### 【Logs】```2025-12-241. Initial commit```
### 【Model Files】| File Size | Last Updated ||-----------|--------------|| `181 GiB` | `2025-12-24` |
### 【Model Download】```pythonfrom modelscope import snapshot_downloadsnapshot_download('tclf90/GLM-4.7-AWQ', cache_dir="your_local_path")```
### 【Overview】# GLM-4.7
<div align="center"><img src=https://raw.githubusercontent.com/zai-org/GLM-4.5/refs/heads/main/resources/logo.svg width="15%"/></div><p align="center"> 👋 Join our <a href="https://discord.gg/QR7SARHRxK" target="_blank">Discord</a> community. <br> 📖 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>. <br> 📍 Use GLM-4.7 API services on <a href="https://docs.z.ai/guides/llm/glm-4.7">Z.ai API Platform. </a> <br> 👉 One click to <a href="https://chat.z.ai">GLM-4.7</a>.</p>
## Introduction
**GLM-4.7**, your new coding partner, is coming with the following features:
- **Core Coding**: GLM-4.7 brings clear gains, compared to its predecessor GLM-4.6, in multilingual agentic coding and terminal-based tasks, including (73.8%, +5.8%) on SWE-bench, (66.7%, +12.9%) on SWE-bench Multilingual, and (41%, +16.5%) on Terminal Bench 2.0. GLM-4.7 also supports thinking before acting, with significant improvements on complex tasks in mainstream agent frameworks such as Claude Code, Kilo Code, Cline, and Roo Code.- **Vibe Coding**: GLM-4.7 takes a big step forward in improving UI quality. It produces cleaner, more modern webpages and generates better-looking slides with more accurate layout and sizing.- **Tool Using**: GLM-4.7 achieves significantly improvements in Tool using. Significant better performances can be seen on benchmarks such as τ^2-Bench and on web browsing via BrowseComp.- **Complex Reasoning**: GLM-4.7 delivers a substantial boost in mathematical and reasoning capabilities, achieving (42.8%, +12.4%) on the HLE (Humanity’s Last Exam) benchmark compared to GLM-4.6.
You can also see significant improvements in many other scenarios such as chat, creative writing, and role-play scenario.

**Performances on Benchmarks.** More detailed comparisons of GLM-4.7 with other models GPT-5-High, GPT-5.1-High, Claude Sonnet 4.5, Gemini 3.0 Pro, DeepSeek-V3.2, Kimi K2 Thinking, on 17 benchmarks (including 8 reasoning, 5 coding, and 3 agents benchmarks) can be seen in the below table.
| Benchmark | GLM-4.7 | GLM-4.6 | Kimi K2 Thinking | DeepSeek-V3.2 | Gemini 3.0 Pro | Claude Sonnet 4.5 | GPT-5-High | GPT-5.1-High ||:-------------------------------|:-------:|:-------:|:----------------:|:-------------:|:--------------:|:-----------------:|:----------:|:------------:|| MMLU-Pro | 84.3 | 83.2 | 84.6 | 85.0 | 90.1 | 88.2 | 87.5 | 87.0 || GPQA-Diamond | 85.7 | 81.0 | 84.5 | 82.4 | 91.9 | 83.4 | 85.7 | 88.1 || HLE | 24.8 | 17.2 | 23.9 | 25.1 | 37.5 | 13.7 | 26.3 | 25.7 || HLE (w/ Tools) | 42.8 | 30.4 | 44.9 | 40.8 | 45.8 | 32.0 | 35.2 | 42.7 || AIME 2025 | 95.7 | 93.9 | 94.5 | 93.1 | 95.0 | 87.0 | 94.6 | 94.0 || HMMT Feb. 2025 | 97.1 | 89.2 | 89.4 | 92.5 | 97.5 | 79.2 | 88.3 | 96.3 || HMMT Nov. 2025 | 93.5 | 87.7 | 89.2 | 90.2 | 93.3 | 81.7 | 89.2 | - || IMOAnswerBench | 82.0 | 73.5 | 78.6 | 78.3 | 83.3 | 65.8 | 76.0 | - || LiveCodeBench-v6 | 84.9 | 82.8 | 83.1 | 83.3 | 90.7 | 64.0 | 87.0 | 87.0 || SWE-bench Verified | 73.8 | 68.0 | 71.3 | 73.1 | 76.2 | 77.2 | 74.9 | 76.3 || SWE-bench Multilingual | 66.7 | 53.8 | 61.1 | 70.2 | - | 68.0 | 55.3 | - || Terminal Bench Hard | 33.3 | 23.6 | 30.6 | 35.4 | 39.0 | 33.3 | 30.5 | 43.0 || Terminal Bench 2.0 | 41.0 | 24.5 | 35.7 | 46.4 | 54.2 | 42.8 | 35.2 | 47.6 || BrowseComp | 52.0 | 45.1 | - | 51.4 | - | 24.1 | 54.9 | 50.8 || BrowseComp (w/ Context Manage) | 67.5 | 57.5 | 60.2 | 67.6 | 59.2 | - | - | - || BrowseComp-Zh | 66.6 | 49.5 | 62.3 | 65.0 | - | 42.4 | 63.0 | - || τ²-Bench | 87.4 | 75.2 | 74.3 | 85.3 | 90.7 | 87.2 | 82.4 | 82.7 |
> **Coding:** AGI is a long journey, and benchmarks are only one way to evaluate performance. While the metrics provide necessary checkpoints, the most important thing is still how it *feels*. True intelligence isn't just about acing a test or processing data faster; ultimately, the success of AGI will be measured by how seamlessly it integrates into our lives-**"coding"** this time.
## Getting started with GLM-4.7
### Interleaved Thinking & Preserved Thinking

GLM-4.7 further enhances **Interleaved Thinking** (a feature introduced since GLM-4.5) and introduces **Preserved Thinking** and **Turn-level Thinking**. By thinking between actions and staying consistent across turns, it makes complex tasks more stable and more controllable:- **Interleaved Thinking**: The model thinks before every response and tool calling, improving instruction following and the quality of generation.- **Preserved Thinking**: In coding agent scenarios, the model automatically retains all thinking blocks across multi-turn conversations, reusing the existing reasoning instead of re-deriving from scratch. This reduces information loss and inconsistencies, and is well-suited for long-horizon, complex tasks.- **Turn-level Thinking**: The model supports per-turn control over reasoning within a session—disable thinking for lightweight requests to reduce latency/cost, enable it for complex tasks to improve accuracy and stability. More details: https://docs.z.ai/guides/capabilities/thinking-mode
### Evaluation Parameters
**Default Settings (Most Tasks)**
* temperature: `1.0`* top-p: `0.95`* max new tokens: `131072`
For multi-turn agentic tasks (τ²-Bench and Terminal Bench 2), please turn on [Preserved Thinking mode](https://docs.z.ai/guides/capabilities/thinking-mode).
**Terminal Bench, SWE Bench Verified**
* temperature: `0.7`* top-p: `1.0`* max new tokens: `16384`
**τ^2-Bench**
* Temperature: `0`* Max new tokens: `16384`
For τ^2-Bench evaluation, we added an additional prompt to the Retail and Telecom user interaction to avoid failure modes caused by users ending the interaction incorrectly. For the Airline domain, we applied the domain fixes as proposed in the [Claude Opus 4.5](https://assets.anthropic.com/m/64823ba7485345a7/Claude-Opus-4-5-System-Card.pdf) release report.
## Serve GLM-4.7 Locally
For local deployment, GLM-4.7 supports inference frameworks including vLLM and SGLang. Comprehensive deployment instructions are available in the official [Github](https://github.com/zai-org/GLM-4.5) repository.
vLLM and SGLang only support GLM-4.7 on their main branches. you can use their official docker images for inference.
### vLLM
Using Docker as:
```shelldocker pull vllm/vllm-openai:nightly ```
or using pip (must use pypi.org as the index url):
```shellpip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly```
### SGLang
Using Docker as:
```shelldocker pull lmsysorg/sglang:dev```
or using pip install sglang from source.
### transformers
using with transformers as `4.57.3` and then run:
```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_PATH = "zai-org/GLM-4.7"messages = [{"role": "user", "content": "hello"}]tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)inputs = tokenizer.apply_chat_template( messages, tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt",)model = AutoModelForCausalLM.from_pretrained( pretrained_model_name_or_path=MODEL_PATH, torch_dtype=torch.bfloat16, device_map="auto",)inputs = inputs.to(model.device)generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)output_text = tokenizer.decode(generated_ids[0][inputs.input_ids.shape[1] :])print(output_text)```
### vLLM
```shellvllm serve zai-org/GLM-4.7-FP8 \ --tensor-parallel-size 4 \ --speculative-config.method mtp \ --speculative-config.num_speculative_tokens 1 \ --tool-call-parser glm47 \ --reasoning-parser glm45 \ --enable-auto-tool-choice \ --served-model-name glm-4.7-fp8```
### SGLang
```shellpython3 -m sglang.launch_server \ --model-path zai-org/GLM-4.7-FP8 \ --tp-size 8 \ --tool-call-parser glm47 \ --reasoning-parser glm45 \ --speculative-algorithm EAGLE \ --speculative-num-steps 3 \ --speculative-eagle-topk 1 \ --speculative-num-draft-tokens 4 \ --mem-fraction-static 0.8 \ --served-model-name glm-4.7-fp8 \ --host 0.0.0.0 \ --port 8000```
### Parameter Instructions
- For agentic tasks of GLM-4.7, please turn on [Preserved Thinking mode](https://docs.z.ai/guides/capabilities/thinking-mode) by adding the following config (only sglang support): ``` "chat_template_kwargs": { "enable_thinking": true, "clear_thinking": false } ``` - When using `vLLM` and `SGLang`, thinking mode is enabled by default when sending requests. If you want to disable the thinking switch, you need to add the `extra_body={"chat_template_kwargs": {"enable_thinking": False}}` parameter.- Both support tool calling. Please use OpenAI-style tool description format for calls.
## Citation
If you find our work useful in your research, please consider citing the following paper:
```bibtex@misc{5team2025glm45agenticreasoningcoding, title={GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models}, 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}, year={2025}, eprint={2508.06471}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2508.06471}, }
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586[gMASK]<sop>{%- if tools -%}<|system|># Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:<tools>{% for tool in tools %}{{ tool | tojson(ensure_ascii=False) }}{% endfor %}</tools>
For each function call, output the function name and arguments within the following XML format:<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 -%}{%- macro visible_text(content) -%} {%- if content is string -%} {{- content }} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is mapping and item.type == 'text' -%} {{- item.text }} {%- elif item is string -%} {{- item }} {%- endif -%} {%- endfor -%} {%- else -%} {{- content }} {%- endif -%}{%- endmacro -%}{%- set ns = namespace(last_user_index=-1) %}{%- for m in messages %} {%- if m.role == 'user' %} {% set ns.last_user_index = loop.index0 -%} {%- endif %}{%- endfor %}{% for m in messages %}{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}{%- elif m.role == 'assistant' -%}<|assistant|>{%- set reasoning_content = '' %}{%- set content = visible_text(m.content) %}{%- if m.reasoning_content is string %} {%- set reasoning_content = m.reasoning_content %}{%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %}{%- endif %}{%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content -%}{{ '<think>' + reasoning_content.strip() + '</think>'}}{%- else -%}{{ '</think>' }}{%- endif -%}{%- if content.strip() -%}{{ content.strip() }}{%- endif -%}{% if m.tool_calls %}{% for tc in m.tool_calls %}{%- if tc.function %} {%- set tc = tc.function %}{%- endif %}{{- '<tool_call>' + tc.name -}}{% 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 %}{% endif %}{%- elif m.role == 'tool' -%}{%- if m.content is string -%}{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|observation|>' }}{%- endif %}{{- '<tool_response>' }}{{- m.content }}{{- '</tool_response>' }}{%- else -%}<|observation|>{% for tr in m.content %}<tool_response>{{ tr.output if tr.output is defined else tr }}</tool_response>{% endfor -%}{% endif -%}{%- elif m.role == 'system' -%}<|system|>{{ visible_text(m.content) }}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%} <|assistant|>{{- '</think>' if (enable_thinking is defined and not enable_thinking) else '<think>' -}}{%- endif -%}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ "name_or_path": "tclf90/GLM-4.7-AWQ", "architectures": [ "Glm4MoeForCausalLM" ], "attention_bias": true, "attention_dropout": 0.0, "pad_token_id": 151329, "eos_token_id": [ 151329, 151336, 151338 ], "head_dim": 128, "hidden_act": "silu", "hidden_size": 5120, "partial_rotary_factor": 0.5, "initializer_range": 0.02, "intermediate_size": 12288, "max_position_embeddings": 202752, "model_type": "glm4_moe", "moe_intermediate_size": 1536, "norm_topk_prob": true, "num_attention_heads": 96, "n_group": 1, "topk_group": 1, "n_routed_experts": 160, "n_shared_experts": 1, "routed_scaling_factor": 2.5, "num_experts_per_tok": 8, "first_k_dense_replace": 3, "num_hidden_layers": 92, "num_key_value_heads": 8, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 1000000, "num_nextn_predict_layers": 1, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.54.0", "use_cache": true, "use_qk_norm": true, "vocab_size": 151552, "quantization_config": { "quant_method": "awq", "bits": 4, "group_size": 128, "version": "gemm", "zero_point": true, "modules_to_not_convert": ["embed_tokens", "shared_experts", "shared_head", "lm_head"] }}1{"framework":"Pytorch","task":"text-generation"}1234567891011{ "_from_model_config": true, "eos_token_id": [ 151329, 151336, 151338 ], "pad_token_id": 151329, "temperature": 1.0, "transformers_version": "4.56.2"}123version https://git-lfs.github.com/spec/v1oid sha256:55d35b2f8764ee4b1c6045e1d698af4b05b4fa42501b26f8600bc0b9491a11f1size 2998504328123version https://git-lfs.github.com/spec/v1oid sha256:cad4b244dcc07483c3d337fec6c2174c570b6f684e77ce3c717cc07e78de55b3size 2996328520123version https://git-lfs.github.com/spec/v1oid sha256:e0ad826315b3656bc0cffce1b33fabf524ceaf0c5411bb6e7dbaca04a8dda30dsize 2997528648123version https://git-lfs.github.com/spec/v1oid sha256:ad5edaca5fb969a98187c284d34fb22672f53bf4a4514857db1325570cc1df3esize 2996328616123version https://git-lfs.github.com/spec/v1oid sha256:0f226aa7aca5322a9b9868a6c900af8df025e0592c732845a7134575082257f7size 2997528456123version https://git-lfs.github.com/spec/v1oid sha256:3964de37b82a02d5ffa023b886bbba5d14c6bd696714e45ba47a518fac83a30asize 2996329816123version https://git-lfs.github.com/spec/v1oid sha256:ae0187125d3cdf3d36997adc7c64a41fdecc2b0fb3d091c131d75206dc9ba584size 2997530344123version https://git-lfs.github.com/spec/v1oid sha256:615b1679e84aeeba6344e86daed42ea3cc084ae5d887738354d6059fcdfb1c92size 2996331128123version https://git-lfs.github.com/spec/v1oid sha256:67c164fc48a338ef3303729de28b53c93fba2c299d31be38ee64e9c716729512size 2986601424123version https://git-lfs.github.com/spec/v1oid sha256:b3925d4e6c495c5baef2b56a3640f195b28fc8fd4aa6ecfddb6a59c04a9ddae9size 2999087920123version https://git-lfs.github.com/spec/v1oid sha256:5c4659b6fbbcfc3d334f4209c4e1ffecc8d0ec66eb01d9119e09f32f8208f7c9size 2996330648123version https://git-lfs.github.com/spec/v1oid sha256:4a807620582b746a074e47c47f73cbf8125ceb53b9a3cfa6dd9b73e7937a443esize 2997530640123version https://git-lfs.github.com/spec/v1oid sha256:5479e90626597ad3acb0b5454f801c9de60ce22058b1705861f63dfb719aad0esize 2996330840123version https://git-lfs.github.com/spec/v1oid sha256:9589a7c022757a18db825616e6d1bf8043f3ae5885770469786f98a13ddbbde9size 2997530464123version https://git-lfs.github.com/spec/v1oid sha256:ec2cb2b14a8c1df9d6b923ae6f785fec9ba690db596bbaa4b41ae20384a4e728size 2996331016123version https://git-lfs.github.com/spec/v1oid sha256:4c62e32e88c8e18bbd73308aff531ffe00da18505c7bc839278bdad09c4e9443size 2997530280123version https://git-lfs.github.com/spec/v1oid sha256:2448e0f9a305110b1fa3816cb60a4c10c962adf1361a75f26637ad7f7d0fafc8size 2996331200123version https://git-lfs.github.com/spec/v1oid sha256:f65f63491c924ad87ee16af89423d9c4deb09e1c22f5b4fc85fef4c5143ea4b9size 2996330712123version https://git-lfs.github.com/spec/v1oid sha256:f1c2ae90e97997f5114a2dbd453115a6d3cb54ddff3bb419b3d21837a94cd97esize 2997530824123version https://git-lfs.github.com/spec/v1oid sha256:61740f7bb23abd1b0668b78fb556e58cd768dd99d52f1538e16fa09fa9fca343size 2996330704123version https://git-lfs.github.com/spec/v1oid sha256:15e9037312193b1bbf83fba2e9b12e496bfc61cf6d3df37487a46d1e0e23e416size 2997530584123version https://git-lfs.github.com/spec/v1oid sha256:879d09d36ba0a40559f354a2d0d9d93e79446c3bd9290fda1a00689ff4259f30size 2996330880123version https://git-lfs.github.com/spec/v1oid sha256:daf1a19af89c572d8be166ef4c21b7cc98105a7b187bf0cfc7694013670df42dsize 2997530408123version https://git-lfs.github.com/spec/v1oid sha256:abf2a1c2c245ea4bdece8a05100400d12c857c1ef715917a4798a3fc010531cdsize 2996331072123version https://git-lfs.github.com/spec/v1oid sha256:16350ec6ae1b8868763bc139cb76173c046ed6f4fb3bdc352a85e584ee105bdcsize 2997530232123version https://git-lfs.github.com/spec/v1oid sha256:1b2ccd5205f9c0a09b24d036f7102128574b510022b32f00a36a94f1c8277e5dsize 2996331240123version https://git-lfs.github.com/spec/v1oid sha256:15fce2ec5951f2360f61ceda49ef3d7a837850ee4e61cbf296bed53de8212d71size 2996330648123version https://git-lfs.github.com/spec/v1oid sha256:8cc8f9135d9c7b164873ebcdb42400fe492fc1e313a807748a592af6547ef3fdsize 2997530712123version https://git-lfs.github.com/spec/v1oid sha256:1e85796100d267478430bfc2b2718bde7a5f41dfb65f28c54c901564d78f379bsize 2996330768123version https://git-lfs.github.com/spec/v1oid sha256:70e1084a79a2f691d9aa40c7e042e91292d08338e83e4f0a6f92d24a334c79aesize 2997530528123version https://git-lfs.github.com/spec/v1oid sha256:98aaba80d12f7dae5b6412240030ad1627bf9a4ed07860644e274456b0dcc5e6size 2996330944123version https://git-lfs.github.com/spec/v1oid sha256:3890f438f8c193e1db61d380082bffe52c2ab816707b436afc8aa3d32ea1590csize 2997530344123version https://git-lfs.github.com/spec/v1oid sha256:180169a0965fa962d87bd71ec094aed5f84fe5b2ab85d964485bc21746653975size 2996331136123version https://git-lfs.github.com/spec/v1oid sha256:d91be18b3fcfef4fc2de3bfaa566f4c45e26a3f18257244b770abeb05168e94asize 2990687552123version https://git-lfs.github.com/spec/v1oid sha256:164eccef40af821d52f921bbd0ff53e2b1f1e4aafad1f3d723c61cd540a00cbbsize 2999087920123version https://git-lfs.github.com/spec/v1oid sha256:00048a831709189d5b3cee82aeddaeccf8019e7913163218408d42acd3d40c4asize 2996330648123version https://git-lfs.github.com/spec/v1oid sha256:5fe45f4e4bea295067f03c48964cd1bbd981e92810f197d3ab36e90fa8c92d2dsize 2996330840123version https://git-lfs.github.com/spec/v1oid sha256:b5b47ea81bc429992d812a5ada9517e712bf5d1524950d5004d0b2c66c71572fsize 2997530464123version https://git-lfs.github.com/spec/v1oid sha256:2e3c9772136bd6c14608987fa27ad059d9b4e85008bb00806a403799d4d005d3size 2996331016123version https://git-lfs.github.com/spec/v1oid sha256:9a74bbaec37f782ea5a514e3d9f9134c39aba0af7203e1194d1f25ab7b2a8ff6size 2997530280123version https://git-lfs.github.com/spec/v1oid sha256:380553bbaf4cb95b99183594f347721f40a33c6b43b35429ca503c833cbafbfesize 2996331200123version https://git-lfs.github.com/spec/v1oid sha256:49ad0bb532226575b60c72e988ed1799caf95be0ab7680b3f841d587455084c1size 2997530824.mdlAdded
.mscAdded
.mvAdded+1
README.mdAdded+287
chat_template.jinjaAdded+86
config.jsonAdded+52
configuration.jsonAdded+1
generation_config.jsonAdded+11
model-00001-of-00065.safetensorsAdded+3
model-00002-of-00065.safetensorsAdded+3
model-00003-of-00065.safetensorsAdded+3
model-00004-of-00065.safetensorsAdded+3
model-00005-of-00065.safetensorsAdded+3
model-00006-of-00065.safetensorsAdded+3
model-00007-of-00065.safetensorsAdded+3
model-00008-of-00065.safetensorsAdded+3
model-00009-of-00065.safetensorsAdded+3
model-00010-of-00065.safetensorsAdded+3
model-00011-of-00065.safetensorsAdded+3
model-00012-of-00065.safetensorsAdded+3
model-00013-of-00065.safetensorsAdded+3
model-00014-of-00065.safetensorsAdded+3
model-00015-of-00065.safetensorsAdded+3
model-00016-of-00065.safetensorsAdded+3
model-00017-of-00065.safetensorsAdded+3
model-00018-of-00065.safetensorsAdded+3
model-00019-of-00065.safetensorsAdded+3
model-00020-of-00065.safetensorsAdded+3
model-00021-of-00065.safetensorsAdded+3
model-00022-of-00065.safetensorsAdded+3
model-00023-of-00065.safetensorsAdded+3
model-00024-of-00065.safetensorsAdded+3
model-00025-of-00065.safetensorsAdded+3
model-00026-of-00065.safetensorsAdded+3
model-00027-of-00065.safetensorsAdded+3
model-00028-of-00065.safetensorsAdded+3
model-00029-of-00065.safetensorsAdded+3
model-00030-of-00065.safetensorsAdded+3
model-00031-of-00065.safetensorsAdded+3
model-00032-of-00065.safetensorsAdded+3
model-00033-of-00065.safetensorsAdded+3
model-00034-of-00065.safetensorsAdded+3
model-00035-of-00065.safetensorsAdded+3
model-00036-of-00065.safetensorsAdded+3
model-00038-of-00065.safetensorsAdded+3
model-00039-of-00065.safetensorsAdded+3
model-00040-of-00065.safetensorsAdded+3
model-00041-of-00065.safetensorsAdded+3
model-00042-of-00065.safetensorsAdded+3
model-00044-of-00065.safetensorsAdded+3