Repository navigation
Studio: install the released Diffusers 0.42.1 instead of the pinned main commit - #15761
Merged
Merged
Conversation
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 28, 2026
danielhanchen
marked this pull request as ready for review
October 28, 2026 13:16
Member
Author
|
@codex review |
Codex Review SummaryThis 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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
This was referenced Oct 28, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 28, 2026
## Summary `(Python 3.13, a-f)` fails on main and on every PR based on it (seen on the #15693 and #15761 staging runs) with two stale tests. Both product changes are intentional; the tests had not caught up. **1. `test_account_chat_settings.py::test_list_export_and_delete_stay_in_the_account`** ``` assert {'threads': [...Guards': True} == {'threads': []} Left contains 1 more item: {'threadPatchGuards': True} ``` #15685 advertises the chat-title repair guards on the thread lists (`threadPatchGuards` on the `/chat/threads` reply). This test checks that another account's thread stays invisible, but compared the whole reply to `{"threads": []}`. It now asserts the thread list itself is empty, which is the privacy claim. **2. `test_checkpoint_compaction.py::test_the_reachability_probe_closes_the_connection_it_opens`** ``` assert _open_archive_handles() <= before + 1 E assert 4 <= (0 + 1) ``` #15719 keeps one WAL keeper connection per `rag.db` for the life of the process (`storage/rag_db._ensure_wal_keeper`), holding `rag.db` plus its `-wal` and `-shm` sidecars. The first probe in a fresh process creates it, so the test counted the keeper's descriptors as a leak. It also failed when run alone, not only under xdist. The test now probes once to warm the keeper up, takes its baseline after that, and requires no growth at all over 50 probes. That is stricter than the old `before + 1`, and it is the leak the test exists for: one leaked probe connection per call. ## Testing - Both tests fail on main (`75555ccb54`) and pass with this change; `test_account_chat_settings.py` 93 passed. - Sabotage: replacing the `conn.close()` in `conversation_archive.reachable()` with a no-op makes the probe test fail with `assert 23 <= 5`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Diffusers 0.42.1 is on PyPI and carries FLUX.3 Image Klein, so Studio can go back to installing a release instead of the pinned main commit. This mirrors #13045, which did the same for 0.41.0 and Qwen-Image-2.1.
What changes
diffusers-pin.txtnow pins one release per Python floor. Diffusers 0.42.0 declaresrequires-python >= 3.11, so a single>= 3.10line would leave a 3.10 host with nothing to resolve.diffusers==0.42.1diffusers==0.41.0(unchanged)diffusers==0.36.0(unchanged)The installers create 3.13 by default (3.12 on Intel Macs), and
install.ps1only accepts 3.11 to 3.13, so 3.10 and 3.9 are only reached by pip installs andinstall.sh --python.The commit line in
diffusers-main.txtis commented out. The commit (d42ebf9c), its archive SHA-256 and the explanation all stay, so a future unreleased model can re-pin by uncommenting one line. The whole git / zip route (11c,--repair-diffusers-main,--prefetch-diffusers-main, the setup fast-path probe) is kept and already treats an all-comment file as "nothing pinned"._UNRELEASED_MIN_DIFFUSERSis empty again, because 0.42.0 exists. The FLUX.3 minimum stays at 0.42.0, the first release that has it.The too-old message for a family that needs 0.42.0 or newer now depends on the Python version:
pip install -U 'diffusers>=0.42.0'.Before this change a 3.10 user was told the release did not exist yet.
_PIPELINE_PROBE_FILESkeeps its FLUX.3 entries, and only the comment changes. The startup self-heal only replaces index installs. A host that still has the d42ebf9c build (which reports 0.41.0.dev0) keeps FLUX.3 until its next update instead of losing it to a version comparison.Comment-only updates: the installer comments that assumed a main build counts as current, the
overrides-darwin-arm64.txthub floor note (0.42.1 declares the samehuggingface-hub>=1.32.0), and the FLUX.3 forward digest note.Why
model_index.json/modular_model_index.jsonare no longer imported unless they are a known loadable library or adiffusers.pipelinesmodule. Without that fix, a repository onsys.pathcould run its own code onfrom_pretrained().Upgrade path for existing installs
direct_url.json):_diffusers_release_behindreads that as 0.41.0, which is behind 0.42.1. The setup fast-path probe therefore forces the dependency pass. The release step is no longer superseded, because no main build is pinned, so it installs 0.42.1. A uv dry run of the new pin file in an environment holding that build reports- diffusers==0.41.0.dev0 (from git+...@d42ebf9c...),+ diffusers==0.42.1.unsloth studio updateor a desktop update.Tests
tests/studio/install/test_diffusers_pin.py):studio/backend/tests/test_diffusers_repair.py):studio/backend/tests/test_diffusion_flux3.py):Real installs, CPU only:
Imports: with diffusers 0.42.1 (Python 3.11, transformers 5.5.0),
Flux3ModularPipeline,Flux3DistilledModularPipeline,QwenImage21Pipeline,Flux2PipelineandFlux2KleinPipelineall import.Tiny-config forward: the
Flux3Transformer2DModelconfig from diffusers' own model test (1 + 1 layers, 16-dim heads) runs with and without image conditioning. It produces bit-identical output on 0.42.1 and on d42ebf9c with the same seed.Family availability: with Studio's family table on 0.42.1, every family is selectable, including both FLUX.3 Klein variants and Qwen-Image-2.1. On a real Python 3.10 environment built from the new pin file (which resolves to 0.41.0), both FLUX.3 families are unavailable and the refusal names Python 3.11.
Source guards: every Studio guard that replaces or patches diffusers code gives the same verdict on 0.42.1 as on d42ebf9c. That covers:
None of the diffusers files those guards read changed between the two refs. All 120
from diffusers ... importstatements in Studio's backend resolve the same way on both.dispatch_attention_fngained one line, so its flash re-time fingerprint changes. That fingerprint already includes the diffusers version, so the only effect is one re-time on first use.Suites, base (this branch's merge base) vs head, compared by failing test IDs:
studio/backend/tests/test_diffusion*.py+test_video*.pytests/studio/installstudio/backend/tests/test_diffusion*.py+test_video*.pytests/studio/installThe failing test IDs are identical between base and head in every row. These failures are already on main and come from this CPU-only host and missing optional packages (
test_video_backend.py,test_diffusion_offload_precision.py,test_diffusion_unified_edit.py, and the like). They are not from this change. Running the head test files against base code fails 22 tests (15 pin, 2 repair, 3 FLUX.3 gate, plus 2 FLUX.3 checkpoint tests that already fail on main). Those are the ones that cover the new state.Not covered
diffusersandtransformersappear). Other catalog repos were not fetched.install.ps1andinstall.sh.