Skip to content

Studio: use unsloth/Qwen-Image-2.1 mirror and pin it to the top of Images - #11687

Merged
danielhanchen merged 1 commit into
mainfrom
studio-qwen-image-2.1-mirror-pin
Sep 23, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-qwen-image-2.1-mirror-pin

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

In the Studio Images picker, Qwen-Image 2.1 was split across the list: Qwen-Image-2.1-GGUF (Slow) sat at the top, but Qwen-Image 2.1 (Fast FP8) landed near the bottom next to HunyuanImage 2.1.

The cause was the row id. Every other Fast FP8 row points at an unsloth/* mirror of the vendor pipeline (for example unsloth/Qwen-Image-2512), but no unsloth/Qwen-Image-2.1 existed, so the catalog used the vendor repo Qwen/Qwen-Image-2.1. orderRecommendedRows puts first-party rows ahead of vendor ids, so that row sank to the vendor tail.

Changes

  • Published unsloth/Qwen-Image-2.1, a byte-identical mirror of Qwen/Qwen-Image-2.1 (28 files, 33.1 GB, sizes verified against the source).
  • model-catalog.ts: the Qwen-Image 2.1 row now uses bf16Mirror("Qwen/Qwen-Image-2.1"). FP8 and INT8 weights still come from unsloth/Qwen-Image-2.1-FP8 through prequantRepo, unchanged.
  • diffusion_families.py: added ("Qwen/Qwen-Image-2.1", "unsloth/Qwen-Image-2.1") to _UNGATED_MIRROR_PAIRS. canonical_base maps the mirror back to the family's base_repo, so family detection, prequant lookup and the sd.cpp VAE path are unchanged.
  • test_diffusion_backend.py: emptied _MIRRORS_NOT_YET_PUBLISHED, which only tracked this mirror, and bumped the table counts (25 total, 13 ungated).
  • New CatalogGroup.pinToTop flag. HubModelPicker passes the pinned canonical ids to orderRecommendedRows as pinnedFamilies. A pinned family leads the Recommended list as a group, in catalog order (FP8 row, then GGUF), under both the Trending and Recent sorts. Only Qwen-Image 2.1 sets it.

Resulting order (top of the Images list)

Qwen-Image 2.1 (Fast FP8)      unsloth/Qwen-Image-2.1 + unsloth/Qwen-Image-2.1-FP8
Qwen-Image-2.1-GGUF (Slow)     unsloth/Qwen-Image-2.1-GGUF
...rest follows the dropdown sort as before

Testing

  • New test in recommended-catalog-seeds.test.ts covers the pinned ordering against the real IMAGE_CATALOG, with Qwen-Image 2.1 trending last. The vendor id to mirror test now includes Qwen-Image 2.1.
  • recommended-catalog-seeds.test.ts and dense-quant-prequant-routing.test.ts: 37 passed.
  • Full frontend npm test: 8587 passed, 3 failed. Two of the failures (every near-opaque card spelling takes the panel muted text, training-dataset-source-transitions.test.ts) also fail on main. The third, message-jsonl-import.test.ts, passes when run on its own.
  • npm run catalog:check passes, and tsc -b reports no errors. Biome diagnostics on the touched files are the same count as on main.
  • Backend test_diffusion_backend.py, test_diffusion_more_families.py, test_diffusion_engine_router.py: 597 passed. One failure, test_mirrored_base_still_trips_the_flux2_shape_guard, is a missing gguf module in my local env and fails identically on main.

…ages

The Qwen-Image 2.1 bf16/FP8 row pointed at the vendor repo Qwen/Qwen-Image-2.1
because no unsloth mirror existed. orderRecommendedRows ranks first-party rows
ahead of vendor ids, so "Qwen-Image 2.1 (Fast FP8)" sank to the bottom of the
Images picker while its GGUF sibling stayed near the top.

- Catalog row now uses bf16Mirror("Qwen/Qwen-Image-2.1"), i.e. the newly
  published unsloth/Qwen-Image-2.1. FP8/INT8 weights still come from
  unsloth/Qwen-Image-2.1-FP8 via prequantRepo.
- Add the pair to the backend _UNGATED_MIRROR_PAIRS table and clear
  _MIRRORS_NOT_YET_PUBLISHED now that the mirror is on the Hub.
- New CatalogGroup.pinToTop flag, honoured by orderRecommendedRows through
  pinnedFamilies, so Qwen-Image 2.1 (FP8 then GGUF) leads Recommended under
  both the Trending and Recent sorts.
@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 23, 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-23T14:43:20.481408Z 94bcd68 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.

@danielhanchen
danielhanchen merged commit 9fce748 into main Sep 23, 2026
40 of 56 checks passed
@danielhanchen
danielhanchen deleted the studio-qwen-image-2.1-mirror-pin branch September 23, 2026 14:40
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…ages (unslothai#11687)

The Qwen-Image 2.1 bf16/FP8 row pointed at the vendor repo Qwen/Qwen-Image-2.1
because no unsloth mirror existed. orderRecommendedRows ranks first-party rows
ahead of vendor ids, so "Qwen-Image 2.1 (Fast FP8)" sank to the bottom of the
Images picker while its GGUF sibling stayed near the top.

- Catalog row now uses bf16Mirror("Qwen/Qwen-Image-2.1"), i.e. the newly
  published unsloth/Qwen-Image-2.1. FP8/INT8 weights still come from
  unsloth/Qwen-Image-2.1-FP8 via prequantRepo.
- Add the pair to the backend _UNGATED_MIRROR_PAIRS table and clear
  _MIRRORS_NOT_YET_PUBLISHED now that the mirror is on the Hub.
- New CatalogGroup.pinToTop flag, honoured by orderRecommendedRows through
  pinnedFamilies, so Qwen-Image 2.1 (FP8 then GGUF) leads Recommended under
  both the Trending and Recent sorts.
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