Skip to content

[Modular Diffusers] Fix group offload device mismatch#14252

Merged
yiyixuxu merged 2 commits into
mainfrom
fix-modular-group-offloading
Jul 21, 2026
Merged

[Modular Diffusers] Fix group offload device mismatch#14252
yiyixuxu merged 2 commits into
mainfrom
fix-modular-group-offloading

Conversation

@asomoza

@asomoza asomoza commented Jul 21, 2026

Copy link
Copy Markdown
Member

What does this PR do?

This PR fixes an issue when using group offloading with modular diffusers, adds a first pass over the pipeline's module components that returns the onload device of the first group-offloaded module found, falling back to the existing accelerate-hook logic when no group offloading is active.

Who can review?

@yiyixuxu

@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.

@yiyixuxu yiyixuxu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@yiyixuxu
yiyixuxu merged commit ba66c64 into main Jul 21, 2026
20 checks passed
@yiyixuxu
yiyixuxu deleted the fix-modular-group-offloading branch July 21, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants