arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12793cs.CL
收藏

ChatGLM:从 GLM-130B 到 GLM-4 All Tools 的大型语言模型家族

ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools

Zhipu AI(智谱AI);Tsinghua University(清华大学)
Team GLM, :, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Dan Zhang, Diego Rojas, Guanyu Feng, Hanlin Zhao, Hanyu Lai, Hao Yu, Hongning Wang, Jiadai S… 展开作者

Team GLM, :, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Dan Zhang, Diego Rojas, Guanyu Feng, Hanlin Zhao, Hanyu Lai, Hao Yu, Hongning Wang, Jiadai Sun, Jiajie Zhang, Jiale Cheng, Jiayi Gui, Jie Tang, Jing Zhang, Jingyu Sun, Juanzi Li, Lei Zhao, Lindong Wu, Lucen Zhong, Mingdao Liu, Minlie Huang, Peng Zhang, Qinkai Zheng, Rui Lu, Shuaiqi Duan, Shudan Zhang, Shulin Cao, Shuxun Yang, Weng Lam Tam, Wenyi Zhao, Xiao Liu, Xiao Xia, Xiaohan Zhang, Xiaotao Gu, Xin Lv, Xinghan Liu, Xinyi Liu, Xinyue Yang, Xixuan Song, Xunkai Zhang, Yifan An, Yifan Xu, Yilin Niu, Yuantao Yang, Yueyan Li, Yushi Bai, Yuxiao Dong, Zehan Qi, Zhaoyu Wang, Zhen Yang, Zhengxiao Du, Zhenyu Hou, Zihan Wang

AI总结:

本文介绍了 ChatGLM 大型语言模型家族,重点阐述 GLM-4 系列模型的预训练、多阶段对齐方法及全能工具调用能力,其在多项基准上匹敌 GPT-4 并开源了多代模型。

摘要:

我们介绍了 ChatGLM,这是一个我们随着时间推移不断开发的大型语言模型家族。本报告主要关注 GLM-4 语言系列,包括 GLM-4、GLM-4-Air 和 GLM-4-9B。它们代表了我们最强大的模型,这些模型是利用从前三代 ChatGLM 中获得的所有见解和经验教训进行训练的。迄今为止,GLM-4 模型主要基于中英文的十万亿 tokens 进行预训练,以及来自 24 种语言的一小部分语料库,并主要针对中文和英文使用进行了对齐。高质量的对齐是通过多阶段后训练过程实现的,该过程涉及监督微调和基于人类反馈的学习。评估显示,GLM-4 1) 在 MMLU、GSM8K、MATH、BBH、GPQA 和 HumanEval 等通用指标上接近或优于 GPT-4;2) 在由 IFEval 测量的指令遵循方面接近 GPT-4-Turbo;3) 在长上下文任务上匹敌 GPT-4 Turbo (128K) 和 Claude 3;4) 在由 AlignBench 测量的中文对齐方面优于 GPT-4。GLM-4 All Tools 模型进一步对齐以理解用户意图,并自主决定何时以及使用哪些工具——包括网络浏览器、Python 解释器、文本到图像模型和用户自定义函数——来有效完成复杂任务。在实际应用中,它在通过网页浏览访问在线信息和使用 Python 解释器解决数学问题等任务上匹敌甚至超越了 GPT-4 All Tools。在此过程中,我们开源了一系列模型,包括 ChatGLM-6B(三代)、GLM-4-9B (128K, 1M)、GLM-4V-9B、WebGLM 和 CodeGeeX,仅在 2023 年就在 Hugging face 上吸引了超过 1000 万次下载。开放模型可通过 https://github.com/THUDM 和 https://huggingface.co/THUDM 访问。

英文摘要:

We introduce ChatGLM, an evolving family of large language models that we have been developing over time. This report primarily focuses on the GLM-4 language series, which includes GLM-4, GLM-4-Air, and GLM-4-9B. They represent our most capable models that are trained with all the insights and lessons gained from the preceding three generations of ChatGLM. To date, the GLM-4 models are pre-trained on ten trillions of tokens mostly in Chinese and English, along with a small set of corpus from 24 languages, and aligned primarily for Chinese and English usage. The high-quality alignment is achieved via a multi-stage post-training process, which involves supervised fine-tuning and learning from human feedback. Evaluations show that GLM-4 1) closely rivals or outperforms GPT-4 in terms of general metrics such as MMLU, GSM8K, MATH, BBH, GPQA, and HumanEval, 2) gets close to GPT-4-Turbo in instruction following as measured by IFEval, 3) matches GPT-4 Turbo (128K) and Claude 3 for long context tasks, and 4) outperforms GPT-4 in Chinese alignments as measured by AlignBench. The GLM-4 All Tools model is further aligned to understand user intent and autonomously decide when and which tool(s) touse -- including web browser, Python interpreter, text-to-image model, and user-defined functions -- to effectively complete complex tasks. In practical applications, it matches and even surpasses GPT-4 All Tools in tasks like accessing online information via web browsing and solving math problems using Python interpreter. Over the course, we have open-sourced a series of models, including ChatGLM-6B (three generations), GLM-4-9B (128K, 1M), GLM-4V-9B, WebGLM, and CodeGeeX, attracting over 10 million downloads on Hugging face in the year 2023 alone. The open models can be accessed through https://github.com/THUDM and https://huggingface.co/THUDM.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