-
Notifications
You must be signed in to change notification settings - Fork 64
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
Access right fixes #13
Access right fixes #13
Conversation
Thank you for this fix ! @Wauplin Is that something known for Windows ? Should we juste move instead of symlink on windows ? I see from here that windows is duplicating model file ? ?? https://github.com/search?q=repo%3Ahuggingface%2Fhuggingface_hub%20symlink&type=code |
@Narsil Yes, the cache-system on Windows when not running on Admin/dev mode is sub-optimal. To get more details about the underlying decision, check-out this comment where I tried to summarize the pros/cons.
The 2 cases where model files can be duplicated are:
The generic use case where the user downloads once the model to use it do not duplicate anything. |
I understand correctly that we end up using symbolic links under Windows? |
Only when possible yes (i.e. either admin or developer mode enabled). |
@evgenyigumnov Hey, I modified your code to follow Could you confirm/infirm that work ? I don't have an easy setup to check. This means the download + cache will work even with User privileges only. |
The CI error just needs a rebase. |
No. This code help user to make decition to run project from admin or developer mode. |
This new code should work on any machine, without access deny, have you tried it ? |
Ok this PR should work: #15 I have successfully set myself up a reproduceable env. Unfortunately I couldn't find setup in GH action. |
When I try run test in main branch I have error: cargo test running 5 tests failures: ---- api::sync::tests::info stdout ---- ---- api::sync::tests::dataset stdout ---- failures: test result: FAILED. 3 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.79s How to fix it? After that I can test my pull request on Linux and Windows machine |
Those errors are linked to actual changes on the hub, so everything is working fine. Closing this as superseeded by #15 |
Bug fix for this problem: huggingface/candle#416