Model reference · open weights

GLM-Z1-0414

LLMs zai-org Text gen 1 build Open weights 22k dl/mo

GLM-Z1-0414 is an open-weight language model from zai-org. GLM-Z1-32B-0414 (BF16) weighs 65.1 GB; the smallest configuration that runs it is H100 80 GB.

  • GLM-Z1-0414 is a 32.6 billion parameter text-generation model developed by zai-org that features deep thinking capabilities for complex reasoning tasks.
  • It supports a context length of 32,768 tokens and operates in Chinese and English.
  • The model is released under the MIT license.

Summary of the zai-org/GLM-Z1-32B-0414 model card, 2026-10-01

What it is

Released byzai-org
Released2025-04-08
Parameters32.6B
VRAM65.1 GB for the weights

What it runs on

Memory and cards for GLM-Z1-32B-0414 (BF16)

65.1 GBweights, file size
62 MBcache per 1K tokens
874 MBruntime overhead, at least
32,768 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … L40S 48 GB
6 smaller cards
———
A100 80 GB235all 32K78.2 GB
H100 80 GB143all 32K78.1 GB
RTX PRO 6000 Blackwell 96 GB4511all 32K93.8 GB
DGX Spark (GB10) 128 GB unified7117all 32K107 GB
H200 141 GB13132all 32K138 GB
B200 180 GB20350all 32K176 GB
2× L40S 48 GB
tensor parallel
4110all 32K44.0 GB a card
4× RTX 4090 24 GB
tensor parallel
246all 32K23.4 GB a card
4× RTX 3090 24 GB
tensor parallel
246all 32K23.4 GB a card
4× RTX 5090 32 GB
tensor parallel
5413all 32K31.0 GB a card
2× H100 80 GB
tensor parallel
15639all 32K78.1 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
166.5 GB68.1 GB
568.6 GB76.2 GB
870.1 GB82.4 GB
1674.2 GB98.8 GB
3282.4 GB132 GB
6498.8 GB197 GB

One card, with vLLM's small-card settings.

From the model card

What zai-org says about GLM-Z1-0414

Read the model card

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

ParameterRecommended ValueDescription
temperature0.6Balances creativity and stability
top_p0.95Cumulative probability threshold for sampling
top_k40Filters out rare tokens while maintaining diversity
max_new_tokens30000Leaves enough tokens for thinking

II. Enforced Thinking

  • Add \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-32B-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

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms