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
The lock file could be removed when the 2nd process gets the lock.
And then the 3rd process will lock on a different lock file handle.
Although the lock path stays the same.
1st proc gets the lock
2nd proc waits for the lock
1st proc releases the lock
1st proc removes the lock file
2nd proc gets the lock
3rd proc creates a new lock file and gets the lock
Windows doesn't have this problem.
This commit moves the lock files to a subdirectory of the hub cache,
and don't remove it after downloading.
The lock files are named with their 'etag' and '.lock' extension, placed
in the 'HUGGINGFACE_HUB_CACHE/.locks/repo_folder_name' directory. The
repo_folder_name is generated from 'repo_id' and 'repo_type', to avoid
same 'etag' in different repos.
Co-authored-by: Lucain <[email protected]>
0 commit comments