Parameters
6B
Context Length
33K
Modality
Text
Architecture
Dense
License
Custom License (ChatGLM2-6B License)
Release Date
25 Jun 2023
Knowledge Cutoff
-
API Pricing (per 1M)
Self-hosted only
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
32,768 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
Rank
#202
| Benchmark | Score | Rank |
|---|---|---|
General Text | 1024 | 159 |
Overall Rank
#202
Coding Rank
-
ChatGLM2-6B is the second-generation bilingual conversational model by THUDM featuring Multi-Query Attention and FlashAttention. It offers improved inference speed, low latency, and extended context retention on consumer hardware.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
32
Key-Value Heads
2
Attention Head Dimension
128
Position Embedding
Absolute Position Embedding
RoPE Theta
-
Sliding Window Attention
No
Sliding Window Size
-
Sliding Window Ratio
-
Linear Attention
-
Linear Attention Ratio
-
Normalization
RMS Normalization
Activation Function
SwigLU
Dimensions
Hidden Dimension Size
4,096
Number of Layers
28
FFN Intermediate Size (Dense)
13,696
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
65,024
ChatGLM series models from Z.ai, based on GLM architecture.
APX AI
Online