Skip to content

Vision assistant_only_loss test: skip on TRL without the flag (GRPO fake-run floor red on main) - #17967

Merged
danielhanchen merged 1 commit into
mainfrom
fix-aol-vision-test-trl-floor
Nov 16, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-aol-vision-test-trl-floor

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

GRPO fake-run (CPU spoof, TRL floor) is red on main (seen on the staging run of #17966): every test in tests/version_compat/test_sft_assistant_only_loss_vision_routing.py, added to that lane by #17942, fails on the floor pins (TRL 0.18.2, transformers 4.52.4, torch 2.6.0):

AttributeError: 'SFTConfig' object has no attribute 'assistant_only_loss'
AttributeError: 'Qwen2VLProcessor' object has no attribute 'pad_token'
ValueError: The checkpoint you are trying to load has model type `qwen3_vl` but Transformers does not recognize this architecture.
AssertionError: assert [[151644, 894...]] == [[-100, -100, ...]]

TRL added SFTConfig.assistant_only_loss in 0.20. On TRL 0.18.2 the flag does not exist (dataclasses.fields(trl.SFTConfig) has only completion_only_loss), so a user cannot ask for assistant-only loss and #17942's routing has nothing to act on. The test still builds configs with the flag and expects masked labels, so every case fails on that lane. #17942's code is fine; the test assumed a TRL with the flag. Separately, Qwen3-VL does not exist in transformers 4.52, so that parameter cannot load there.

Change

Test only, tests/version_compat/test_sft_assistant_only_loss_vision_routing.py:

  • Skip the module, with the reason, when the installed TRL's SFTConfig has no assistant_only_loss field.
  • _load skips a model whose architecture the installed transformers does not know (it already skipped Hub fetch failures), instead of failing the parameter.

Testing

lane before after
floor: TRL 0.18.2, transformers 4.52.4, torch 2.6.0 8 failed 1 skipped (module, reason printed)
TRL 1.15, transformers 5.17 8 passed 8 passed

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T11:31:50.286876Z
We couldn’t complete this review. Comment @codex review to try again.
8d3b60d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 8d3b60da0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit b33d0bb into main Nov 16, 2026
@danielhanchen
danielhanchen deleted the fix-aol-vision-test-trl-floor branch November 16, 2026 11:35
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