Skip to content

Conversation

@Wauplin
Copy link
Collaborator

@Wauplin Wauplin commented Jan 21, 2025

Similar to huggingface/transformers#35810.

This PR makes some cleaning in the src/diffusers/utils/hub_utils.py file. The "move_cache" has been introduced in v0.14.0 (Feb 2023). IMO, we can safely assume everyone got their cache moved by now. Worse case, someone that did not update diffusers for 2y will have to redownload some models if they update.

Less dead code to maintain :)

@Wauplin Wauplin requested review from pcuenca and sayakpaul January 21, 2025 10:54
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

I am okay with that.

@sayakpaul sayakpaul requested a review from DN6 January 21, 2025 11:13
Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Looks good to me. Should this advance the version number to signal a breaking change, or not necessary?

@Wauplin
Copy link
Collaborator Author

Wauplin commented Jan 21, 2025

If I was maintainer I'd say no since it shouldn't break anything (just for users that did not touch diffusers for 2y). But agree that on paper it is a breaking change so I'll let the diffusers team decide :)

@yiyixuxu yiyixuxu merged commit a647682 into main Jan 21, 2025
14 of 15 checks passed
@yiyixuxu yiyixuxu deleted the remove-cache-migration-script branch January 21, 2025 17:23
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.

5 participants