THUDM / chatglm3-6b

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

Introduction of chatglm3-6b

Model Details of chatglm3-6b

ChatGLM3-6B

💻 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

GLM-4 开源模型

我们已经发布最新的 GLM-4 模型,该模型在多个指标上有了新的突破,您可以在以下两个渠道体验我们的最新模型。

  • GLM-4 开源模型 我们已经开源了 GLM-4-9B 系列模型,在各项指标的测试上有明显提升,欢迎尝试。
介绍 (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 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 .
软件依赖 (Dependencies)
pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 gradio mdtex2html sentencepiece accelerate
代码调用 (Code Usage)

可以通过如下代码调用 ChatGLM3-6B 模型来生成对话:

You can generate dialogue by invoking the ChatGLM3-6B model with the following code:

>>> from transformers import AutoTokenizer, AutoModel
>>> tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm3-6b", trust_remote_code=True)
>>> model = AutoModel.from_pretrained("THUDM/chatglm3-6b", trust_remote_code=True).half().cuda()
>>> model = model.eval()
>>> response, history = model.chat(tokenizer, "你好", history=[])
>>> print(response)
你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你,欢迎问我任何问题。
>>> response, history = model.chat(tokenizer, "晚上睡不着应该怎么办", history=history)
>>> print(response)
晚上睡不着可能会让你感到焦虑或不舒服,但以下是一些可以帮助你入睡的方法:

1. 制定规律的睡眠时间表:保持规律的睡眠时间表可以帮助你建立健康的睡眠习惯,使你更容易入睡。尽量在每天的相同时间上床,并在同一时间起床。
2. 创造一个舒适的睡眠环境:确保睡眠环境舒适,安静,黑暗且温度适宜。可以使用舒适的床上用品,并保持房间通风。
3. 放松身心:在睡前做些放松的活动,例如泡个热水澡,听些轻柔的音乐,阅读一些有趣的书籍等,有助于缓解紧张和焦虑,使你更容易入睡。
4. 避免饮用含有咖啡因的饮料:咖啡因是一种刺激性物质,会影响你的睡眠质量。尽量避免在睡前饮用含有咖啡因的饮料,例如咖啡,茶和可乐。
5. 避免在床上做与睡眠无关的事情:在床上做些与睡眠无关的事情,例如看电影,玩游戏或工作等,可能会干扰你的睡眠。
6. 尝试呼吸技巧:深呼吸是一种放松技巧,可以帮助你缓解紧张和焦虑,使你更容易入睡。试着慢慢吸气,保持几秒钟,然后缓慢呼气。

如果这些方法无法帮助你入睡,你可以考虑咨询医生或睡眠专家,寻求进一步的建议。

关于更多的使用说明,包括如何运行命令行和网页版本的 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.

@article{zeng2022glm,
  title={Glm-130b: An open bilingual pre-trained model},
  author={Zeng, Aohan and Liu, Xiao and Du, Zhengxiao and Wang, Zihan and Lai, Hanyu and Ding, Ming and Yang, Zhuoyi and Xu, Yifan and Zheng, Wendi and Xia, Xiao and others},
  journal={arXiv preprint arXiv:2210.02414},
  year={2022}
}
@inproceedings{du2022glm,
  title={GLM: General Language Model Pretraining with Autoregressive Blank Infilling},
  author={Du, Zhengxiao and Qian, Yujie and Liu, Xiao and Ding, Ming and Qiu, Jiezhong and Yang, Zhilin and Tang, Jie},
  booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={320--335},
  year={2022}
}

Runs of THUDM chatglm3-6b on huggingface.co

30.4K
Total runs
0
24-hour runs
-269
3-day runs
-571
7-day runs
1.5K
30-day runs

More Information About chatglm3-6b huggingface.co Model

chatglm3-6b huggingface.co

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

chatglm3-6b huggingface.co Url

https://huggingface.co/THUDM/chatglm3-6b

THUDM chatglm3-6b online free

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

THUDM chatglm3-6b online free url in huggingface.co:

https://huggingface.co/THUDM/chatglm3-6b

chatglm3-6b install

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

chatglm3-6b install url in huggingface.co:

https://huggingface.co/THUDM/chatglm3-6b

Url of chatglm3-6b

chatglm3-6b huggingface.co Url

Provider of chatglm3-6b huggingface.co

THUDM
ORGANIZATIONS

Other API from THUDM

huggingface.co

Total runs: 686.3K
Run Growth: 17.0K
Growth Rate: 2.46%
Updated: August 04 2024
huggingface.co

Total runs: 490.9K
Run Growth: 34.2K
Growth Rate: 6.97%
Updated: November 25 2024
huggingface.co

Total runs: 112.8K
Run Growth: -6.9K
Growth Rate: -6.05%
Updated: November 23 2024
huggingface.co

Total runs: 102.8K
Run Growth: -24.9K
Growth Rate: -29.03%
Updated: November 23 2024
huggingface.co

Total runs: 80.1K
Run Growth: -34.0K
Growth Rate: -41.49%
Updated: January 25 2025
huggingface.co

Total runs: 50.0K
Run Growth: 3.8K
Growth Rate: 100.00%
Updated: January 02 2025
huggingface.co

Total runs: 41.2K
Run Growth: 8.6K
Growth Rate: 21.15%
Updated: November 23 2024
huggingface.co

Total runs: 13.4K
Run Growth: -43.3K
Growth Rate: -287.99%
Updated: December 19 2023
huggingface.co

Total runs: 8.6K
Run Growth: 388
Growth Rate: 4.44%
Updated: August 04 2024
huggingface.co

Total runs: 8.0K
Run Growth: 8.2K
Growth Rate: 93.67%
Updated: November 20 2024
huggingface.co

Total runs: 6.1K
Run Growth: -6.3K
Growth Rate: -100.98%
Updated: November 20 2024
huggingface.co

Total runs: 4.3K
Run Growth: -9.2K
Growth Rate: -209.31%
Updated: December 05 2024
huggingface.co

Total runs: 3.7K
Run Growth: -1.4K
Growth Rate: -23.42%
Updated: October 25 2024
huggingface.co

Total runs: 1.4K
Run Growth: -149
Growth Rate: -10.46%
Updated: December 29 2024
huggingface.co

Total runs: 910
Run Growth: -391
Growth Rate: -39.10%
Updated: August 04 2024
huggingface.co

Total runs: 835
Run Growth: 338
Growth Rate: 39.26%
Updated: March 02 2023
huggingface.co

Total runs: 782
Run Growth: -1.2K
Growth Rate: -159.44%
Updated: August 04 2024
huggingface.co

Total runs: 773
Run Growth: -1.4K
Growth Rate: -167.77%
Updated: December 24 2024
huggingface.co

Total runs: 552
Run Growth: 346
Growth Rate: 60.49%
Updated: March 02 2023
huggingface.co

Total runs: 475
Run Growth: -100
Growth Rate: -21.01%
Updated: January 03 2024
huggingface.co

Total runs: 249
Run Growth: -151
Growth Rate: -61.38%
Updated: August 04 2024
huggingface.co

Total runs: 237
Run Growth: -163
Growth Rate: -68.78%
Updated: October 20 2023
huggingface.co

Total runs: 198
Run Growth: 317
Growth Rate: 100.00%
Updated: January 02 2025
huggingface.co

Total runs: 166
Run Growth: -222
Growth Rate: -132.14%
Updated: December 10 2024
huggingface.co

Total runs: 139
Run Growth: 10
Growth Rate: 6.90%
Updated: November 20 2023
huggingface.co

Total runs: 138
Run Growth: 87
Growth Rate: 61.27%
Updated: July 24 2023
huggingface.co

Total runs: 114
Run Growth: -440
Growth Rate: -354.84%
Updated: August 04 2024
huggingface.co

Total runs: 42
Run Growth: 0
Growth Rate: 0.00%
Updated: January 27 2025
huggingface.co

Total runs: 35
Run Growth: 12
Growth Rate: 34.29%
Updated: October 20 2023
huggingface.co

Total runs: 19
Run Growth: 43
Growth Rate: 41.35%
Updated: November 05 2024
huggingface.co

Total runs: 15
Run Growth: -12
Growth Rate: -80.00%
Updated: October 20 2023
huggingface.co

Total runs: 7
Run Growth: 2
Growth Rate: 25.00%
Updated: September 22 2023
huggingface.co

Total runs: 7
Run Growth: -7
Growth Rate: -175.00%
Updated: July 22 2024
huggingface.co

Total runs: 5
Run Growth: -4
Growth Rate: -80.00%
Updated: July 22 2024
huggingface.co

Total runs: 5
Run Growth: -7
Growth Rate: -140.00%
Updated: July 24 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: May 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: December 13 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: June 23 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: July 18 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: June 11 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: December 18 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: December 05 2024