Archive of AI

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

GLM-4 官方历史版本说明

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 / 7bcc4c2c2ee76b07
Original URL
Open source ↗
Wayback Backup
Not archived
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.

[来源关键摘录] 历史说明区分普通Chat、Chat-1M及视觉版本,并分别说明代码与模型权重许可。

[正文前段节选] # GLM-4

<p align="center"> 📄<a href="https://arxiv.org/pdf/2406.12793" target="_blank"> Report </a> • 🤗 <a href="https://huggingface.co/collections/zai-org/glm-4-665fcf188c414b03c2f7e3b7" target="_blank">HF Repo</a> • 🤖 <a href="https://modelscope.cn/models/ZhipuAI/glm-4-9b-chat" target="_blank">ModelScope</a> • 🟣 <a href="https://wisemodel.cn/models/ZhipuAI/glm-4-9b-chat" target="_blank">WiseModel</a> • 🐦 <a href="https://twitter.com/thukeg" target="_blank">Twitter</a> • 👋 Join <a href="https://discord.gg/Hc5z9bx5Xw" target="_blank">Discord</a> and <a href="resources/WECHAT.md" target="_blank">WeChat</a> </p> <p align="center"> 📍Experience and use a larger-scale GLM business model on the <a href="https://open.bigmodel.cn/?utm_campaign=open&_channel_track_key=OWTVNma9">Zhipu AI Open Platform</a> </p>

## Update

