zai-org / GLM-Z1-9B-0414

huggingface.co
Total runs: 2.0K
24-hour runs: 0
7-day runs: 735
30-day runs: -1.9K
Model's Last Updated: April 28 2025
text-generation

Introduction of GLM-Z1-9B-0414

Model Details of GLM-Z1-9B-0414

GLM-4-Z1-9B-0414

Introduction

The GLM family welcomes a new generation of open-source models, the GLM-4-32B-0414 series, featuring 32 billion parameters. Its performance is comparable to OpenAI's GPT series and DeepSeek's V3/R1 series, and it supports very user-friendly local deployment features. GLM-4-32B-Base-0414 was pre-trained on 15T of high-quality data, including a large amount of reasoning-type synthetic data, laying the foundation for subsequent reinforcement learning extensions. In the post-training stage, in addition to human preference alignment for dialogue scenarios, we also enhanced the model's performance in instruction following, engineering code, and function calling using techniques such as rejection sampling and reinforcement learning, strengthening the atomic capabilities required for agent tasks. GLM-4-32B-0414 achieves good results in areas such as engineering code, Artifact generation, function calling, search-based Q&A, and report generation. Some benchmarks even rival larger models like GPT-4o and DeepSeek-V3-0324 (671B).

GLM-Z1-32B-0414 is a reasoning model with deep thinking capabilities . This was developed based on GLM-4-32B-0414 through cold start and extended reinforcement learning, as well as further training of the model on tasks involving mathematics, code, and logic. Compared to the base model, GLM-Z1-32B-0414 significantly improves mathematical abilities and the capability to solve complex tasks. During the training process, we also introduced general reinforcement learning based on pairwise ranking feedback, further enhancing the model's general capabilities.

