-
Couldn't load subscription status.
- Fork 6.5k
[tests] Fix HunyuanVideo Framepack device tests #11789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hmm not sure what's happening with the Cosmos AE's. Tests pass locally. |
|
Hmm... let me try to look into it too. Will merge this for now and open follow up if I can figure it out |
|
Hmm, I SSH'ed into runner and did the exact same environment setup and it does not fail, and neither does locally when I try to match the versions 🤔 logsroot@b0e0581e8ddb:/__w/diffusers/diffusers# python3 -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
root@b0e0581e8ddb:/__w/diffusers/diffusers# python -m uv pip install -e [quality,test]
Built file:///__w/diffusers/diffusers Built 1 editable in 731ms
Resolved 154 packages in 585ms
Downloaded 54 packages in 712ms
Installed 55 packages in 29ms
+ annotated-types==0.7.0
+ babel==2.17.0
+ clean-fid==0.1.35
+ clip-anytorch==2.6.0
+ colorama==0.4.6
+ compel==0.1.8
+ csvw==3.5.1
+ dctorch==0.1.2
+ diffusers==0.34.0.dev0 (from file:///__w/diffusers/diffusers)
+ dlinfo==2.0.0
+ einops==0.8.1
+ exceptiongroup==1.3.0
+ execnet==2.1.1
+ ftfy==6.3.1
- gitpython==3.1.44
+ gitpython==3.1.18
+ imageio==2.37.0
+ importlib-metadata==8.7.0
+ iniconfig==2.1.0
+ isodate==0.7.2
+ isort==6.0.1
+ jsonmerge==1.9.2
+ k-diffusion==0.1.1.post1
+ kornia==0.8.1
+ kornia-rs==0.1.9
+ language-tags==1.2.0
+ parameterized==0.9.0
+ phonemizer==3.3.0
+ pluggy==1.6.0
+ pydantic==2.11.7
+ pydantic-core==2.33.2
+ pygments==2.19.2
+ pyparsing==3.2.3
+ pytest==8.4.1
+ pytest-timeout==2.4.0
+ pytest-xdist==3.7.0
+ rdflib==7.1.4
+ requests-mock==1.10.0
+ rfc3986==1.5.0
+ ruff==0.9.10
+ scikit-image==0.25.2
+ segments==2.3.0
+ sentencepiece==0.2.0
+ sentry-sdk==2.30.0
+ setproctitle==1.3.6
+ tifffile==2025.5.10
+ tiktoken==0.9.0
+ torchdiffeq==0.2.5
+ torchsde==0.2.6
+ trampoline==0.1.2
+ typing-inspection==0.4.1
+ uritemplate==4.2.0
- urllib3==2.5.0
+ urllib3==1.26.20
+ wandb==0.20.1
+ wcwidth==0.2.13
+ zipp==3.23.0
root@b0e0581e8ddb:/__w/diffusers/diffusers# python -m uv pip install peft@git+https://github.com/huggingface/peft.git
Updated https://github.com/huggingface/peft.git (59ef3b9) Resolved 43 packages in 1.52s
Built peft @ git+https://github.com/huggingface/peft.git@59ef3b93c8feda05fa92d8de7d588c30907266b5 Downloaded 1 package in 595ms
Installed 1 package in 4ms
+ peft==0.15.2.dev0 (from git+https://github.com/huggingface/peft.git@59ef3b93c8feda05fa92d8de7d588c30907266b5)
root@b0e0581e8ddb:/__w/diffusers/diffusers# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
Found existing installation: accelerate 1.8.1
Uninstalling accelerate-1.8.1:
Successfully uninstalled accelerate-1.8.1
Updated https://github.com/huggingface/accelerate.git (5987d79) Resolved 39 packages in 1.51s
Built accelerate @ git+https://github.com/huggingface/accelerate.git@5987d79a538d2270deea1778e5625e869c4936b8 Downloaded 4 packages in 576ms
Installed 5 packages in 22ms
+ accelerate==1.9.0.dev0 (from git+https://github.com/huggingface/accelerate.git@5987d79a538d2270deea1778e5625e869c4936b8)
- fsspec==2025.3.0
+ fsspec==2025.5.1
- numpy==1.26.4
+ numpy==2.2.6
- setuptools==65.5.0
+ setuptools==80.9.0
- urllib3==1.26.20
+ urllib3==2.5.0
root@b0e0581e8ddb:/__w/diffusers/diffusers# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
Found existing installation: transformers 4.52.4
Uninstalling transformers-4.52.4:
Successfully uninstalled transformers-4.52.4
Updated https://github.com/huggingface/transformers.git (d3d835d) Resolved 1 package in 15.02s
Built transformers @ git+https://github.com/huggingface/transformers.git@d3d835d4fc145e5062d2153ac23ccd4b3e2c2cbd Downloaded 1 package in 4.10s
Installed 1 package in 52ms
+ transformers==4.53.0.dev0 (from git+https://github.com/huggingface/transformers.git@d3d835d4fc145e5062d2153ac23ccd4b3e2c2cbd)
root@b0e0581e8ddb:/__w/diffusers/diffusers# pytest -s tests/models/autoencoders/test_models_autoencoder_cosmos.py::AutoencoderKLCosmosTests::test_layerwise_casting_inference
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.18, pytest-8.4.1, pluggy-1.6.0
rootdir: /__w/diffusers/diffusers
configfile: pyproject.toml
plugins: timeout-2.4.0, xdist-3.7.0, requests-mock-1.10.0
collected 1 item
tests/models/autoencoders/test_models_autoencoder_cosmos.py .
================================================================== 1 passed in 4.32s =================================================================== |
|
Managed to reproduce it! If you run the full autoencoder cosmos test suite with logs |
|
From some previous experience, we have seen that it sometimes stems from a different reason. Possible to provide the full test run output (i.e., the output when you run the full Autoencoder Cosmos test suite)? |
|
Yep. Running the full test suite at once reproduces it locally for me as well. Individually, they all pass. logs |
|
From a quick bisect, it looks like the tests are failing after this PR: #11682 Taking a look to understand what changed Update: can confirm that removing the |
No description provided.