docs: GLM-5.3's vision -- the tower, its processor and traps, converting, serving

ARCHITECTURES.md's glm5next section describes the tower, the processor's budget against the
encoder pass, and the readings that are wrong without an error (the downsample's column order, the
rotary's pairing, no rotary in the language model, the draft head's image rows), with what the
tower measured against transformers. GUIDE.md, spec.md §11, PLUGIN.md, the README and the compose
file say GLM-5.3 takes pictures and how a container gains the tower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NunzeandClaude Opus 5.5 authored and StillDeadcode committed 2026-10-22 11:06:34 +02:00
1 parent 1f7e1faa73
commit c4a47673f2
6 files changed
+96 -19

No files matched your search

+7 -2
View File
@@ -1248,7 +1248,8 @@ of a linear-attention kernel pair's schema (`docs/OPS.md`).
**Coverage.** Pictures and video on every Qwen container that carries the vision tower
(Qwen3.8-27B in bf16 and fp8, Qwen3.6-35B-A3B, Qwen3.8-Flash-Next) and on Gemma 4 31B
(`gemma4_bf16`); pictures on LFM2-VL; pictures, video and audio as EmbeddingGemma 2 input. Media
(`gemma4_bf16`); pictures on LFM2-VL and GLM-5.3-Flash; pictures, video and audio as EmbeddingGemma
2 input. Media
arrive as `image_url` / `video_url` chat parts (`input_image` / `input_video` in the Responses
API) and audio as `input_audio` / `audio_url`, as `data:` URLs only: fetching a caller's URL would
make the server an SSRF proxy.
@@ -1266,6 +1267,9 @@ colour matrix and range. The family comes from the container (`core/mm/processor
1120); a video is frames at `fps`, each its own segment at the per-frame budget.
- **LFM2-VL.** A picture within its token budget is resized whole; a larger one is cut into tiles
followed by a thumbnail. Images only.
- **GLM-5.3.** A canvas of whole merged patches within a token budget; the picture keeps its aspect
ratio, is resized only past the budget or under its floor, and is padded black to the canvas.
Images only, the tokens at their positions (the language model has no rotary).
`tests/mm_test.cpp` checks the processor against goldens generated by `tests/mkgolden.py` from
transformers' own functions. A media part reaches the chat template as a marker that the part join
@@ -1273,7 +1277,8 @@ leaves unpadded, so an image prompt tokenises to the reference's ids.
**The encoder is the language model's plugin.** The tower is declared last by the language model's
plugin (for Qwen, `arch/common/rad_block_vit.h` in `qwen35_bf16`, `qwen35_fp8`, `qwen35moe_fp8` and
`qwen4exp_fp8`) when the container carries its weights and the deployment asks for an encoder
`qwen4exp_fp8`; for GLM-5.3, `arch/common/rad_block_glm_vision.h` in `glm5next`) when the container
carries its weights and the deployment asks for an encoder
(`--mm-max-patches`; `auto` is 16384 patches a pass when the container has a tower, a 2048 x 2048
picture at 16x16 patches; a larger picture is resized to fit, since a segment is never split). Its
weights are `RAD_ACCESS_PER_REQUEST` in groups past every text layer, declared with one