Skip to content

test: synthetic vision-merge model proves fix correctness#226

Merged
abrichr merged 1 commit into
mainfrom
test/vision-merge-synthetic
Mar 29, 2026
Merged

test: synthetic vision-merge model proves fix correctness#226
abrichr merged 1 commit into
mainfrom
test/vision-merge-synthetic

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 29, 2026

VisionMergeModel mimics Qwen's placeholder→features merge. Proves old approach crashes, new approach works. 12 tests, 0.05s, no GPU.

VisionMergeModel mimics Qwen2.5/3.5-VL: replaces placeholder tokens
with N visual features, changing sequence length. 4 new tests:

- test_manual_concat_crashes: OLD approach → IndexError (mask mismatch)
- test_unified_processor_works: NEW approach → correct post-merge shape
- test_no_vision_no_merge: no pixel_values → no merge → mask safe
- test_exclude_strips_vision: exclude mode → no pixel_values → safe

Architecture-agnostic. 12/12 pass in 0.05s.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit 2355d53 into main Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant