The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers
Hi there,I am using the use_auth_token to download weights of my private models. I saw that it will be deprecated and I would like to know how I will be able to authenticate without using huggingface-cli. I want to have everything in a python script.Thank you
2023-10-25T16:48:03Z
Yes, I subscribe to this.use_auth_tokenwill be deprecated. But how to authenticate instead?
2023-10-25T19:10:41Z
Hi@LetiPand@BenTouss,The deprecation simply renames the argumentuse_auth_tokentotokenRead more herehuggingface.coUtilitiesWe’re on a journey to advance and democratize artificial intelligence through open source and open science.cc@Wauplin, maybe we could improve the docs and state deprecated thus do this instead example?
2023-10-26T08:39:18Z
Thank you very much! This works.
2023-10-27T09:36:25Z
Thanks for the ping@radames. I opened a PR intransformersto make the warning message more explicit:Provide alternative when warning on use_auth_token by Wauplin · Pull Request #27105 · huggingface/transformers · GitHub