zai-org / glm-2b

huggingface.co
Total runs: 295
24-hour runs: 0
7-day runs: 1
30-day runs: 127
Model's Last Updated: March 02 2023
feature-extraction

Introduction of glm-2b

Model Details of glm-2b

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: General Language Model Pretraining with Autoregressive Blank Infilling (ACL 2022)

Zhengxiao Du*, Yujie Qian*, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, Jie Tang (*: equal contribution)

Find more examples in our Github repo .

Model description

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 .

How to use

Please refer the instruction in our Github 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 zai-org glm-2b on huggingface.co

295
Total runs
0
24-hour runs
-7
3-day runs
1
7-day runs
127
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 zai-org 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.

zai-org glm-2b online free

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.

zai-org glm-2b online free url in huggingface.co:

https://huggingface.co/zai-org/glm-2b

glm-2b install

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.

glm-2b install url in huggingface.co:

https://huggingface.co/zai-org/glm-2b

Url of glm-2b

glm-2b huggingface.co Url

Provider of glm-2b huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

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

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

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

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

Total runs: 982.0K
Run Growth: -1.8M
Growth Rate: -185.69%
Updated:September 01 2026
huggingface.co

Total runs: 745.7K
Run Growth: 703.7K
Growth Rate: 98.76%
Updated:September 04 2026
huggingface.co

Total runs: 445.4K
Run Growth: -19.6K
Growth Rate: -4.41%
Updated:August 04 2024
huggingface.co

Total runs: 227.0K
Run Growth: -238.4K
Growth Rate: -100.00%
Updated:April 16 2026
huggingface.co

Total runs: 158.6K
Run Growth: -861.0K
Growth Rate: -490.91%
Updated:April 05 2026
huggingface.co

Total runs: 100.1K
Run Growth: -150.2K
Growth Rate: -152.55%
Updated:August 11 2025
huggingface.co

Total runs: 93.0K
Run Growth: 19.3K
Growth Rate: 21.31%
Updated:January 29 2026
huggingface.co

Total runs: 90.1K
Run Growth: 13.0K
Growth Rate: 14.12%
Updated:May 13 2026
huggingface.co

Total runs: 89.9K
Run Growth: -1.8K
Growth Rate: -2.02%
Updated:March 13 2025
huggingface.co

Total runs: 85.5K
Run Growth: -39.5K
Growth Rate: -47.86%
Updated:August 11 2025
huggingface.co

Total runs: 76.9K
Run Growth: -75.2K
Growth Rate: -97.75%
Updated:December 10 2025
huggingface.co

Total runs: 63.6K
Run Growth: -20.9K
Growth Rate: -32.83%
Updated:December 05 2024
huggingface.co

Total runs: 56.9K
Run Growth: -67.8K
Growth Rate: -119.27%
Updated:August 11 2026
huggingface.co

Total runs: 45.1K
Run Growth: -76.9K
Growth Rate: -171.70%
Updated:October 25 2025
huggingface.co

Total runs: 22.2K
Run Growth: 4.5K
Growth Rate: 20.09%
Updated:November 23 2024
huggingface.co

Total runs: 20.6K
Run Growth: -58.0K
Growth Rate: -283.77%
Updated:March 03 2025
huggingface.co

Total runs: 20.2K
Run Growth: -20.2K
Growth Rate: -100.38%
Updated:April 14 2025
huggingface.co

Total runs: 18.6K
Run Growth: -9.8K
Growth Rate: -53.85%
Updated:September 30 2025
huggingface.co

Total runs: 15.9K
Run Growth: -2.4K
Growth Rate: -14.78%
Updated:November 23 2024
huggingface.co

Total runs: 14.9K
Run Growth: 13.7K
Growth Rate: 96.61%
Updated:September 04 2026
huggingface.co

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

Total runs: 13.0K
Run Growth: 2.5K
Growth Rate: 18.69%
Updated:December 09 2025
huggingface.co

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

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

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

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

Total runs: 5.3K
Run Growth: -2.2K
Growth Rate: -41.08%
Updated:January 27 2025
huggingface.co

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

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

Total runs: 3.0K
Run Growth: 999
Growth Rate: 32.98%
Updated:August 04 2024
huggingface.co

Total runs: 1.8K
Run Growth: 901
Growth Rate: 50.03%
Updated:August 12 2025
huggingface.co

Total runs: 675
Run Growth: 281
Growth Rate: 41.45%
Updated:March 02 2023
huggingface.co

Total runs: 464
Run Growth: -67
Growth Rate: -11.63%
Updated:August 11 2025
huggingface.co

Total runs: 440
Run Growth: -1.1K
Growth Rate: -261.28%
Updated:January 02 2025
huggingface.co

Total runs: 427
Run Growth: 250
Growth Rate: 58.55%
Updated:October 20 2023
huggingface.co

Total runs: 383
Run Growth: 123
Growth Rate: 32.11%
Updated:December 10 2024
huggingface.co

Total runs: 344
Run Growth: -398
Growth Rate: -122.09%
Updated:October 25 2025
huggingface.co

Total runs: 279
Run Growth: 69
Growth Rate: 24.73%
Updated:November 20 2023
huggingface.co

Total runs: 263
Run Growth: 116
Growth Rate: 44.11%
Updated:October 20 2023
huggingface.co

Total runs: 249
Run Growth: 105
Growth Rate: 42.17%
Updated:October 20 2023