Skip to content

Tests: the supplied-component twins check runs where diffusers is not installed - #16126

Merged
danielhanchen merged 1 commit into
mainfrom
tests-twins-no-diffusers
Oct 30, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-twins-no-diffusers

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

What was wrong

test_twins_completed_by_a_supplied_component_skip_the_early_download (added in #16080) fails in Backend CI's (Python 3.13, a-f) shard on main and on every PR: that shard installs transformers but not diffusers, so _class_pins_fp32("diffusers", "SD3Transformer2DModel") cannot import the class and conservatively reports an fp32 pin, plan_fp16_twins returns None, and local_fp16_variant answers None instead of "fp16".

The fp32 pin is not what the test checks (it checks that a supplied component completes the twins and skips the early download), so the test now stubs _class_pins_fp32 to False, the way a diffusers class without _keep_in_fp32_modules answers.

Testing

  • Shard environment (transformers 5.17.0, no diffusers): main 1 failed, 34 passed, 1 skipped (this test); this branch 35 passed, 1 skipped.
  • With diffusers 0.42.1 and transformers 5.22.1: 36 passed on both.
  • Negative control with the stub in place: the same snapshot answers fp16 with the VAE supplied and None without it, so the test still fails if the supplied-component handling regresses.
  • Main's own Backend CI (Python 3.13, a-f) failed on this test (job 124087281866), as did perf/r10-gemma3-decode (124086773561) and Studio MLX estimate: price attention scores where mlx really holds them, at the width it holds them #16021 (124087032249).

@danielhanchen danielhanchen self-assigned this Oct 30, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T13:53:04.948512Z e4ef449 Manual request
ℹ️ 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: e4ef449629

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

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