zai-org / chatglm3-6b-base

huggingface.co
Total runs: 4.3K
24-hour runs: 0
7-day runs: 0
30-day runs: 578
Model's Last Updated: December 05 2024

Introduction of chatglm3-6b-base

Model Details of chatglm3-6b-base

ChatGLM3-6B-Base

💻 Github Repo • 🐦 Twitter • 📃 [GLM@ACL 22] [GitHub] • 📃 [GLM-130B@ICLR 23] [GitHub]

👋 Join our Slack and WeChat

📍Experience the larger-scale ChatGLM model at chatglm.cn

介绍 (Introduction)

ChatGLM3-6B 是 ChatGLM 系列最新一代的开源模型,在保留了前两代模型对话流畅、部署门槛低等众多优秀特性的基础上,ChatGLM3-6B 引入了如下特性:

  1. 更强大的基础模型: ChatGLM3-6B 的基础模型 ChatGLM3-6B-Base 采用了更多样的训练数据、更充分的训练步数和更合理的训练策略。在语义、数学、推理、代码、知识等不同角度的数据集上测评显示,ChatGLM3-6B-Base 具有在 10B 以下的预训练模型中最强的性能。
  2. 更完整的功能支持: ChatGLM3-6B 采用了全新设计的 Prompt 格式 ,除正常的多轮对话外。同时原生支持 工具调用 (Function Call)、代码执行(Code Interpreter)和 Agent 任务等复杂场景。
  3. 更全面的开源序列: 除了对话模型 ChatGLM3-6B 外,还开源了基础模型 ChatGLM-6B-Base、长文本对话模型 ChatGLM3-6B-32K。以上所有权重对学术研究 完全开放 ,在填写 问卷 进行登记后 亦允许免费商业使用

本仓库为 ChatGLM3-6B 的基础模型 ChatGLM3-6B-Base。

ChatGLM3-6B is the latest open-source model in the ChatGLM series. While retaining many excellent features such as smooth dialogue and low deployment threshold from the previous two generations, ChatGLM3-6B introduces the following features:

  1. More Powerful Base Model: The base model of ChatGLM3-6B, ChatGLM3-6B-Base, employs a more diverse training dataset, more sufficient training steps, and a more reasonable training strategy. Evaluations on datasets such as semantics, mathematics, reasoning, code, knowledge, etc., show that ChatGLM3-6B-Base has the strongest performance among pre-trained models under 10B.
  2. More Comprehensive Function Support: ChatGLM3-6B adopts a newly designed Prompt format , in addition to the normal multi-turn dialogue. It also natively supports function call , code interpreter, and complex scenarios such as agent tasks.
  3. More Comprehensive Open-source Series: In addition to the dialogue model ChatGLM3-6B, the base model ChatGLM-6B-Base and the long-text dialogue model ChatGLM3-6B-32K are also open-sourced. All the weights are fully open for academic research, and after completing the questionnaire registration, they are also allowed for free commercial use .

This repo is ChatGLM3-6B-Base, the base model of ChatGLM3-6B.

软件依赖 (Dependencies)
pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 gradio mdtex2html sentencepiece accelerate
代码调用 (Code Usage)

作为没有经过人类意图对齐的模型,ChatGLM3-6B-Base 不能用于多轮对话。但是可以进行文本续写。

As a model that has not been aligned with human intent, ChatGLM3-6B-Base cannot be used for multi-turn conversations. However, text completion is possible.

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm3-6b-base", trust_remote_code=True)
model = AutoModel.from_pretrained("THUDM/chatglm3-6b-base", trust_remote_code=True).half().cuda()

inputs = tokenizer(["今天天气真不错"], return_tensors="pt").to('cuda')
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0].tolist()))

关于更多的使用说明,包括如何运行命令行和网页版本的 DEMO,以及使用模型量化以节省显存,请参考我们的 Github Repo

For more instructions, including how to run CLI and web demos, and model quantization, please refer to our Github Repo .

协议 (License)

本仓库的代码依照 Apache-2.0 协议开源,ChatGLM3-6B 模型的权重的使用则需要遵循 Model License

The code in this repository is open-sourced under the Apache-2.0 license , while the use of the ChatGLM3-6B model weights needs to comply with the Model License .

引用 (Citation)

如果你觉得我们的工作有帮助的话,请考虑引用下列论文。

If you find our work helpful, please consider citing the following papers.

@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 chatglm3-6b-base on huggingface.co

4.3K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
578
30-day runs

More Information About chatglm3-6b-base huggingface.co Model

chatglm3-6b-base huggingface.co

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

chatglm3-6b-base huggingface.co Url

https://huggingface.co/zai-org/chatglm3-6b-base

zai-org chatglm3-6b-base online free

chatglm3-6b-base huggingface.co is an online trial and call api platform, which integrates chatglm3-6b-base's modeling effects, including api services, and provides a free online trial of chatglm3-6b-base, you can try chatglm3-6b-base online for free by clicking the link below.

zai-org chatglm3-6b-base online free url in huggingface.co:

https://huggingface.co/zai-org/chatglm3-6b-base

chatglm3-6b-base install

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

chatglm3-6b-base install url in huggingface.co:

