GLM is a General Language Model pretrained with an autoregressive blank-filling objective and can be finetuned on various natural language understanding and generation tasks.
Please refer to our paper for a detailed description of GLM:
glm-2b
is pretrained on the
Pile
dataset. It has 36 transformer layers, with hidden size 4096 and 64 attention heads in each layer. The model is pretrained with autoregressive blank filling objectives designed for natural language understanding, seq2seq, and language modeling. Find more details from our
repo
.
We use three different mask tokens for different tasks:
[MASK]
for short blank filling,
[sMASK]
for sentence filling, and
[gMASK]
for left to right generation. You can find examples about different masks from
here
. The prediction always begin with a special
<|startofpiece|>
token and ends with a
<|endofpiece|>
token.
Citation
Please cite our paper if you find this code useful for your research:
@article{DBLP:conf/acl/DuQLDQY022,
author = {Zhengxiao Du and
Yujie Qian and
Xiao Liu and
Ming Ding and
Jiezhong Qiu and
Zhilin Yang and
Jie Tang},
title = {{GLM:} General Language Model Pretraining with Autoregressive Blank Infilling},
booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational
Linguistics (Volume 1: Long Papers), {ACL} 2022, Dublin, Ireland,
May 22-27, 2022},
pages = {320--335},
publisher = {Association for Computational Linguistics},
year = {2022},
}
Runs of THUDM glm-2b on huggingface.co
25
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About glm-2b huggingface.co Model
glm-2b huggingface.co
glm-2b huggingface.co is an AI model on huggingface.co that provides glm-2b's model effect (), which can be used instantly with this THUDM glm-2b model. huggingface.co supports a free trial of the glm-2b model, and also provides paid use of the glm-2b. Support call glm-2b model through api, including Node.js, Python, http.
glm-2b huggingface.co is an online trial and call api platform, which integrates glm-2b's modeling effects, including api services, and provides a free online trial of glm-2b, you can try glm-2b online for free by clicking the link below.
glm-2b is an open source model from GitHub that offers a free installation service, and any user can find glm-2b on GitHub to install. At the same time, huggingface.co provides the effect of glm-2b install, users can directly use glm-2b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.