Skip to content

DiffusionPipeline mixin to+FromOriginalModelMixin/FromSingleFileMixin from_single_file type hint - #10811

Merged
hlky merged 4 commits into
huggingface:mainfrom
hlky:to-type-hint
Feb 19, 2025
Merged

DiffusionPipeline mixin to+FromOriginalModelMixin/FromSingleFileMixin from_single_file type hint#10811
hlky merged 4 commits into
huggingface:mainfrom
hlky:to-type-hint

Conversation

@hlky

@hlkyhlky commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Related to #10714#10742

fromdiffusersimportFluxPipelinepipe=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

Copy link
Copy Markdown

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.

@hlkyhlky changed the title DiffusionPipeline mixin to type hintDiffusionPipeline mixin to+FromOriginalModelMixin/FromSingleFileMixin from_single_file type hintFeb 18, 2025
DN6
DN6 approved these changes Feb 19, 2025
@hlky
hlky merged commit 2bc82d6 into huggingface:mainFeb 19, 2025
Sign up for freeto 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

@hlky@HuggingFaceDocBuilderDev@DN6