[train][release] Get correct dreambooth requirements.txt#62525
Merged
matthewdeng merged 5 commits intoray-project:masterfrom Apr 16, 2026
Merged
[train][release] Get correct dreambooth requirements.txt#62525matthewdeng merged 5 commits intoray-project:masterfrom
matthewdeng merged 5 commits intoray-project:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the jax and jaxlib dependencies to version 0.4.38 in the Dreambooth template. A review comment identifies a potential compatibility issue where the current flax version (0.6.11) is likely incompatible with the updated JAX versions, suggesting an update to flax (e.g., 0.10.x) to ensure environment stability.
Signed-off-by: Timothy Seah <tseah@anyscale.com>
6c960f7 to
b9ad606
Compare
Signed-off-by: Timothy Seah <tseah@anyscale.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Reviewed by Cursor Bugbot for commit 99de864. Configure here.
Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: Timothy Seah <tseah@anyscale.com>
sai-miduthuri
approved these changes
Apr 16, 2026
matthewdeng
approved these changes
Apr 16, 2026
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.

Summary
This PR fixes pip jax dependency issues in our dreambooth release test. Original error:
I did the following:
pip-compile release/air_examples/dreambooth/dreambooth/requirements.txt --output-file=requirements.test.txt. This indeed failed withpip._internal.exceptions.DistributionNotFound: No matching distribution found for jaxlib==0.4.13jax,jaxlibandflaxrequirements in requirements.txtpip-compile release/air_examples/dreambooth/dreambooth/requirements.txt --output-file=requirements.test.txtagain. Here is the result: https://gist.github.com/TimothySeah/5a5e345d581d0b7f97162a4e3a494edbjax,jaxlib, andflaxversions back torequirements.txtBut then that resulted in some dependency issues still: https://buildkite.com/ray-project/release/builds/88314#019d7a74-9760-4595-b080-72d0797c2f4b i.e.
ImportError: cannot import name 'cached_download' from 'huggingface_hub'I repeated the process above but unpinned all the deps this time, which produced this file: https://gist.github.com/TimothySeah/58f928b7d1d611b5ff88d383934e2b5f. I then updated requirements.txt to match. But that was even worse: https://buildkite.com/ray-project/release/builds/88650#019d8961-6343-420f-a3cc-dbb33786b18f.
I went back to the first change but only downgraded huggingface_hub to a version that contains
cached_download. Now there's a version mismatch between diffusers and jax: https://buildkite.com/ray-project/release/builds/88671#019d899f-1699-4e39-8b10-9b38effda088Taking a step back, I see that the
from versionslog mentions jax 0.4.17 onwards, implying that jax 0.4.13 is no longer supported on my python/cuda setup. Therefore I tried changing it to jax 0.4.17, which produced this requirements file: https://gist.github.com/TimothySeah/465b0b09d46531216fbd9162a183738e. Back to the cached_download error: https://buildkite.com/ray-project/release/builds/88884#019d8e89-b998-48b1-8d8d-7761de4ca484.Now I'm trying an older
huggingface_hubthat supportscached_download.Testing
Release tests with
name:air_example_dreambooth_finetuning.*