ChatGLM
2
-6B is the second-generation version of the open-source bilingual (Chinese-English) chat model
ChatGLM-6B
. It retains the smooth conversation flow and low deployment threshold of the first-generation model, while introducing the following new features:
Stronger Performance
: Based on the development experience of the first-generation ChatGLM model, we have fully upgraded the base model of ChatGLM2-6B. ChatGLM2-6B uses the hybrid objective function of
GLM
, and has undergone pre-training with 1.4T bilingual tokens and human preference alignment training. The
evaluation results
show that, compared to the first-generation model, ChatGLM2-6B has achieved substantial improvements in performance on datasets like MMLU (+23%), CEval (+33%), GSM8K (+571%), BBH (+60%), showing strong competitiveness among models of the same size.
Longer Context
: Based on
FlashAttention
technique, we have extended the context length of the base model from 2K in ChatGLM-6B to 32K, and trained with a context length of 8K during the dialogue alignment, allowing for more rounds of dialogue. However, the current version of ChatGLM2-6B has limited understanding of single-round ultra-long documents, which we will focus on optimizing in future iterations.
More Efficient Inference
: Based on
Multi-Query Attention
technique, ChatGLM2-6B has more efficient inference speed and lower GPU memory usage: under the official implementation, the inference speed has increased by 42% compared to the first generation; under INT4 quantization, the dialogue length supported by 6G GPU memory has increased from 1K to 8K.
If you find our work helpful, 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.'}
}
Runs of zai-org chatglm2-6b-int4 on huggingface.co
581
Total runs
0
24-hour runs
22
3-day runs
19
7-day runs
208
30-day runs
More Information About chatglm2-6b-int4 huggingface.co Model
chatglm2-6b-int4 huggingface.co
chatglm2-6b-int4 huggingface.co is an AI model on huggingface.co that provides chatglm2-6b-int4's model effect (), which can be used instantly with this zai-org chatglm2-6b-int4 model. huggingface.co supports a free trial of the chatglm2-6b-int4 model, and also provides paid use of the chatglm2-6b-int4. Support call chatglm2-6b-int4 model through api, including Node.js, Python, http.
chatglm2-6b-int4 huggingface.co is an online trial and call api platform, which integrates chatglm2-6b-int4's modeling effects, including api services, and provides a free online trial of chatglm2-6b-int4, you can try chatglm2-6b-int4 online for free by clicking the link below.
zai-org chatglm2-6b-int4 online free url in huggingface.co:
chatglm2-6b-int4 is an open source model from GitHub that offers a free installation service, and any user can find chatglm2-6b-int4 on GitHub to install. At the same time, huggingface.co provides the effect of chatglm2-6b-int4 install, users can directly use chatglm2-6b-int4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.