Parameters
32B
Context Length
128K
Modality
Text
Architecture
Dense
License
Custom Commercial License with Restrictions
Release Date
15 Jan 2024
Knowledge Cutoff
Dec 2023
API Pricing (per 1M)
Input: $0.44 · Output: $1.76
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
4x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
128,000 tokens
Consumer
4x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
Rank
#180
| Benchmark | Score | Rank |
|---|---|---|
General Text | 1273 | 161 |
Overall Rank
#180
Coding Rank
-
GLM-4 32B is a dense foundation model by Z.ai engineered for engineering-grade code generation, structured outputs, and bilingual reasoning. Trained on 15T tokens, it provides a stable engine for autonomous tool execution across a 128K context window.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
48
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
6,144
Number of Layers
61
FFN Intermediate Size (Dense)
13,696
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
151,552
General Language Models from Z.ai
Assistant
Online