Upload folder using huggingface_hub
Browse files
    	
        README.md
    ADDED
    
    | 
         @@ -0,0 +1,83 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            ---
         
     | 
| 2 | 
         
            +
            tags:
         
     | 
| 3 | 
         
            +
            - unsloth
         
     | 
| 4 | 
         
            +
            base_model:
         
     | 
| 5 | 
         
            +
            - zai-org/GLM-4.6
         
     | 
| 6 | 
         
            +
            language:
         
     | 
| 7 | 
         
            +
            - en
         
     | 
| 8 | 
         
            +
            - zh
         
     | 
| 9 | 
         
            +
            library_name: transformers
         
     | 
| 10 | 
         
            +
            license: mit
         
     | 
| 11 | 
         
            +
            pipeline_tag: text-generation
         
     | 
| 12 | 
         
            +
            ---
         
     | 
| 13 | 
         
            +
            > [!NOTE]
         
     | 
| 14 | 
         
            +
            >  Includes Unsloth **chat template fixes**! <br> For `llama.cpp`, use `--jinja`
         
     | 
| 15 | 
         
            +
            >
         
     | 
| 16 | 
         
            +
             
     | 
| 17 | 
         
            +
            <div>
         
     | 
| 18 | 
         
            +
            <p style="margin-top: 0;margin-bottom: 0;">
         
     | 
| 19 | 
         
            +
                <em><a href="https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf">Unsloth Dynamic 2.0</a> achieves superior accuracy & outperforms other leading quants.</em>
         
     | 
| 20 | 
         
            +
              </p>
         
     | 
| 21 | 
         
            +
              <div style="display: flex; gap: 5px; align-items: center; ">
         
     | 
| 22 | 
         
            +
                <a href="https://github.com/unslothai/unsloth/">
         
     | 
| 23 | 
         
            +
                  <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
         
     | 
| 24 | 
         
            +
                </a>
         
     | 
| 25 | 
         
            +
                <a href="https://discord.gg/unsloth">
         
     | 
| 26 | 
         
            +
                  <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
         
     | 
| 27 | 
         
            +
                </a>
         
     | 
| 28 | 
         
            +
                <a href="https://docs.unsloth.ai/">
         
     | 
| 29 | 
         
            +
                  <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
         
     | 
| 30 | 
         
            +
                </a>
         
     | 
| 31 | 
         
            +
              </div>
         
     | 
| 32 | 
         
            +
            </div>
         
     | 
| 33 | 
         
            +
             
     | 
| 34 | 
         
            +
             
     | 
| 35 | 
         
            +
            # GLM-4.6
         
     | 
| 36 | 
         
            +
             
     | 
| 37 | 
         
            +
            <div align="center">
         
     | 
| 38 | 
         
            +
            <img src=https://raw.githubusercontent.com/zai-org/GLM-4.5/refs/heads/main/resources/logo.svg width="15%"/>
         
     | 
| 39 | 
         
            +
            </div>
         
     | 
| 40 | 
         
            +
            <p align="center">
         
     | 
| 41 | 
         
            +
                👋 Join our <a href="https://discord.gg/QR7SARHRxK" target="_blank">Discord</a> community.
         
     | 
| 42 | 
         
            +
                <br>
         
     | 
| 43 | 
         
            +
                📖 Check out the GLM-4.6 <a href="https://z.ai/blog/glm-4.6" target="_blank">technical blog</a>, <a href="https://arxiv.org/abs/2508.06471" target="_blank">technical report(GLM-4.5)</a>, and <a href="https://zhipu-ai.feishu.cn/wiki/Gv3swM0Yci7w7Zke9E0crhU7n7D" target="_blank">Zhipu AI technical documentation</a>.
         
     | 
| 44 | 
         
            +
                <br>
         
     | 
| 45 | 
         
            +
                📍 Use GLM-4.6 API services on <a href="https://docs.z.ai/guides/llm/glm-4.6">Z.ai API Platform. </a>
         
     | 
| 46 | 
         
            +
                <br>
         
     | 
| 47 | 
         
            +
                👉 One click to <a href="https://chat.z.ai">GLM-4.6</a>.
         
     | 
| 48 | 
         
            +
            </p>
         
     | 
| 49 | 
         
            +
             
     | 
| 50 | 
         
            +
            ## Model Introduction
         
     | 
| 51 | 
         
            +
             
     | 
| 52 | 
         
            +
            Compared with GLM-4.5, **GLM-4.6**  brings several key improvements:
         
     | 
| 53 | 
         
            +
             
     | 
| 54 | 
         
            +
            * **Longer context window:** The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks.
         
     | 
| 55 | 
         
            +
            * **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.
         
     | 
| 56 | 
         
            +
            * **Advanced reasoning:** GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability.
         
     | 
| 57 | 
         
            +
            * **More capable agents:** GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks.
         
     | 
| 58 | 
         
            +
            * **Refined writing:** Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios.
         
     | 
| 59 | 
         
            +
             
     | 
| 60 | 
         
            +
            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**.
         
     | 
| 61 | 
         
            +
             
     | 
| 62 | 
         
            +
            
         
     | 
| 63 | 
         
            +
             
     | 
| 64 | 
         
            +
            ## Inference
         
     | 
| 65 | 
         
            +
             
     | 
| 66 | 
         
            +
            **Both GLM-4.5 and GLM-4.6 use the same inference method.**
         
     | 
| 67 | 
         
            +
             
     | 
| 68 | 
         
            +
            you can check our [github](https://github.com/zai-org/GLM-4.5) for more detail.
         
     | 
| 69 | 
         
            +
             
     | 
| 70 | 
         
            +
            ## Recommended Evaluation Parameters
         
     | 
| 71 | 
         
            +
             
     | 
| 72 | 
         
            +
            For general evaluations, we recommend using a **sampling temperature of 1.0**.
         
     | 
| 73 | 
         
            +
             
     | 
| 74 | 
         
            +
            For **code-related evaluation tasks** (such as LCB), it is further recommended to set:
         
     | 
| 75 | 
         
            +
             
     | 
| 76 | 
         
            +
            - `top_p = 0.95`
         
     | 
| 77 | 
         
            +
            - `top_k = 40`
         
     | 
| 78 | 
         
            +
             
     | 
| 79 | 
         
            +
             
     | 
| 80 | 
         
            +
            ## Evaluation
         
     | 
| 81 | 
         
            +
             
     | 
| 82 | 
         
            +
            - 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).
         
     | 
| 83 | 
         
            +
            - 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.
         
     |