-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to download model snapshot in tmp_folder on Windows #1385
Comments
Hi @mayankjobanputra , thanks for reporting and sorry for the delay. We introduced a bug in the last release of huggingface_hub. We fixed it yesterday and made a patch release (v0.13.2). Could you update your |
@Wauplin super sorry for not being able to get back to you on this. I think I tested it and it worked, but I will still confirm before the eod. Thanks for a very quick fix. I am super grateful :) |
No worries, I was just doing some cleaning :) If you can confirm, that would be perfect. Otherwise, don't worry about it. |
@Wauplin Sorry for taking so long but I am still getting the same error on Windows with 0.13.3 and 0.13.4 both :( |
Here is the code sample in case you want to try it: https://github.com/deepset-ai/haystack/pull/4607/files |
@mayankjobanputra I pushed a fix in #1437. Could you try it please? :) |
Sure @Wauplin :) Sorry for troubling you 😬 |
No worries, it's always good to report issues :) |
Closed by #1437. |
Describe the bug
I tried to use
tmp_path
provided bypytest
andand I am getting the following error.
tmp_path = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/test_farm_reader_load_hf_local0')
@pytest.mark.integration
def test_farm_reader_load_hf_local(tmp_path):
# Test Case: 2. HuggingFace downloaded (local load)
model_path = snapshot_download(repo_id=hf_model, revision="main", cache_dir=local_model_path)
test\nodes\test_reader.py:290:
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub\utils_validators.py:120: in _inner_fn
return fn(*args, **kwargs)
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub_snapshot_download.py:235: in snapshot_download
thread_map(
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\tqdm\contrib\concurrent.py:69: in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\tqdm\contrib\concurrent.py:51: in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\tqdm\std.py:1178: in iter
for obj in iterable:
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\concurrent\futures_base.py:619: in result_iterator
yield fs.pop().result()
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\concurrent\futures_base.py:437: in result
return self.__get_result()
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\concurrent\futures_base.py:389: in __get_result
raise self._exception
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\concurrent\futures\thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub_snapshot_download.py:212: in _inner_hf_hub_download
return hf_hub_download(
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub\utils_validators.py:120: in _inner_fn
return fn(*args, **kwargs)
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub\file_download.py:1316: in hf_hub_download
_create_relative_symlink(blob_path, pointer_path, new_blob=True)
c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\huggingface_hub\file_download.py:850: in _create_relative_symlink
os.path.dirname(os.path.commonpath([os.path.realpath(src), os.path.realpath(dst)]))
paths = ('\?\C:\Users\runneradmin\AppData\Local\Temp\pytest-of-runneradmin\pytest-0\test_farm_reader_load_hf_local...ting--tiny-random-RobertaForQuestionAnswering\snapshots\eea4a81306891746bac9e7715f805a2d9dbf4be7\pytorch_model.bin')
def commonpath(paths):
"""Given a sequence of path names, returns the longest common sub-path."""
E ValueError: Paths don't have the same drive
Reproduction
Use a window machine, install huggingface_hub and run the following code using
pytest
.Logs
No response
System info
The text was updated successfully, but these errors were encountered: