Archived
The golden renders gain GLM-5.3's picture between text: the engine's media marker becomes <|begin_of_image|><|image|><|end_of_image|> with no separator, as the template's own emit_image() writes it (tests/mkchatgolden.py). tests/glm5_vision_reference.py runs transformers' tower alone on the CPU (only model.visual.*, about 3 GB) over the pictures of one encoder pass and writes the processor's patches and the merger's rows, with --taps the tensors on the way (the patch embedding, block 0's q and k after the rotary, blocks 0, 11 and 23, the post-norm, the downsample), in bf16 or f32. With --compare it checks what an engine wrote with RADIANCE_DEBUG_MM_DUMP: patches bit for bit, rows to a cosine of 0.99 and a median per-row relative error of 0.08 against the bf16 reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>