GLM-Z1-Rumination-32B-0414 is a deep reasoning model with rumination capabilities (benchmarked against OpenAI's Deep Research). Unlike typical deep thinking models, the rumination model employs longer periods of deep thought to solve more open-ended and complex problems (e.g., writing a comparative analysis of AI development in two cities and their future development plans). The rumination model integrates search tools during its deep thinking process to handle complex tasks and is trained by utilizing multiple rule-based rewards to guide and extend end-to-end reinforcement learning. Z1-Rumination shows significant improvements in research-style writing and complex retrieval tasks.

Finally, GLM-Z1-9B-0414 is a surprise. We employed the aforementioned series of techniques to train a 9B small-sized model that maintains the open-source tradition. Despite its smaller scale, GLM-Z1-9B-0414 still exhibits excellent capabilities in mathematical reasoning and general tasks. Its overall performance is already at a leading level among open-source models of the same size. Especially in resource-constrained scenarios, this model achieves an excellent balance between efficiency and effectiveness, providing a powerful option for users seeking lightweight deployment.

Performance

Model Usage Guidelines
I. Sampling Parameters
Parameter Recommended Value Description
temperature 0.6 Balances creativity and stability
top_p 0.95 Cumulative probability threshold for sampling
top_k 40 Filters out rare tokens while maintaining diversity
max_new_tokens 30000 Leaves enough tokens for thinking
II. Enforced Thinking
  • Add <think>\n to the first line : Ensures the model thinks before responding
  • When using chat_template.jinja , the prompt is automatically injected to enforce this behavior
III. Dialogue History Trimming
  • Retain only the final user-visible reply .
    Hidden thinking content should not be saved to history to reduce interference—this is already implemented in chat_template.jinja
IV. Handling Long Contexts (YaRN)
  • When input length exceeds 8,192 tokens , consider enabling YaRN (Rope Scaling)

  • In supported frameworks, add the following snippet to config.json :

    "rope_scaling": {
      "type": "yarn",
      "factor": 4.0,
      "original_max_position_embeddings": 32768
    }
    
  • Static YaRN applies uniformly to all text. It may slightly degrade performance on short texts, so enable as needed.

Inference Code

Make Sure Using transforemrs>=4.51.3 .

from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_PATH = "THUDM/GLM-4-Z1-9B-0414"

tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto")

message = [{"role": "user", "content": "Let a, b be positive real numbers such that ab = a + b + 3. Determine the range of possible values for a + b."}]

inputs = tokenizer.apply_chat_template(
    message,
    return_tensors="pt",
    add_generation_prompt=True,
    return_dict=True,
).to(model.device)

generate_kwargs = {
    "input_ids": inputs["input_ids"],
    "attention_mask": inputs["attention_mask"],
    "max_new_tokens": 4096,
    "do_sample": False,
}
out = model.generate(**generate_kwargs)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Citations

If you find our work useful, please consider citing the following paper.

@misc{glm2024chatglm,
      title={ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools}, 
      author={Team GLM and Aohan Zeng and Bin Xu and Bowen Wang and Chenhui Zhang and Da Yin and Diego Rojas and Guanyu Feng and Hanlin Zhao and Hanyu Lai and Hao Yu and Hongning Wang and Jiadai Sun and Jiajie Zhang and Jiale Cheng and Jiayi Gui and Jie Tang and Jing Zhang and Juanzi Li and Lei Zhao and Lindong Wu and Lucen Zhong and Mingdao Liu and Minlie Huang and Peng Zhang and Qinkai Zheng and Rui Lu and Shuaiqi Duan and Shudan Zhang and Shulin Cao and Shuxun Yang and Weng Lam Tam and Wenyi Zhao and Xiao Liu and Xiao Xia and Xiaohan Zhang and Xiaotao Gu and Xin Lv and Xinghan Liu and Xinyi Liu and Xinyue Yang and Xixuan Song and Xunkai Zhang and Yifan An and Yifan Xu and Yilin Niu and Yuantao Yang and Yueyan Li and Yushi Bai and Yuxiao Dong and Zehan Qi and Zhaoyu Wang and Zhen Yang and Zhengxiao Du and Zhenyu Hou and Zihan Wang},
      year={2024},
      eprint={2406.12793},
      archivePrefix={arXiv},
      primaryClass={id='cs.CL' full_name='Computation and Language' is_active=True alt_name='cmp-lg' in_archive='cs' is_general=False description='Covers natural language processing. Roughly includes material in ACM Subject Class I.2.7. Note that work on artificial languages (programming languages, logics, formal systems) that does not explicitly address natural-language issues broadly construed (natural-language processing, computational linguistics, speech, text retrieval, etc.) is not appropriate for this area.'}
}

Runs of zai-org GLM-Z1-9B-0414 on huggingface.co

2.0K
Total runs
0
24-hour runs
31
3-day runs
735
7-day runs
-1.9K
30-day runs

More Information About GLM-Z1-9B-0414 huggingface.co Model

More GLM-Z1-9B-0414 license Visit here:

https://choosealicense.com/licenses/mit

GLM-Z1-9B-0414 huggingface.co

GLM-Z1-9B-0414 huggingface.co is an AI model on huggingface.co that provides GLM-Z1-9B-0414's model effect (), which can be used instantly with this zai-org GLM-Z1-9B-0414 model. huggingface.co supports a free trial of the GLM-Z1-9B-0414 model, and also provides paid use of the GLM-Z1-9B-0414. Support call GLM-Z1-9B-0414 model through api, including Node.js, Python, http.

GLM-Z1-9B-0414 huggingface.co Url

https://huggingface.co/zai-org/GLM-Z1-9B-0414

zai-org GLM-Z1-9B-0414 online free

GLM-Z1-9B-0414 huggingface.co is an online trial and call api platform, which integrates GLM-Z1-9B-0414's modeling effects, including api services, and provides a free online trial of GLM-Z1-9B-0414, you can try GLM-Z1-9B-0414 online for free by clicking the link below.

zai-org GLM-Z1-9B-0414 online free url in huggingface.co:

https://huggingface.co/zai-org/GLM-Z1-9B-0414

GLM-Z1-9B-0414 install

GLM-Z1-9B-0414 is an open source model from GitHub that offers a free installation service, and any user can find GLM-Z1-9B-0414 on GitHub to install. At the same time, huggingface.co provides the effect of GLM-Z1-9B-0414 install, users can directly use GLM-Z1-9B-0414 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

GLM-Z1-9B-0414 install url in huggingface.co:

https://huggingface.co/zai-org/GLM-Z1-9B-0414

Url of GLM-Z1-9B-0414

GLM-Z1-9B-0414 huggingface.co Url

Provider of GLM-Z1-9B-0414 huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

Total runs: 1.9M
Run Growth: -1.4M
Growth Rate: -72.24%
Updated:September 11 2026
huggingface.co

Total runs: 1.9M
Run Growth: -106.5K
Growth Rate: -5.66%
Updated:January 29 2026
huggingface.co

Total runs: 1.3M
Run Growth: 1.2M
Growth Rate: 100.00%
Updated:September 07 2026
huggingface.co

Total runs: 1.3M
Run Growth: -706.1K
Growth Rate: -53.41%
Updated:September 01 2026
huggingface.co

Total runs: 932.2K
Run Growth: -1.7M
Growth Rate: -184.79%
Updated:September 01 2026
huggingface.co

Total runs: 635.5K
Run Growth: 543.2K
Growth Rate: 98.41%
Updated:September 04 2026
huggingface.co

Total runs: 442.1K
Run Growth: -4.8K
Growth Rate: -1.09%
Updated:August 04 2024
huggingface.co

Total runs: 272.7K
Run Growth: -733.7K
Growth Rate: -269.02%
Updated:April 05 2026
huggingface.co

Total runs: 263.9K
Run Growth: -178.7K
Growth Rate: -61.88%
Updated:April 16 2026
huggingface.co

Total runs: 101.7K
Run Growth: -187.4K
Growth Rate: -184.31%
Updated:August 11 2025
huggingface.co

Total runs: 87.5K
Run Growth: -1.8K
Growth Rate: -2.07%
Updated:March 13 2025
huggingface.co

Total runs: 82.3K
Run Growth: 10.7K
Growth Rate: 12.92%
Updated:May 13 2026
huggingface.co

Total runs: 80.5K
Run Growth: -43.5K
Growth Rate: -54.00%
Updated:August 11 2025
huggingface.co

Total runs: 78.4K
Run Growth: -82.6K
Growth Rate: -105.42%
Updated:December 10 2025
huggingface.co

Total runs: 76.3K
Run Growth: -8.1K
Growth Rate: -10.65%
Updated:December 05 2024
huggingface.co

Total runs: 75.4K
Run Growth: 3.7K
Growth Rate: 4.86%
Updated:January 29 2026
huggingface.co

Total runs: 58.8K
Run Growth: -63.5K
Growth Rate: -108.01%
Updated:August 11 2026
huggingface.co

Total runs: 45.4K
Run Growth: -82.9K
Growth Rate: -182.81%
Updated:October 25 2025
huggingface.co

Total runs: 22.0K
Run Growth: -2.3K
Growth Rate: -10.22%
Updated:November 23 2024
huggingface.co

Total runs: 20.7K
Run Growth: -62.9K
Growth Rate: -303.60%
Updated:March 03 2025
huggingface.co

Total runs: 20.7K
Run Growth: -20.8K
Growth Rate: -100.51%
Updated:April 14 2025
huggingface.co

Total runs: 18.3K
Run Growth: -9.7K
Growth Rate: -52.88%
Updated:September 30 2025
huggingface.co

Total runs: 15.4K
Run Growth: -2.5K
Growth Rate: -16.41%
Updated:November 23 2024
huggingface.co

Total runs: 14.2K
Run Growth: -13.3K
Growth Rate: -93.35%
Updated:December 23 2025
huggingface.co

Total runs: 13.4K
Run Growth: 12.2K
Growth Rate: 96.20%
Updated:September 04 2026
huggingface.co

Total runs: 13.1K
Run Growth: 2.5K
Growth Rate: 18.98%
Updated:December 09 2025
huggingface.co

Total runs: 10.1K
Run Growth: 1.4K
Growth Rate: 14.29%
Updated:January 15 2026
huggingface.co

Total runs: 7.9K
Run Growth: -3.6K
Growth Rate: -45.43%
Updated:October 16 2025
huggingface.co

Total runs: 7.2K
Run Growth: -7.1K
Growth Rate: -99.58%
Updated:April 22 2025
huggingface.co

Total runs: 6.2K
Run Growth: -1.7K
Growth Rate: -28.22%
Updated:March 11 2025
huggingface.co

Total runs: 5.3K
Run Growth: -1.9K
Growth Rate: -36.13%
Updated:January 27 2025
huggingface.co

Total runs: 3.7K
Run Growth: -5.3K
Growth Rate: -142.00%
Updated:December 09 2025
huggingface.co

Total runs: 3.1K
Run Growth: 1.1K
Growth Rate: 36.55%
Updated:August 04 2024
huggingface.co

Total runs: 2.9K
Run Growth: -1.6K
Growth Rate: -53.96%
Updated:October 25 2025
huggingface.co

Total runs: 1.6K
Run Growth: 773
Growth Rate: 47.25%
Updated:August 12 2025
huggingface.co

Total runs: 687
Run Growth: 309
Growth Rate: 44.98%
Updated:March 02 2023
huggingface.co

Total runs: 588
Run Growth: -31
Growth Rate: -5.27%
Updated:August 11 2025
huggingface.co

Total runs: 423
Run Growth: -1.2K
Growth Rate: -294.09%
Updated:January 02 2025
huggingface.co

Total runs: 410
Run Growth: 244
Growth Rate: 59.51%
Updated:October 20 2023
huggingface.co

Total runs: 322
Run Growth: 76
Growth Rate: 23.60%
Updated:December 10 2024
huggingface.co

Total runs: 305
Run Growth: -419
Growth Rate: -137.38%
Updated:October 25 2025
huggingface.co

Total runs: 304
Run Growth: 144
Growth Rate: 47.37%
Updated:March 02 2023
huggingface.co

Total runs: 277
Run Growth: 70
Growth Rate: 25.27%
Updated:November 20 2023
huggingface.co

Total runs: 251
Run Growth: 111
Growth Rate: 44.22%
Updated:October 20 2023
huggingface.co

Total runs: 244
Run Growth: 107
Growth Rate: 43.85%
Updated:October 20 2023