Archive of AI

Source Snapshot / 2024-06-zhipu-glm4-9b-open-source-1

GitHub - zai-org/GLM-4: GLM-4 series: Open Multilingual Multimodal Chat LMs | 开源多语言多模态对话模型 · GitHub

Linked event: 2024-06-05 · Zhipu AI (Z.ai) Releases Open Weights for GLM-4-9B Series, Including 1M-Context Variant

Publisher
GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 0aa36247f316628d
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Fork623 (623)

Star7.1k (7.1k)You must be signed in to star a repository

GLM-4 series: Open Multilingual Multimodal Chat LMs | 开源多语言多模态对话模型

chatglmchatglm-6bglmglm-4glm4

Apache-2.0 license

Custom properties

Report repository

BranchesTags

Open more actions menu

Latest commit

Folders and files

Last commit message

Last commit date

.pre-commit-config.yaml

README_20240605.md

README_zh.md

README_zh_240605.md

View all files

Repository files navigation

GLM-4-0414 Model Series

👋 Join our Discord, X and WeChat (Chinese)

📍The open-source models released this time can be experienced for free at Z.ai; for GLM commercial model services, please visit bigmodel.cn.

Read this in 中文

Project Updates

🔥 News: 2025/07/02: We are releasing the GLM-4.1V-9B-Thinking series VLM, check this github repo to get more information.

News: 2025/04/14: We are releasing the GLM-4-32B-0414 series models, scaled up to 32B parameters, including models with capabilities for dialogue, reasoning, and rumination.

News: 2024/06/18: We have released our Technical Report, feel free to check it out.

News: 2024/06/05: We released the GLM-4-9B series of open-source models. Details can be found here.

Model Introduction

The GLM family welcomes new members, the GLM-4-32B-0414 series models, featuring 32 billion parameters. Its performance is comparable to OpenAI’s GPT series and DeepSeek’s V3/R1 series. It also supports very user-friendly local deployment features. GLM-4-32B-Base-0414 was pre-trained on 15T of high-quality data, including substantial reasoning-type synthetic data. This lays the foundation for subsequent reinforcement learning extensions. In the post-training stage, we employed human preference alignment for dialogue scenarios. Additionally, using techniques like rejection sampling and reinforcement learning, we enhanced the model’s performance in instruction following, engineering code, and function calling, thus strengthening the atomic capabilities required for agent tasks. GLM-4-32B-0414 achieves good results in engineering code, Artifact generation, function calling, search-based Q&A, and report generation. In particular, on several benchmarks, such as code generation or specific Q&A tasks, GLM-4-32B-Base-0414 achieves comparable performance with those 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, extended reinforcement learning, and further training on tasks including 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 training, we also introduced general reinforcement learning based on pairwise ranking feedback, which enhances the model's general capabilities.

GLM-Z1-Rumination-32B-0414 is a deep reasoning model with rumination capabilities (against OpenAI's Deep Research). Unlike typical deep thinking models, the rumination model is capable of deeper and longer thinking 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). Z1-Rumination is trained through scaling end-to-end reinforcement learning with responses graded by the ground truth answers or rubrics and can make use of search tools during its deep thinking process to handle complex tasks. The model shows significant improvements in research-style writing and complex tasks.

Finally, GLM-Z1-9B-0414 is a surprise. We employed all the aforementioned techniques to train a small model (9B). GLM-Z1-9B-0414 exhibits excellent capabilities in mathematical reasoning and general tasks. Its overall performance is top-ranked among all 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.

Animation Generation

GLM-Z1-32B-0414

GLM-4-32B-0414

bouncing_ball.mp4

write a Python program that shows a ball bouncing inside a spinning hexagon. The ball should be affected by gravity and friction, and it must bounce off the rotating walls realistically

Use HTML to simulate the scenario of a small ball released from the center of a rotating hexagon. Consider the collision between the ball and the hexagon's edges, the gravity acting on the ball, and assume all collisions are perfectly elastic. (Prompt translated from Chinese)

Design a drawing board that supports custom function plotting, allowing adding and deleting custom functions, and assigning colors to functions. (Prompt translated from Chinese)

Design a UI for a mobile machine learning platform, which should include interfaces for training tasks, storage management, and personal statistics. The personal statistics interface should use charts to display the user's resource usage over a period. Use Tailwind CSS to style the page, and display these 3 mobile interfaces tiled on a single HTML page. (Prompt translated from Chinese)

SVG Generation

Create a misty Jiangnan scene using SVG. (Prompt translated from Chinese)

Use SVG to illustrate the training process of an LLM. (Prompt translated from Chinese)

Analysis and Research Report Writing

rum32b-demo.mov

Analysis of AI Development in Chinese Cities: A Comparative Study of Beijing and Hangzhou, Alongside an Investigation of International Cases of AI in Urban Governance. (Prompt translated from Chinese)

GLM-4-0414 Series Models

GLM-Z1-9B-0414 Open-Source Model Try it Online

GLM-4-9B-0414

🤗 Huggingface 🤖 ModelScope 🧩 Modelers 🟣 WiseModel

GLM-Z1-9B-0414

GLM-4-32B-Base-0414

GLM-Z1-Rumination-32B-0414

Due to its smaller model capacity, GLM-4-9B-0414 has not undergone the same agent capability enhancements as GLM-4-32B-0414. Instead, it has been optimized primarily for scenarios that require large-scale batch operations, such as translation tasks.

* Models are natively trained with a 32K context. For requests where the total input + output length might exceed 32K tokens, we recommend activating YaRN for better extrapolation performance. See the Model and Prompt Implementation section for details.

Below are the GLM-4 series models released on June 5, 2024. Details can be found here.

🤗 Huggingface 🤖 ModelScope

GLM-4-9B-Chat

🤗 Huggingface 🤖 ModelScope 🟣 WiseModel

GLM-4-9B-Chat-HF

GLM-4-9B-Chat-1M

GLM-4-9B-Chat-1M-HF

Evaluation Results

GLM-4-0414 Series

BFCL-v3 (Overall)

BFCL-v3 (MultiTurn)

TAU-Bench (Retail)

TAU-Bench (Airline)

DeepSeek-V3-0324

For SimpleQA and HotpotQA, we sampled nearly 500 test cases from each test set, provided all models with basic search and click tools, ensured other settings remained consistent, and averaged the results over 3 runs.

SWE-bench Verified

SWE-bench Verified mini

Agentless[2]

OpenHands[3]

[1] Moatless v0.0.3 used the following parameters: response_format="react", thoughts_in_action=False, max_interations=30. No retries on failed trajectories; other settings are default.

[2] Agentless v1.5.0 used BGE as the embedding model and FAISS for similarity search. To speed up patch verification while maintaining performance, the timeout for running a single instance was changed from the default 300s to 180s.

[...内容已截断,完整版请查看原文或 Wayback 快照]