Parameters
9B
Context Length
1M
Modality
Text
Architecture
Dense
KV Cache Rate
40 KB/tok
License
MIT License
Release Date
30 Jun 2024
Knowledge Cutoff
Jan 2024
API Pricing (per 1M)
Self-hosted only
Precision
Context
Workload Memory: 7.00 GB
INT4 · 8K context · 1 user
Base Weights: 4.19 GB
KV Cache: 0.31 GB
Runtime & Graphs: 2.50 GB
1x NVIDIA L4 24GB
7.0 / 21.6 GB
1x RTX 3060 12GB
7.0 / 11.2 GB
Apple M4 24GB
7.0 / 18.0 GB
Determine requirements for concurrent users or multi-node clusters:
Verified on hardware and checkpoint files.
Checkpoint format
BF16
PyTorch
2.6.0
Transformers
5.22.2
| Architecture | Precision | Kernel |
|---|---|---|
Apple Silicon | Native FP16 | Metal Performance Shaders |
No evaluation benchmarks for GLM-4-9B-Chat-1M available.
Overall Rank
-
Coding Rank
-
GLM-4-9B-Chat-1M is a specialized open-weights model by Z.ai engineered for ultra-long document analysis and multi-hour transcript processing. It delivers high needle-in-a-haystack retrieval accuracy across a massive 1M token context window.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
32
Key-Value Heads
2
Attention Head Dimension
128
Position Embedding
Absolute Position Embedding
Normalization
RMS Normalization
Activation Function
SwiGLU
Dimensions
Base Precision
BF16
Hidden Dimension Size
4,096
Number of Layers
40
FFN Intermediate Size (Dense)
13,696
Tokenizer
Vocabulary Size
151,552
General Language Models from Z.ai