Skip to content

fix(integrations): support diffusers 0.41 pipeline imports - #47

Open
saintparish4 wants to merge 1 commit into
fal-ai:mainfrom
saintparish4:diffusers-041-import
Open

saintparish4 wants to merge 1 commit into
fal-ai:mainfrom
saintparish4:diffusers-041-import

Conversation

@saintparish4

Copy link
Copy Markdown

diffusers 0.41 removed _get_load_method and _maybe_raise_error_for_incorrect_transformers from pipeline_loading_utils, which broke importing the diffusers integration and, with it, every CLI command.

  • Import both helpers when diffusers has them, and fall back to local equivalents on 0.41 and later, which dropped DDUF loading.
  • Add tests/test_diffusers_integration.py: imports flashpack.__main__ and round-trips a small randomly initialised DDPM pipeline with no network. It is skipped when diffusers is not installed.

diffusers 0.41 removed _get_load_method and _maybe_raise_error_for_incorrect_transformers from pipeline_loading_utils. Import them when present and fall back to equivalent local helpers otherwise. Add a test that imports the integration and round-trips a small DDPM pipeline.

This branch has not been deployed

No deployments
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