Hi @nishadsinghi sorry for the inconvenience. Could you try to login using a script just to be 100% sure it’s not a encoding issue with the terminal:
from huggingface_hub import login, whoami
login(token="hf_....")
whoami()
Also, could you install huggingface_hub
from source (see install steps) and retry? We’ve recently pushed a small feature that tells you which token has been used when whoami
fails. Sometimes it can be due to an environement vairable (HF_TOKEN
) mixing with the locally saved one.
Note: huggingface_hub
/huggingface-cli
are only using HTTP calls and are completely separated from git
. There is nothing you can do on the git side that breaks huggingface-cli (and therefore nothing you can do to fix it using git)