-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Description
Describe the bug
When running Olive on windows I get the warning below because of missing symlinks in Windows.
I can deactivate the warning via HF_HUB_DISABLE_SYMLINKS_WARNING which works.
However it would be nice if we could create symlinks in windows and acutally this is possible via mklink
mklink /D Link Target creates a symlink under Windows.
question: why don't we use mkinlik under Windows ?
To Reproduce
C:\work\microsoft\Olive\venv\Lib\site-packages\huggingface_hub\file_download.py:143: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\merklbe1\.cache\huggingface\hub\models--Qwen--Qwen2.5-Coder-0.5B-Instruct. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.
To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
warnings.warn(message)
Expected behavior
we should use mklink and avoid the warning
Olive config
Add Olive configurations here.
Olive logs
Add logs here.
Other information
- OS: Windows 11
Additional context
Metadata
Metadata
Assignees
Labels
No labels