Open Source
Open Weights

Parameters

9B

Context Length

128K

Modality

Multimodal

Auxiliary Parameters

1.1B

Architecture

Dense

KV Cache Rate

640 KB/tok

License

MIT License

Release Date

15 Jan 2024

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.60 · Output: $1.80

Hardware & System Requirements

Precision

Context

Workload Memory: 11.69 GB

INT4 · 8K context

Base Weights: 4.19 GB

KV Cache: 5.00 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

11.7 / 21.6 GB

1x RTX 4060 Ti 16GB

11.7 / 14.9 GB

Apple M4 24GB

11.7 / 18.0 GB

Determine requirements for your specific workload:

Runtime requirements

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.44.0

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Additional required packages

Install alongside standard runtime libraries:

pip install flash_attn

Architecture Diagram

Evaluation Benchmarks

No evaluation benchmarks for GLM-4V available.

Rankings

Overall Rank

-

Coding Rank

-

About GLM-4V

GLM-4V is a multimodal vision-language model developed by Z.ai for high-resolution image analysis, visual question answering, and video comprehension. It integrates a 4K-capable Vision Transformer with the GLM language backbone for cross-modal reasoning.

Specifications

Attention

Attention Structure

Multi-Head Attention

Attention Heads

32

Key-Value Heads

32

Attention Head Dimension

128

Position Embedding

Absolute Position Embedding

Normalization

RMS Normalization

Dimensions

Base Precision

FP16

Auxiliary Parameters

1.1B

Hidden Dimension Size

4,096

Number of Layers

40

FFN Intermediate Size (Dense)

13,696

Tokenizer

Vocabulary Size

151,552