- 🔥🔥 **News**: ```2024/11/01```: Dependencies have been updated in this repository. Please update the dependencies in `requirements.txt` to ensure the model runs correctly. The model weights for [glm-4-9b-chat-hf](https://huggingface.co/zai-org/glm-4-9b-chat-hf) are compatible with `transformers>=4.46.2` and can be implemented using the `GlmModel` class in the `transformers` library. Additionally, `tokenizer_chatglm.py` in [glm-4-9b-chat](https://huggingface.co/zai-org/glm-4-9b-chat) and [glm-4v-9b](https://huggingface.co/zai-org/glm-4v-9b) has been updated for the latest version of `transformers`. Please update the files on HuggingFace. - 🔥 **News**: ```2024/10/27```: We have open-sourced [LongReward](https://github.com/zai-org/LongReward), a model that uses AI feedback to enhance long-context large language models. - 🔥 **News**: ```2024/10/25```: We have open-sourced the end-to-end Mandarin-English voice dialogue model [GLM-4-Voice](https://github.com/zai-org/GLM-4-Voice). - 🔥 **News**: ```2024/09/05```: We have open-sourced [longcite-glm4-9b](https://huggingface.co/zai-org/LongCite-glm4-9b), a model enabling LLMs to produce fine-grained citations in long-context Q&A, along with the dataset [LongCite-45k](https://huggingface.co/datasets/zai-org/LongCite-45k). Try it out online at [Huggingface Space](https://huggingface.co/spaces/zai-org/LongCite). - 🔥 **News**: ```2024/08/15```: We have open-sourced [longwriter-glm4-9b](https://huggingface.co/zai-org/LongWriter-glm4-9b), a model capable of generating over 10,000 tokens in single-turn dialogue, along with the dataset [LongWriter-6k](https://huggingface.co/datasets/zai-org/LongWriter-6k). Experience it online at [Huggingface Space](https://huggingface.co/spaces/zai-org/LongWriter) or the [ModelScope Community Space](https://modelscope.cn/studios/ZhipuAI/LongWriter-glm4-9b-demo). - 🔥 **News**: ```2024/07/24```: We published the latest technical insights on long-text processing. Check out our technical report on training the open-source GLM-4-9B model for long texts [here](https://medium.com/@ChatGLM/glm-long-scaling-pre-trained-model-contexts-to-millions-caa3c48dea85). - 🔥 **News**: ```2024/07/09```: The GLM-4-9B-Chat model is now compatible with [Ollama](https://github.com/ollama/ollama) and [Llama.cpp](https://github.com/ggerganov/llama.cpp). See detailed information in this [PR](https://github.com/ggerganov/llama.cpp/pull/8031). - 🔥 **News**: ```2024/06/18```: We have released a [technical report](https://arxiv.org/pdf/2406.12793), available for viewing. - 🔥 **News**: ```2024/06/05```: We released the GLM-4-9B series of open-source models.

## Model Introduction

GLM-4-9B is the open-source version of the latest generation of pre-trained models in the GLM-4 series launched by Zhipu AI. In the evaluation of data sets in semantics, mathematics, reasoning, code, and knowledge, **GLM-4-9B** and its human preference-aligned version **GLM-4-9B-Chat** have shown superior performance beyond Llama-3-8B. In addition to multi-round conversations, GLM-4-9B-Chat also has advanced features such as web browsing, code execution, custom tool calls (Function Call), and long text reasoning (supporting up to 128K context). This generation of models has added multi-language support, supporting 26 languages including Japanese, Korean, and German. We have also launched the **GLM-4-9B-Chat-1M** model that supports 1M context length (about 2 million Chinese characters) and the multimodal model GLM-4V-9B based on GLM-4-9B. **GLM-4V-9B** possesses dialogue capabilities in both Chinese and English at a high resolution of 1120*1120. In various multimodal evaluations, including comprehensive abilities in Chinese and English, perception & reasoning, text recognition, and chart understanding, GLM-4V-9B demonstrates superior performance compared to GPT-4-turbo-2024-04-09, Gemini 1.0 Pro, Qwen-VL-Max, and Claude 3 Opus.

## Model List

| Model | Type | Seq Length | Transformers Version | Download | Online Demo | |:-------------------:|:----:|:----------:|:--------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | GLM-4-9B | Base | 8K | `4.44.0 - 4.45.0` | [🤗 Huggingface](https://huggingface.co/zai-org/glm-4-9b)<br> [🤖 ModelScope](https://modelscope.cn/models/ZhipuAI/glm-4-9b)<br> [🟣 WiseModel](https://wisemodel.cn/models/ZhipuAI/glm-4-9b) | / | | GLM-4-9B-Chat | Chat | 128K | `>= 4.44.0` | [🤗 Huggingface](https://huggingface.co/zai-org/glm-4-9b-chat)<br> [🤖 ModelScope](https://modelscope.cn/models/ZhipuAI/glm-4-9b-chat)<br> [🟣 WiseModel](https://wisemodel.cn/models/ZhipuAI/GLM-4-9B-Chat) | [🤖 ModelScope CPU](https://modelscope.cn/studios/dash-infer/GLM-4-Chat-DashInfer-Demo/summary)<br> [🤖 ModelScope vLLM](https://modelscope.cn/studios/ZhipuAI/glm-4-9b-chat-vllm/summary) | | GLM-4-9B-Chat-HF | Chat | 128K | `>= 4.46.0` | [🤗 Huggingface](https://huggingface.co/zai-org/glm-4-9b-chat-hf)<br> [🤖 ModelScope](https://modelscope.cn/models/ZhipuAI/glm-4-9b-chat-hf) | [🤖 ModelScope CPU](https://modelscope.cn/studios/dash-infer/GLM-4-Chat-DashInfer-Demo/summary)<br> [🤖 ModelScope vLLM](https://modelscope.cn/studios/ZhipuAI/glm-4-9b-chat-vllm/summary) | | GLM-4-9B-Chat-1M | Chat | 1M | `>= 4.44.0` | [🤗 Huggingface](https://huggingface.co/zai-org/glm-4-9b-chat-1m)<br> [🤖 ModelScope](https://modelscope.cn/models/ZhipuAI/glm-4-9b-chat-1m)<br> [🟣 WiseModel](https://wisemodel.cn/models/ZhipuAI/GLM-4-9B-Chat-1M) | / | | GLM-4-9B-Chat-1M-HF | Chat | 1M | `>= 4.46.0` | [🤗 Huggingface](https://huggingface.co/zai-org/glm-4-9b-chat-1m-hf)<br> [🤖 ModelScope](https://modelscope.cn/models/ZhipuAI/glm-4-9b-chat-1m-hf) | /