Persistent 401 Unauthorized on all downloads – token rejected

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 variable HF_TOKEN, direct token=... in snapshot_download.

  • Cleared cache at ~/.cache/huggingface/hub.

  • Tried both huggingface-cli login and hf auth login (latest CLI).

  • Always get Invalid user token or 401 Unauthorized.

  • Browser downloads work fine when logged in, so my account itself is active.

Environment:

  • Windows 11

  • Python 3.12

  • huggingface_hub version (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.

1 Like

Fortunately, it’s not an issue with the account itself. It must be something with the environment or network somewhere, so it’s probably fixable…

The remaining possible causes are other caches or proxies?