Hello,
I am unable to download any models or datasets using huggingface_hub. Every attempt fails with:
401 Client Error: Unauthorized for url: https://huggingface.co/api/models/turboderp/Mixtral-8x7B-instruct-exl2/revision/main Invalid credentials in Authorization header
What I have tried:
-
Generated multiple new tokens with
[read]and[write]permissions. -
Confirmed I copied the token correctly (no whitespace).
-
Tested with
_netrc, environment variableHF_TOKEN, directtoken=...insnapshot_download. -
Cleared cache at
~/.cache/huggingface/hub. -
Tried both
huggingface-cli loginandhf auth login(latest CLI). -
Always get
Invalid user tokenor401 Unauthorized. -
Browser downloads work fine when logged in, so my account itself is active.
Environment:
-
Windows 11
-
Python 3.12
-
huggingface_hubversion (latest, upgraded with pip)
Recent Request ID from error logs:
Root=1-68e0748c-2012fdeb1d2f20940018e180;5bc6713f-8999-420f-a2ab-aa82c465d023
Could you please check my account’s authorization status on your backend? It seems my tokens are being consistently rejected even though they are freshly generated.
Thank you for your help.