Repository navigation
Ulysses Gemma 4 test: media towers no longer refuse CP after #17930 (rest-2 red on main) - #17955
Conversation
…pin that only the text stack is hooked
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Repo tests (CPU, rest-2)is red on main (seen on the staging run of #17933):Bisected to #17930 (the test passes on its parent, fails on it). #17930 deliberately stopped Gemma-4's vision and audio towers from deciding the context parallel route: CP batches are text only, so attention modules under a media tower are skipped by the route checks and get no Ulysses hooks. The test still expected
attach_attention_hookson a multimodal Gemma 4 to refuse with "Gemma4VisionAttention is bidirectional", which is exactly the refusal #17930 removed. The test is what is out of date.Change
Test only,
tests/test_ulysses_gemma4.py::test_gemma4_generic_route_gates: on the tiny multimodal Gemma 4,attach_attention_hooksnow has to succeed, the model must actually have media tower attention, and the set of hookedself_attnmodules must equal the text-stack ones exactly (no tower module hooked, no text module missed). That keeps the property the old refusal protected (bidirectional vision attention never runs through the causal Ulysses path) in the form #17930 implements it.Testing
tests/test_ulysses_gemma4.py: 24 passed (CPU, gloo). On main the test fails as above.unsloth/context_parallel.pymakes the new assertion fail (model.vision_tower.encoder.layers.0.self_attnhooked).