alt.freeweights.glm / GLM-Z1-9B-0414
From: THUDM <huggingface.co/THUDM>Newsgroups: alt.freeweights.glmSubject:

GLM-Z1-9B-0414

Date: 2026-11-15Commit: b221b06Signed: 2DC28CC7B26A283B ✓

Text generation model with 9.4B parameters. Safetensors weights, 18.8 GB in all. Published by THUDM under MIT.

9.4B params18.8GBGLM-Z1-9B-0414safetensorspermissive
FactsParams9.4BSize18.8 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get THUDM/GLM-Z1-9B-0414
# manifest sha256 057a3d68fb91… · 18.8 GB · 15 files
$ fw verify ./GLM-Z1-9B-0414 THUDM/GLM-Z1-9B-0414
From sourceHosted (signed)THUDM/GLM-Z1-9B-0414Last check: 2026-11-15 03:28 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
18.8 GB
Weights
18.8 GB (safetensors)
Parameters
9.4B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
15, each with a sha256
Publisher
THUDM
Added
2026-11-15
Section
alt.freeweights.glm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:28 UTCpassed

Model card

From the publisher at commit b221b06. Shown as plain text with links; images open at the publisher.

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#

Image: image

Image: image

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 \<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.'}
}

Files

15 files · 18.8 GBWeights 18.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
LICENSE1.06 KBd08ac7b31e69ddf9845d56f2705325e69873f87b0b34b4bd53a3185428a784ae
README.md7.33 KB73642c3b08d48d7d7e586ff1df33286c58c895dd3b198d8a3eac9b9c8d899a83
chat_template.jinja1.29 KBadee3accece2e4a347280cb16580b3575d6164f2a0f4ac58a1a8392a346eb241
config.json689 B98794d8150da03ca7baec63208584810d01caf43427e376071c00e770f4b4fa7
configuration.json48 Ba78221ae93dd8977b26fcd1d106fa5ad7e7f1fd3a7d93bfd9d6fba5ed00ec4d2
generation_config.json160 B56ee0be8c595f22a6a80a822096533e10455fcd1e859e0fc36a6e760088147fa
model-00001-of-00004.safetensors4.98 GB0e60b8e1d26b365252590099e996d66dcf75118bd1dd7e0ad209f90099f52321
model-00002-of-00004.safetensors4.90 GB175f5395ee3a460cc88be729dda2628b3669fce5c7a081ffe347ef5437607e43
model-00003-of-00004.safetensors4.90 GBa628600a84d3654fc78b0fbe53dcac2a1e03c673f256b4518f635dfd25297a2b
model-00004-of-00004.safetensors4.03 GB8529f785e9b993f0e43dc24309b81fe3907c01f4ee0454ce8dce23fb354e96d7
model.safetensors.index.json43.6 KB76d38dfcac7d59e0250f1fcf03e25061127e6a2d1be7c2b7096c6561b7ffa45a
special_tokens_map.json601 B35a6dd9ff6e2474ba72b180db853851d2a84fce3d12095089285f447c7474541
tokenizer.json20.0 MB76ebeac0d8bd7879ead7b43c16b44981f277e47225de2bd7de9ae1a6cc664a8c
tokenizer_config.json4.44 KB3bbc20fb2c38bbdf31bbadf9f73114449e3ecdaa6514e415266d6dc8facfdb64
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b221b06fef pinned now2026-11-15 03:28 UTC15 files · 18.8 GB

Use it

$ fw get THUDM/GLM-Z1-9B-0414
# manifest sha256 057a3d68fb91… · 18.8 GB · 15 files
$ fw verify ./GLM-Z1-9B-0414 THUDM/GLM-Z1-9B-0414
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/THUDM/GLM-Z1-9B-0414.json --dir ./GLM-Z1-9B-0414 $ python3 fw.py verify ./GLM-Z1-9B-0414 ./THUDM__GLM-Z1-9B-0414.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download THUDM/GLM-Z1-9B-0414 --revision b221b06fefb23ca320922cf6e68ab5f2fb82de81 --local-dir ./GLM-Z1-9B-0414
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("THUDM/GLM-Z1-9B-0414", revision="b221b06fefb23ca320922cf6e68ab5f2fb82de81") model = AutoModelForCausalLM.from_pretrained("THUDM/GLM-Z1-9B-0414", revision="b221b06fefb23ca320922cf6e68ab5f2fb82de81", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve THUDM/GLM-Z1-9B-0414 --revision b221b06fefb23ca320922cf6e68ab5f2fb82de81

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
d08ac7b31e69ddf9845d56f2705325e69873f87b0b34b4bd53a3185428a784ae
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: THUDM <huggingface.co/THUDM>Newsgroups: alt.freeweights.glmSubject: GLM-Z1-9B-0414Date: 2026-11-15Commit: b221b06Signed: 2DC28CC7B26A283B ✓
Upstream
THUDM/GLM-Z1-9B-0414
Pinned commit
b221b06fefb23ca320922cf6e68ab5f2fb82de81
Manifest
GLM-Z1-9B-0414.json · .minisig
Manifest sha256
057a3d68fb91a5483b76b14cd0508da6e6e9ffebcf8597af1fd4d72a88dc2007
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/THUDM/GLM-Z1-9B-0414.json $ curl -O https://freeweights.allternit.com/manifests/THUDM/GLM-Z1-9B-0414.json.minisig $ minisign -Vm GLM-Z1-9B-0414.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download THUDM/GLM-Z1-9B-0414
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. GLM-Z1-9B-0414.json. Provenance. Takedown history: none.
From: bartowski <huggingface.co/bartowski>Subject: arcee-ai_GLM-4-32B-Base-32K-GGUF
From: ggml-org <huggingface.co/ggml-org>Subject: AutoGLM-Phone-9B-GGUF
From: zai-org <huggingface.co/zai-org>Subject: cogagent-chat-hf
From: zai-org <huggingface.co/zai-org>Subject: CogView3-Plus-3B
From: zai-org <huggingface.co/zai-org>Subject: cogvlm-base-490-hf
From: laion <huggingface.co/laion>Subject: dev_set_part1_10k_glm_4_7_traces_jupiter