# Error on using huggingface cli repo

**URL:** <https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773>\
**Category:** Beginners\
**Created:** [August 17, 2024, 4:35pm UTC](https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773 "2024-08-17T16:35:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abenari0](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@abenari0](https://discuss.huggingface.co/u/abenari0)\
**Post date:** [August 17, 2024, 4:35pm UTC](https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773/1 "2024-08-17T16:35:41Z")

</div>

Hello,  
First day here.  
After approved access to the repo and installing the huggingface-cli I tried :  
( Copied this from the repo:[meta-llama/Meta-Llama-3.1-8B-Instruct · Hugging Face](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct))

huggingface-cli download meta-llama/Meta-Llama-3.1-8B-Instruct --include “original/\*” --local-dir Meta-Llama-3.1-8B-Instruct

got an error:

An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

My internet connection is ok.  
How to I proceed with this.

---

<div class="post-metadata">

**Author:** ![mahmutc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mahmutc/32/64626_2.png) [@mahmutc](https://discuss.huggingface.co/u/mahmutc)\
**Post date:** [August 19, 2024, 10:33am UTC](https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773/2 "2024-08-19T10:33:22Z")

</div>

hi @abenari0  
What does whoami give?  
`huggingface-cli whoami`

If it’s `Not logged in` you can try to login with `huggingface-cli login`

Also, your request may be affected by firewall etc. You can curl to see if it is blocked by.  
`curl https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct/resolve/8c22764a7e3675c50d4c7c9a4edb474456022b16/original/consolidated.00.pth`

it should give  
`Access to model meta-llama/Meta-Llama-3.1-8B-Instruct is restricted. You must be authenticated to access it.`

---

<div class="post-metadata">

**Author:** ![phantom1812](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/phantom1812/32/50708_2.png) [@phantom1812](https://discuss.huggingface.co/u/phantom1812)\
**Post date:** [July 7, 2025, 5:28am UTC](https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773/3 "2025-07-07T05:28:18Z")

</div>

Hi, @mahmutc I am also facing the same issue, please help

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 7, 2025, 6:14am UTC](https://discuss.huggingface.co/t/error-on-using-huggingface-cli-repo/102773/4 "2025-07-07T06:14:55Z")

</div>

First, [try `login` and `whoami`](https://huggingface.co/docs/huggingface_hub/main/en/guides/cli#huggingface-cli-login). If the situation remains unclear, suspect errors in the network or cache.
