EvolvingLMMs-Lab / lmms-eval

Accelerating the development of large multimodal models (LMMs) with lmms-eval
https://lmms-lab.github.io/
Other
1.82k stars 142 forks source link

huggingface_hub.errors.LocalTokenNotFoundError: Token is required (`token=True`), but no token found. You need to provide a token or be logged in to Hugging Face with `huggingface-cli login` or `huggingface_hub.login`. See https://huggingface.co/settings/tokens. #309

Open luohao123 opened 3 weeks ago

luohao123 commented 3 weeks ago

huggingface_hub.errors.LocalTokenNotFoundError: Token is required (token=True), but no token found. You need to provide a token or be logged in to Hugging Face with huggingface-cli login or huggingface_hub.login. See https://huggingface.co/settings/tokens.

How to use it for server can not connect internet?

kcz358 commented 3 weeks ago

You can try

huggingface-cli login --token $HUGGINGFACE_TOKEN --add-to-git-credential

or simply remove the token=True

But you might need to handle how to load hf datasets from local also. See #186 for some reference