https://huggingface.co/zai-org/chatglm3-6b-base

Url of chatglm3-6b-base

chatglm3-6b-base huggingface.co Url

Provider of chatglm3-6b-base huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

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

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

Total runs: 1.8M
Run Growth: -1.3M
Growth Rate: -71.57%
Updated:September 11 2026
huggingface.co

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

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

Total runs: 838.4K
Run Growth: 736.9K
Growth Rate: 98.82%
Updated:September 04 2026
huggingface.co

Total runs: 456.1K
Run Growth: -6.1K
Growth Rate: -1.34%
Updated:August 04 2024
huggingface.co

Total runs: 200.3K
Run Growth: -238.2K
Growth Rate: -104.95%
Updated:April 16 2026
huggingface.co

Total runs: 107.0K
Run Growth: -914.8K
Growth Rate: -696.12%
Updated:April 05 2026
huggingface.co

Total runs: 104.1K
Run Growth: -121.8K
Growth Rate: -118.84%
Updated:August 11 2025
huggingface.co

Total runs: 101.3K
Run Growth: 29.7K
Growth Rate: 29.53%
Updated:January 29 2026
huggingface.co

Total runs: 90.6K
Run Growth: 12.0K
Growth Rate: 13.31%
Updated:May 13 2026
huggingface.co

Total runs: 90.4K
Run Growth: -34.5K
Growth Rate: -39.22%
Updated:August 11 2025
huggingface.co

Total runs: 78.2K
Run Growth: -76.8K
Growth Rate: -101.51%
Updated:December 10 2025
huggingface.co

Total runs: 67.5K
Run Growth: -16.9K
Growth Rate: -25.06%
Updated:December 05 2024
huggingface.co

Total runs: 54.7K
Run Growth: -68.9K
Growth Rate: -124.27%
Updated:August 11 2026
huggingface.co

Total runs: 45.9K
Run Growth: -71.2K
Growth Rate: -158.18%
Updated:October 25 2025
huggingface.co

Total runs: 22.1K
Run Growth: 6.9K
Growth Rate: 30.99%
Updated:November 23 2024
huggingface.co

Total runs: 20.4K
Run Growth: -56.6K
Growth Rate: -277.32%
Updated:March 03 2025
huggingface.co

Total runs: 19.3K
Run Growth: -9.3K
Growth Rate: -48.01%
Updated:September 30 2025
huggingface.co

Total runs: 19.1K
Run Growth: -20.3K
Growth Rate: -103.22%
Updated:April 14 2025
huggingface.co

Total runs: 15.5K
Run Growth: 14.4K
Growth Rate: 96.76%
Updated:September 04 2026
huggingface.co

Total runs: 14.6K
Run Growth: -3.9K
Growth Rate: -26.89%
Updated:November 23 2024
huggingface.co

Total runs: 14.3K
Run Growth: -12.2K
Growth Rate: -85.22%
Updated:December 23 2025
huggingface.co

Total runs: 13.2K
Run Growth: 2.4K
Growth Rate: 17.87%
Updated:December 09 2025
huggingface.co

Total runs: 9.5K
Run Growth: -389
Growth Rate: -4.09%
Updated:January 15 2026
huggingface.co

Total runs: 8.1K
Run Growth: -1.9K
Growth Rate: -24.16%
Updated:October 16 2025
huggingface.co

Total runs: 7.0K
Run Growth: -1.5K
Growth Rate: -20.79%
Updated:March 11 2025
huggingface.co

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

Total runs: 4.4K
Run Growth: -4.1K
Growth Rate: -92.25%
Updated:December 09 2025
huggingface.co

Total runs: 3.7K
Run Growth: -5.4K
Growth Rate: -145.93%
Updated:January 27 2025
huggingface.co

Total runs: 3.1K
Run Growth: -998
Growth Rate: -31.29%
Updated:October 25 2025
huggingface.co

Total runs: 2.9K
Run Growth: 883
Growth Rate: 30.11%
Updated:August 04 2024
huggingface.co

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

Total runs: 674
Run Growth: 279
Growth Rate: 41.21%
Updated:March 02 2023
huggingface.co

Total runs: 488
Run Growth: 266
Growth Rate: 59.64%
Updated:October 20 2023
huggingface.co

Total runs: 472
Run Growth: -278
Growth Rate: -59.78%
Updated:August 11 2025
huggingface.co

Total runs: 409
Run Growth: -1.0K
Growth Rate: -232.58%
Updated:January 02 2025
huggingface.co

Total runs: 393
Run Growth: 137
Growth Rate: 34.86%
Updated:December 10 2024
huggingface.co

Total runs: 356
Run Growth: -382
Growth Rate: -110.40%
Updated:October 25 2025
huggingface.co

Total runs: 291
Run Growth: 121
Growth Rate: 41.02%
Updated:March 02 2023
huggingface.co

Total runs: 275
Run Growth: 57
Growth Rate: 20.73%
Updated:November 20 2023
huggingface.co

Total runs: 262
Run Growth: 115
Growth Rate: 43.73%
Updated:October 20 2023
huggingface.co

Total runs: 253
Run Growth: 106
Growth Rate: 42.06%
Updated:October 20 2023