immanuelpeter/GLM-5.3-Flash-Vision

Model

GLM-5.3-Flash Vision

0

2 commits

1 linked in READMEs

updated Sep 17, 2026

See the code

README

GLM-5.3-Flash Vision

This repository packages the native vision encoder and learned merger from GLM-5.3-Flash.

Contents

FileTensorsWhat it holds
model.safetensors347Tower and learned merger, extracted from source shard 62
config.jsonVision-only Glm5NextVisionConfig
preprocessor_config.jsonGLM image preprocessing configuration

Architecture

ComponentDetails
Tower24 blocks, 1024 hidden, 16 heads, 4096 intermediate, patch size 14, image size 448, axial 2D-RoPE, silu
Patch embedConv3d, temporal patch size 2
Token compression2x2 spatial grouping of 1024-wide patches to 4096
Learned mergerLinear(4096, 4096) no bias, LayerNorm(4096), GELU, SwiGLU with Linear(4096, 10240) gate and up, Linear(10240, 4096) down, silu, clamp 10

Usage

See examples/inference.py for image feature extraction.

Validation

The parity script compares all 347 tensors with the pinned parent checkpoint using torch.equal.

Reproduction

The export script reads model.visual.* from shard 62 of zai-org/GLM-5.3-Flash, removes the prefix, and writes the original BF16 tensors. It copies the image section of the parent processor configuration.

Credits

Z.ai released the GLM-5.3-Flash weights and the native Transformers implementation.

License

MIT License, the same license as the source model.

endpoints_compatible
feature-extraction
glm5_next_vision
image-feature-extraction
safetensors
transformers
vision

Contributors

immanuelpeter

2 commits

immanuelpeter/GLM-5.3-Flash-Vision

Model

GLM-5.3-Flash Vision

0

2 commits

1 linked in READMEs

updated Sep 17, 2026

See the code

README

GLM-5.3-Flash Vision

This repository packages the native vision encoder and learned merger from GLM-5.3-Flash.

Contents

FileTensorsWhat it holds
model.safetensors347Tower and learned merger, extracted from source shard 62
config.jsonVision-only Glm5NextVisionConfig
preprocessor_config.jsonGLM image preprocessing configuration

Architecture

ComponentDetails
Tower24 blocks, 1024 hidden, 16 heads, 4096 intermediate, patch size 14, image size 448, axial 2D-RoPE, silu
Patch embedConv3d, temporal patch size 2
Token compression2x2 spatial grouping of 1024-wide patches to 4096
Learned mergerLinear(4096, 4096) no bias, LayerNorm(4096), GELU, SwiGLU with Linear(4096, 10240) gate and up, Linear(10240, 4096) down, silu, clamp 10

Usage

See examples/inference.py for image feature extraction.

Validation

The parity script compares all 347 tensors with the pinned parent checkpoint using torch.equal.

Reproduction

The export script reads model.visual.* from shard 62 of zai-org/GLM-5.3-Flash, removes the prefix, and writes the original BF16 tensors. It copies the image section of the parent processor configuration.

Credits

Z.ai released the GLM-5.3-Flash weights and the native Transformers implementation.

License

MIT License, the same license as the source model.

endpoints_compatible
feature-extraction
glm5_next_vision
image-feature-extraction
safetensors
transformers
vision

Contributors

immanuelpeter

2 commits