X

GLM-4.6

Information

# GLM-4.6

Join our Discord community.
Check out the GLM-4.6 technical blog, technical report(GLM-4.5), and Zhipu AI technical documentation.
Use GLM-4.6 API services on Z.ai API Platform.
One click to GLM-4.6.

## Model Introduction Compared with GLM-4.5, **GLM-4.6** brings several key improvements: * **Longer context window:** The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks. * **Superior coding performance:** The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. * **Advanced reasoning:** GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. * **More capable agents:** GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. * **Refined writing:** Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios. We evaluated GLM-4.6 across eight public benchmarks covering agents, reasoning, and coding. Results show clear gains over GLM-4.5, with GLM-4.6 also holding competitive advantages over leading domestic and international models such as **DeepSeek-V3.1-Terminus** and **Claude Sonnet 4**. ![bench](https://raw.githubusercontent.com/zai-org/GLM-4.5/refs/heads/main/resources/bench_glm46.png) ## Inference **Both GLM-4.5 and GLM-4.6 use the same inference method.** you can check our [github](https://github.com/zai-org/GLM-4.5) for more detail. ## Recommended Evaluation Parameters For general evaluations, we recommend using a **sampling temperature of 1.0**. For **code-related evaluation tasks** (such as LCB), it is further recommended to set: - \`top_p = 0.95\` - \`top_k = 40\` ## Evaluation - For tool-integrated reasoning, please refer to [this doc](https://github.com/zai-org/GLM-4.5/blob/main/resources/glm_4.6_tir_guide.md). - For search benchmark, we design a specific format for searching toolcall in thinking mode to support search agent, please refer to [this](https://github.com/zai-org/GLM-4.5/blob/main/resources/trajectory_search.json). for the detailed template.

Prompts

1

Write a linux shell function to delete a folder successfully. Remember to avoid important folder and generic * symbol.

Reviews

Tags


  • rockingdingo 2025-10-23 16:22
    Interesting:4,Helpfulness:5,Correctness:5
    Prompt: Write a linux shell function to delete a folder successfully. Remember to avoid important folder and generic * symbol.

    GLM4.6 produces pretty good linux shell coding results, with a lot of if and else branch checking. Overall it's pretty good. Some demo output: if [[ "$TARGET_DIR" == *"*"* ]]; then return 1 fi if [[ ! -d "$TARGET_DIR" ]]; then echo "No Need to Delete" return 0 fi ls -la "$TARGET_DIR" echo ""

Write Your Review

Detailed Ratings

ALL
Correctness
Helpfulness
Interesting
Upload Pictures and Videos

Name
Size
Type
Download
Last Modified
  • Community

Add Discussion

Upload Pictures and Videos