Skip to content

Conversation

@bmerkle
Copy link
Contributor

@bmerkle bmerkle commented Dec 20, 2025

Updated the README to include information for windows users. using huggingface_hub yield a warning.

The this note documents ways to fix the problem or to hide the warning.

fix for #2289

Describe your changes

updated docs and tested

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

#2289

Updated the README to include information for windows users.
using huggingface_hub yield a warning.

The this note documents ways to fix the problem or to hide the warning.

fix for microsoft#2289
@bmerkle bmerkle changed the title Revise README with installation and optimization details Revise README with setup information for huggingface_lib on windows to avoid warning or save space (symlink) Dec 20, 2025
Updated README to improve formatting and content clarity.
added feedback from shaahji
shaahji
shaahji previously approved these changes Jan 6, 2026
@shaahji shaahji enabled auto-merge (squash) January 6, 2026 20:15
README.md Outdated
> [!NOTE]
> For Windows users: to avoid HF_HUB_DISABLE_SYMLINKS_WARNING
>

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
README.md Outdated
> For Windows users: to avoid HF_HUB_DISABLE_SYMLINKS_WARNING
>
> Olive depends on huggingface_hub library if you download models from there. On Windows you will get a warning like
>

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
README.md Outdated
> Olive depends on huggingface_hub library if you download models from there. On Windows you will get a warning like
>
> ```
> UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\name\.cache\huggingface\hub\model-name.

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
README.md Outdated
> UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\name\.cache\huggingface\hub\model-name.
> 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.
> ```
>

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
README.md Outdated
> ```
>
> You can fix this warning using one of the 4 options below. Note that option 1, 2 and 3 saves diskspace, while option 4 only supresses the warning
>

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
README.md Outdated
> 2. Run Python as administrator when using Olive with the huggingface_hub library.
> 3. Reconfigure where the cache is stored. This restriction is not limited to storing the cache in the default location only.
> 4. Keep using HF_HUB_DISABLE_SYMLINKS_WARNING=1 to suppress the warning and accept the extra disk usage.
>

Check warning

Code scanning / lintrunner

EDITORCONFIG-CHECKER/editorconfig Warning

Trailing whitespace
auto-merge was automatically disabled January 7, 2026 00:32

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants