meta-llama-3-8B下载失败解决。
报错提示:
Cannot access gated repo for url https://huggingface.co/meta-llama/Meta-Llama-3-8B/resolve/8cde5ca8380496c9a6cc7ef3a8b46a0372a1d920/.gitattributes.
Access to model meta-llama/Meta-Llama-3-8B is restricted. You must have access to it and be authenticated to access it. Please log in.
解决:
1.
huggingface-cli login2. 运行1后提示To log in, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens . 在该链接上申请tokens 然后粘贴到终端上
3.
hf download meta-llama/Meta-Llama-3-8B --local-dir ./llama-3-8b4. 注意llama3需要在huggingface.co上申请权限,写IP地大学就行,不要选china。我写的中文拼音名字可以通过,但建议写个IP地名字。几分钟内就可以通过。然后才能正常访问下载llama系列开源文件。
