You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
align snapshot_download to respect hfh latest version (#14118)
* align snapshot_download to respect hfh latest version
* fix
* compute the same snapshot_download patterns offline as online
Instead of returning the cached snapshot folder without validation when
offline, compute the same allow/ignore patterns as the online path
(sourcing the file listing from the cached snapshot instead of
model_info) and let snapshot_download validate the cached snapshot
against them, so an interrupted download surfaces hfh's
IncompleteSnapshotError instead of failing later at model load time.
Also revert the _get_checkpoint_shard_files divergence: its patterns
were already identical in both modes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* match missing-shard test on the shard filename
huggingface_hub>=1.22.0 reports a missing cached shard via
IncompleteSnapshotError (repo-relative path) before diffusers' own
cached-folder check (absolute path) runs, so assert on the shard's
filename, which both messages contain.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* use get_cached_repo_tree
* remove the requirement decorator from tests
* force_download=True
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments