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.
- Provider
- Zhipu AI (Z.ai)
- 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
- GLM-2B vs GPT-Neo-2.7B
- GLM-2B vs Japanese dialog transformers
- GLM-2B vs GPT-Neo-1.3B
- GLM-2B vs Engine-XL(NE)
- GLM-2B vs DeBERTa
- GLM-2B vs LongT5
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| GPT-Neo-2.7Bopen | EleutherAI | Mar 2021 | 2.7B | — | — | — | — |
| Japanese dialog transformersopen | NTT Communication Science Laboratories | Nov 2021 | 1.6B | — | — | — | — |
| GPT-Neo-1.3Bopen | EleutherAI | Mar 2021 | 1.4B | — | — | — | — |
| Engine-XL(NE)open | Boston University | Dec 2021 | 1.5B | — | — | — | — |
| DeBERTaopen | Microsoft | Jun 2021 | 1.5B | — | — | — | — |
| LongT5open | Google DeepMind | Dec 2021 | 3B | — | — | — | — |
| ALiBi (L=3072, Lvalid = 3072)open | Meta | Aug 2021 | 1.3B | — | — | — | — |
| Zidong Taichuopen | Chinese Academy of Sciences | Aug 2021 | 3.2B | — | — | — | — |
More models from Zhipu AI (Z.ai)
All Zhipu AI (Z.ai) models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GLM-5.3-Flashopen | Aug 2026 | 321B | 1M | $0.12 | $0.418 |
| GLM-5.3open | Aug 2026 | 753B | 1M | $1.20 | $4.18 |
| GLM-5.2open | Jun 2026 | 753B | 1M | $1.20 | $4.18 |
| GLM-5.1open | Apr 2026 | 754B | 200K | $0.896 | $3.59 |
| GLM-5open | Feb 2026 | 754B | 200K | $0.598 | $2.69 |
| GLM-4.7open | Dec 2025 | 358B | 200K | $0.448 | $2.09 |
| GLM-4.7-Flashopen | Jan 2026 | 31B | 200K | Free | Free |
| GLM-4.5-Airopen | Jul 2025 | 110B | 128K | $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.