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
@@ -0,0 +1 @@
|
||||
[gMASK]<sop><|system|>Reasoning Effort: Max<|user|>Describe<|begin_of_image|><|image|><|end_of_image|>briefly.<|assistant|><think>
|
||||
@@ -5,7 +5,7 @@
|
||||
"qwen3.6": { "bos": "", "eos": "<|im_end|>", "media": "<|vision_start|><|image_pad|><|vision_end|>" },
|
||||
"minicpm5": { "bos": "<s>", "eos": "</s>", "media": "" },
|
||||
"gemma4": { "bos": "<bos>", "eos": "<eos>", "media": "<|image|>" },
|
||||
"glm53": { "bos": "", "eos": "<|endoftext|>", "media": "" }
|
||||
"glm53": { "bos": "", "eos": "<|endoftext|>", "media": "<|begin_of_image|><|image|><|end_of_image|>" }
|
||||
},
|
||||
"tools": [
|
||||
{ "type": "function", "function": { "name": "read", "description": "Read a file.",
|
||||
@@ -117,7 +117,7 @@
|
||||
"kwargs": { "reasoning_effort": "high" },
|
||||
"messages": [ { "role": "user", "content": "Hi." } ] },
|
||||
{ "name": "a_picture_between_text",
|
||||
"models": ["qwen3.8", "qwen3.6", "gemma4"],
|
||||
"models": ["qwen3.8", "qwen3.6", "gemma4", "glm53"],
|
||||
"messages": [
|
||||
{ "role": "user", "content": [
|
||||
{ "type": "text", "text": "Describe" },
|
||||
|
||||
Reference in new issue
Block a user