Skip to content
llmmodels
Chat LLMOpen weightsHistorical

GLM-2B

by Zhipu AI (Z.ai) · Mar 18, 2021

GLM-2B is an open-weight chat llm from Zhipu AI (Z.ai), released Mar 18, 2021. It has 2B parameters.

Released
Mar 18, 2021
Type
Chat LLM
Parameters
2B
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
Open (permissive)
Knowledge cutoff
—
Status
Historical
Training data
33B tokens/words

About GLM-2B

There have been various types of pretraining architectures including autoencoding models (e.g., BERT), autoregressive models (e.g., GPT), and encoder-decoder models (e.g., T5). However, none of the pretraining frameworks performs the best for all tasks of three main categories including natural language understanding (NLU), unconditional generation, and conditional generation. We propose a General Language Model (GLM) based on autoregressive blank infilling to address this challenge.

How to run GLM-2B

GLM-2B is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 2B parameters it needs roughly 1 GB of memory at 4-bit quantization.

GLM-2B vs alternatives

Alternatives to GLM-2B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
GPT-Neo-2.7BopenEleutherAIMar 20212.7B————
Japanese dialog transformersopenNTT Communication Science LaboratoriesNov 20211.6B————
GPT-Neo-1.3BopenEleutherAIMar 20211.4B————
Engine-XL(NE)openBoston UniversityDec 20211.5B————
DeBERTaopenMicrosoftJun 20211.5B————
LongT5openGoogle DeepMindDec 20213B————
ALiBi (L=3072, Lvalid = 3072)openMetaAug 20211.3B————
Zidong TaichuopenChinese Academy of SciencesAug 20213.2B————

More models from Zhipu AI (Z.ai)

All Zhipu AI (Z.ai) models →
ModelReleasedParamsContextInput $/1MOutput $/1M
GLM-5.3-FlashopenAug 2026321B1M$0.12$0.418
GLM-5.3openAug 2026753B1M$1.20$4.18
GLM-5.2openJun 2026753B1M$1.20$4.18
GLM-5.1openApr 2026754B200K$0.896$3.59
GLM-5openFeb 2026754B200K$0.598$2.69
GLM-4.7openDec 2025358B200K$0.448$2.09
GLM-4.7-FlashopenJan 202631B200KFreeFree
GLM-4.5-AiropenJul 2025110B128K$0.12$0.896

Frequently asked questions

Who made GLM-2B?

GLM-2B was developed by Zhipu AI (Z.ai) (China,China,United States of America). It was released on Mar 18, 2021.

Is GLM-2B open source?

Yes. GLM-2B's weights are publicly available, so you can download and run it yourself.

How many parameters does GLM-2B have?

GLM-2B has 2B parameters.

Sources: epoch · paper. Last updated 2026-11-22.