Skip to content

Repair the four a-k checks the Qwen-Image-2.1 wave left red - #11573

Merged
danielhanchen merged 1 commit into
mainfrom
fix/qwen-image-21-wave-tests
Sep 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/qwen-image-21-wave-tests

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

(Python 3.13, a-k) fails the same four tests on every recent PR (#11566, #11555, #11553, #11549, #11528). I bisected each one on main with the GPU hidden, as it is on the runner. Each is a test that stopped describing the product after one of today's Qwen-Image-2.1 PRs, not a product regression.

Test Went red at Cause Fix
test_download_plan_counts_a_cached_lower_auto_prequant #11394 The plan now skips a pre-quant name this install cannot open. torchao 0.18, which the shard installs unpinned, has no int8 pickle constructors (restricted_prequant_load_supported("int8", "Qwen-Image-INT8.pt") is False), and the test only offers that .pt Pin the readability answer, and also assert the converse: an unreadable artifact is not budgeted
test_every_third_party_bf16_pipeline_the_catalog_offers_is_mirrored #11405 The catalog offers Qwen/Qwen-Image-2.1, but unsloth/Qwen-Image-2.1 is not on the Hub (only -FP8 and -GGUF are), so a mirror row would 404 every fetch it redirects Named in _MIRRORS_NOT_YET_PUBLISHED. The test fails once the row lands, or if the catalog drops the entry, so the exception cannot outlive the gap
test_the_recorded_base_must_be_the_canonical_id_not_just_the_same_tail #11405 (new) build_prequant_checkpoint.main imports diffusers before reading any argument, and the shard does not install diffusers Empty diffusers stand-in only when it is absent. The refusal lands before any diffusers attribute is read, and the accepted arm already expects the AttributeError an empty module gives
test_qwen_image_21_gguf_reaches_sd_cpp_with_its_own_vae_and_a_qwen3vl_encoder #11542 #11542 moved the encoder to UD-Q4_K_XL on purpose (measured, and the file is on the Hub) and pins that exact name in its own test. This test still restated Q4_K_M Reads the declared name, and keeps its own claim: the file is a 4-bit GGUF

Still open

unsloth/Qwen-Image-2.1 needs publishing as a full mirror of Qwen/Qwen-Image-2.1. Until it exists, a bf16 pipeline pick of 2.1 fetches from the vendor repo. When it lands, add the row to _UNGATED_MIRROR_PAIRS, and the test will ask for the pending entry to be removed.

Verification

  • All four pass. tests/test_build_prequant_checkpoint.py, test_diffusion_backend.py and test_diffusion_more_families.py pass in full under -n 8.
  • Sabotage, each checked to fail:
    • deleting the --base-model-id guard in the build script
    • dropping the readability check from the plan
    • adding the Qwen-Image-2.1 mirror row while it is still listed as pending
    • adding a new unmirrored vendor bf16Pipeline to the catalog
    • moving the encoder to Q8_0

(Python 3.13, a-k) fails the same four tests on every PR. Bisected on main
with the GPU hidden, as on the runner; each is a test that stopped describing
the product, not a product regression:

- test_download_plan_counts_a_cached_lower_auto_prequant, since #11394. The
  plan now skips a pre-quant name this install cannot open, and torchao 0.18,
  which the shard installs unpinned, has no int8 pickle constructors. The
  test offers only Qwen-Image-INT8.pt. It now pins the readability answer and
  also asserts the converse: an unreadable artifact is not budgeted.
- test_every_third_party_bf16_pipeline_the_catalog_offers_is_mirrored, since
  #11405 offered Qwen/Qwen-Image-2.1. unsloth/Qwen-Image-2.1 is not on the Hub,
  so a mirror row would 404 every fetch it redirects. Named as a pending mirror
  that fails once the row lands or the catalog drops it.
- test_the_recorded_base_must_be_the_canonical_id_not_just_the_same_tail, added
  by #11405. build_prequant_checkpoint.main imports diffusers before reading an
  argument and the shard has no diffusers. An empty stand-in when it is absent;
  the refusal lands before any diffusers attribute is read.
- test_qwen_image_21_gguf_reaches_sd_cpp_with_its_own_vae_and_a_qwen3vl_encoder,
  since #11542 moved the encoder to UD-Q4_K_XL on purpose and pins that name in
  its own test. This one now reads the declared name and keeps its own claim,
  that the file is a 4-bit GGUF.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 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-09-22T18:15:31.580361Z 1a23824 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 1a23824ea4

ℹ️ 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 023730c into main Sep 22, 2026
37 of 43 checks passed
@danielhanchen
danielhanchen deleted the fix/qwen-image-21-wave-tests branch September 22, 2026 19:05
pull Bot pushed a commit to Penguinjanator/unsloth-zoo that referenced this pull request Sep 22, 2026
…nslothai#1349)

* Give the repo-wide watchdog test a margin, and say when it never ran

test_repo_wide_watchdog_is_masked_by_sibling grew a sibling every 0.05 s
against a 0.5 s stall timeout. On a loaded runner a starved grower is a real
stall and the watchdog is right to fire, so the test failed with nothing
wrong (unslothai/unsloth#11573's Core zoo run). Use a 1.5 s timeout, and check
the largest gap between writes: a run where the sibling stopped growing for
the whole timeout never tested the claim, and now says so instead of blaming
the watchdog.

* Count the gap after the sibling's last write too

A grower starved after an early write leaves a trailing interval the watchdog
also sees; ending the marks at the last write missed it. Close them at the
moment the watchdog is stopped.

* Take the stop timestamp after signalling the watchdog

Taken before stop.set(), a preemption between the two gives the watchdog a
no-growth interval the gap measure never sees, and the test blames the
watchdog for a run that never tested the claim.

* Join the watchdog thread before reading its callbacks

stop.set() does not end an iteration already past stop.wait(), so a callback
could land after the signal and after the assertion. Pick out the
hf-xet-watchdog thread this call started, join it, then take the timestamp and
read the calls.
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…i#11573)

(Python 3.13, a-k) fails the same four tests on every PR. Bisected on main
with the GPU hidden, as on the runner; each is a test that stopped describing
the product, not a product regression:

- test_download_plan_counts_a_cached_lower_auto_prequant, since unslothai#11394. The
  plan now skips a pre-quant name this install cannot open, and torchao 0.18,
  which the shard installs unpinned, has no int8 pickle constructors. The
  test offers only Qwen-Image-INT8.pt. It now pins the readability answer and
  also asserts the converse: an unreadable artifact is not budgeted.
- test_every_third_party_bf16_pipeline_the_catalog_offers_is_mirrored, since
  unslothai#11405 offered Qwen/Qwen-Image-2.1. unsloth/Qwen-Image-2.1 is not on the Hub,
  so a mirror row would 404 every fetch it redirects. Named as a pending mirror
  that fails once the row lands or the catalog drops it.
- test_the_recorded_base_must_be_the_canonical_id_not_just_the_same_tail, added
  by unslothai#11405. build_prequant_checkpoint.main imports diffusers before reading an
  argument and the shard has no diffusers. An empty stand-in when it is absent;
  the refusal lands before any diffusers attribute is read.
- test_qwen_image_21_gguf_reaches_sd_cpp_with_its_own_vae_and_a_qwen3vl_encoder,
  since unslothai#11542 moved the encoder to UD-Q4_K_XL on purpose and pins that name in
  its own test. This one now reads the declared name and keeps its own claim,
  that the file is a 4-bit GGUF.
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