Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes the "cache migration script" from
src/transformers/utils/hub.py
. No need to maintain it anymore IMO.This script has been introduced in
v4.22.0
(Sept. 2022) to move files from the old cache structure to the new one. Since it has now been 28 months, I think we can safely assume all caches have been moved by now. Worth case scenario, users will have to redownload their 2+ years old models if they updatetransformers
.I still kept a dummy deprecated
move_cache
method to avoid breaking imports. I can remove it if you think it's not necessary.