Archived
tests: GLM-5.3's template renders a picture as the reference does; its tower against transformers
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>
This commit is contained in:
1 parent
2387a23e00
commit
1f7e1faa73
4 files changed
+187
-3
No files matched your search
+1
-1
@@ -289,7 +289,7 @@ TEST(every_shipped_template_renders_as_reference_jinja_does) {
|
||||
}
|
||||
}
|
||||
/* Five templates, every case each one renders. */
|
||||
CHECK(compared >= 73);
|
||||
CHECK(compared >= 74);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ reading the reply back */
|
||||
|
||||
Reference in new issue
Block a user