# Authorisation error on clone

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282%3E%5C
**Category:** 🤗Hub\
**Created:** [January 24, 2023, 11:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282 "2023-01-24T11:32:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dementorSam](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dementorSam](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FdementorSam)%5C
**Post date:** [January 24, 2023, 11:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282%2F1 "2023-01-24T11:32:14Z")

</div>

Any clone for public models is throwing authorisation error for lfs files. Adding token for public repos also does not solve the problem.

I assumed its rate limiting for my account but have tried with multiple accounts and multiple IPs.

```auto
root@c308a91867e3:/workspace/test# git clone https://USER:{token}@huggingface.co/stabilityai/stable-diffusion-2
Cloning into 'stable-diffusion-2'...
remote: Enumerating objects: 160, done.
remote: Counting objects: 100% (160/160), done.
remote: Compressing objects: 100% (156/156), done.
remote: Total 160 (delta 66), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (160/160), 603.93 KiB | 1.06 MiB/s, done.
Resolving deltas: 100% (66/66), done.
Downloading 768-v-ema.ckpt (5.2 GB)
Error downloading object: 768-v-ema.ckpt (bfcaf07): Smudge error: Error downloading 768-v-ema.ckpt (bfcaf0755797b0c30eb00a3787e8b423eb1f5decd8de76c4d824ac2dd27e139f): LFS: Authorization error: /static-proxy?url=https%3A%2F%2Fcdn-lfs.huggingface.co%2Frepos%2F16%2Fa3%2F16a359af3eb418f17aac82f188cf7c13f373707f434bd94ff1ef727636e38e2a%2Fbfcaf0755797b0c30eb00a3787e8b423eb1f5decd8de76c4d824ac2dd27e139f%3FExpires%3D1674818650%26Policy%3DeyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zLzE2L2EzLzE2YTM1OWFmM2ViNDE4ZjE3YWFjODJmMTg4Y2Y3YzEzZjM3MzcwN2Y0MzRiZDk0ZmYxZWY3Mjc2MzZlMzhlMmEvYmZjYWYwNzU1Nzk3YjBjMzBlYjAwYTM3ODdlOGI0MjNlYjFmNWRlY2Q4ZGU3NmM0ZDgyNGFjMmRkMjdlMTM5ZiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NDgxODY1MH19fV19%26Signature%3DA234Kpj3qaajVf5fZ7KdThd423no4FDhI%257ECDBL5eH5tzGKiAuCrbWMWqAU3BRzyRGvlds3zesFf31kr3xBfzazHG-mSGogYOhgmu7H8wwF5dy%257EPnUHKB4yVw8oohhk2xTWi2sVW32YLx%257Ez2twWonEJTCUO51OWM6BegIwgcZYkXqYtRq0PRrb371VSNvP7W%257ESS%257E%257EHo1nONY7X57KgsO18rolA-ztb6-TfFOUu%257ED5q%257EJLQiwHBSGNqNKlwEI7OfePMHLpurShUgTEpMfbgIaX9XfjaXJH4i1EJryIll7lgMRc7cljAbPjA7cixlf8YNMaSBmL45HVjsFkvS7GzKfMJg__%26Key-Pair-Id%3DKVTP0A1DKRTAX%26response-content-disposition%3D
Check that you have proper access to the repository

```

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 24, 2023, 3:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282%2F2 "2023-01-24T15:29:47Z")

</div>

hi @dementorSam, please try again, we might have fixed the issue.

---

<div class="post-metadata">

**Author:** ![ahqbe](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@ahqbe](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fahqbe)%5C
**Post date:** [December 27, 2023, 2:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282%2F3 "2023-12-27T14:25:59Z")

</div>

hi @radames, I’m getting the same error message with git clone [mistralai/Mistral-7B-Instruct-v0.2 · Hugging Face](https://USER:%7Btoken%7D@huggingface.co/mistralai/Mistral-7B-Instruct-v0.2)

It works fine with the v0.1 model. e.g. git clone [mistralai/Mistral-7B-v0.1 · Hugging Face](https://USER:%7Btoken%7D@huggingface.co/mistralai/Mistral-7B-v0.1)

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 2, 2024, 11:30pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthorisation-error-on-clone%2F30282%2F4 "2024-01-02T23:30:16Z")

</div>

hi @dementorSam,

Can you please try without user and token?

```bash
git lfs install
git clone https://huggingface.co/mistralai/Mixtral-8x7B-v0.1

```

Another option is

```bash
git lfs install
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/mistralai/Mixtral-8x7B-v0.1
cd Mistral-7B-Instruct-v0.2
# then you selective pull the LFS files
# e.g all safetensors 
git lfs pull *.safetensors 

```
