Skip to content

Conversation

@hlky
Copy link
Contributor

@hlky hlky commented Feb 17, 2025

What does this PR do?

Related to #10714 #10742

from diffusers import FluxPipeline

pipe = FluxPipeline.from_pretrained("").to("cuda")
(variable) pipe: Any

With the change

(variable) pipe: FluxPipeline

Also for from_single_file in FromSingleFileMixin and FromOriginalModelMixin.

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@hlky hlky changed the title DiffusionPipeline mixin to type hint DiffusionPipeline mixin to+FromOriginalModelMixin/FromSingleFileMixin from_single_file type hint Feb 18, 2025
@hlky hlky merged commit 2bc82d6 into huggingface:main Feb 19, 2025
11 of 12 checks passed
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.

3 participants