-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"no-token" is passed to huggingface_hub
when token is None
#4990
Comments
Hi @Wauplin, thanks for raising this potential issue. The choice of passing According to the PR description, the reason why it is passed is to avoid that |
Hi @albertvillanova , thanks for finding the original issue 👍 As of next release of If you want to strictly avoid sending the cached token from # token=token if token else "no-token", <- will fail because token is not valid
use_auth_token=token if token else False, # using the new `use_auth_token` parameter And as a note, I am currently updating the "don't send the cached token by default"-rule to "don't send the cached token on public repos by default but use it in private ones" in huggingface/huggingface_hub#1064. This will not change the fact that |
What is current strategy in term of updating |
As soon as |
Perfect 👌 |
Hi @Wauplin, thanks for the warning about the deprecation of Indeed, in datasets we use internally Line 747 in 1a9385d
Therefore, for the new hfh release, the fix will be trivial: we will pass directly As discussed during our meeting yesterday, due to the fact that at datasets we support multiple hfh versions, I think we should handle passing |
Describe the bug
In the 2 lines listed below, a token is passed to
huggingface_hub
to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if theNone
value could be sent directly to be handle byhuggingface_hub
. I feel that here it is working because we assume the token will never be validated.datasets/src/datasets/load.py
Line 753 in 5b23f58
datasets/src/datasets/load.py
Line 1121 in 5b23f58
Expected results
Pass
token=None
tohuggingface_hub
.Actual results
token="no-token"
is passed.Environment info
huggingface_hub v0.10.0dev
The text was updated successfully, but these errors were encountered: