hiyouga / LLaMA-Factory

Unify Efficient Fine-Tuning of 100+ LLMs
Apache License 2.0
25.26k stars 3.13k forks source link

how to authenticate to access huggingface #4543

Closed ares0027 closed 3 days ago

ares0027 commented 3 days ago

Reminder

System Info

Reproduction

OSError: You are trying to access a gated repo. Make sure to have access to it at https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3. 401 Client Error. (Request ID: Root=1-667b6dfd-1c6c2b614e98fb274bc60659;2dab17cc-7a80-46b3-910b-257fe25c0467)

Cannot access gated repo for url https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3/resolve/main/config.json. Access to model mistralai/Mistral-7B-Instruct-v0.3 is restricted. You must be authenticated to access it.

Expected behavior

expecting it to show me where to put token or just download it

Others

i am using the gui, there is no place to enter any token, api key, login information or anything. other issues are "solved" with "you can download from modelscope" what does that mean? it does not let me add or edit anything to enter "export USE_MODELSCOPE_HUB=1 # set USE_MODELSCOPE_HUB=1 for Windows" where do i enter it?

hiyouga commented 3 days ago

run huggingface-cli login in your terminal