Skip to content

Conversation

@sayakpaul
Copy link
Member

What does this PR do?

To not have to incur:

huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.

@sayakpaul sayakpaul requested review from DN6, Wauplin and yiyixuxu June 20, 2024 11:09
@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.

Wauplin

This comment was marked as duplicate.

Copy link
Collaborator

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of removing those @sayakpaul. I'm linking #7843 and #8267 which are related PRs (the ones that should have already removed the deprecation warnings). Removing resume_download altogether is even better since it'll also us to remove it from huggingface_hub in the future.

Last thing: do you want to remove resume_download mention from docstrings as well? We have this message for now but if we remove them already, then let's remove the docs as well?

@sayakpaul
Copy link
Member Author

@Wauplin removed from docstrings as well.

Copy link
Collaborator

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks!

@DN6
Copy link
Collaborator

DN6 commented Jul 17, 2024

@sayakpaul We can merge once the conflicts are resolved here

@sayakpaul
Copy link
Member Author

Failing tests are unrelated.

@sayakpaul sayakpaul merged commit e02ec27 into main Jul 18, 2024
@sayakpaul sayakpaul deleted the remove-resume-download branch July 18, 2024 04:18
Disty0 pushed a commit to Disty0/diffusers that referenced this pull request Jul 18, 2024
)

* remove resume_download

* fix: _fetch_index_file call.

* remove resume_download from docs.
sayakpaul added a commit that referenced this pull request Dec 23, 2024
* remove resume_download

* fix: _fetch_index_file call.

* remove resume_download from docs.
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