# Problem with LFS Pull

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%3E%5C
**Category:** Models\
**Created:** [January 11, 2024, 11:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867 "2024-01-11T23:47:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordvader31](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lordvader31/32/22912_2.png) [@lordvader31](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flordvader31)%5C
**Post date:** [January 11, 2024, 11:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F1 "2024-01-11T23:47:47Z")

</div>

I am facing a lot of problem downloading models from the Hub. I am trying to download `openai/whisper-large`

```auto
git lfs install
git clone git@hf.co:openai/whisper-large

```

This is the error I get

```auto
kj3moraes@Keanes-MBP hf_models % git clone git@hf.co:openai/whisper-large
Cloning into 'whisper-large'...
remote: Enumerating objects: 212, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 212 (delta 0), reused 0 (delta 0), pack-reused 209
Receiving objects: 100% (212/212), 2.05 MiB | 3.65 MiB/s, done.
Resolving deltas: 100% (126/126), done.
Downloading flax_model.msgpack (6.2 GB)
Error downloading object: flax_model.msgpack (9180162): Smudge error: Error downloading flax_model.msgpack (91801621b96c8aef69d21b06893036d4fc768ca85f2fba00d7b3bab751d72722): batch response: Authentication required: Password authentication in git is no longer supported. You must use a user access token or an SSH key instead. See https://huggingface.co/blog/password-git-deprecation

Errors logged to '/Users/kj3moraes/Experiments/Coding/hf_models/whisper-large/.git/lfs/logs/20240111T184530.017361.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: flax_model.msgpack: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

```

This will download all the files except the LFS files.

- I have already logged in through huggingface-cli login (because `huggingface-cli whoami` shows my username)
- I have added my id\_rsa.pub to SSH keys in my settings page.
- I have added the token as a git credential.

This fails for any repo that I have tried. This works

```auto
GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:openai/whisper-large

```

but obviously it doesn’t download the LFS files (which I want). How do I fix this ?

---

<div class="post-metadata">

**Author:** ![Wauplin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/wauplin/32/40815_2.png) [@Wauplin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FWauplin)%5C
**Post date:** [January 12, 2024, 10:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F2 "2024-01-12T10:27:47Z")

</div>

Hi @lordvader31, can you check in your git config if some credentials are set with username+password? This would explain why you get `Authentication required: Password authentication in git is no longer supported.`. You should also make sure that the ssh key associated with the id\_rsa.pub is used by git when cloning the repo.

* * *

On another note, I would suggest to use the `huggingface-cli` tool if you can. This won’t “clone” the repo per-se but download the files to your computer. It is usually faster and more robust that the `git clone` command. If you plan to use the whisper weights without contributing to the repo (e.g. making commits, PRs, etc.), this should be the preferred tool. Here are some documentation on how to use it: [Command Line Interface (CLI)](https://huggingface.co/docs/huggingface_hub/guides/cli#huggingface-cli-download).

Among other things, `huggingface-cli download` is more flexible in the sense that you can chose which files you want to download instead of cloning the full repo. This is especially useful when a repo contains weights in different formats. This applies to the CLI but also to the Python client in general. Here is an explanation of why we suggest the http-based approach instead of git: [Git vs HTTP paradigm](https://huggingface.co/docs/huggingface_hub/concepts/git_vs_http).

---

<div class="post-metadata">

**Author:** ![lordvader31](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lordvader31/32/22912_2.png) [@lordvader31](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flordvader31)%5C
**Post date:** [January 12, 2024, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F3 "2024-01-12T12:59:42Z")

</div>

Hey Wauplin, thanks a lot for the reply. I did indeed need just the model details and don’t intend on making any contributions. I will use the huggingface-cli tool hence forth.

Just for the sake of figuring out the problem, my .gitconfig file is given below. There is no credential or username+password field. How do I check which ssh key is used by git to clone a repo ?

 ![CleanShot 2024-01-12 at 07.56.06@2x](https://us1.discourse-cdn.com/hellohellohello/original/3X/7/e/7eef46a89e3cc4c831dbf406d318c9cbd3130fa2.png)

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjulien-c)%5C
**Post date:** [January 12, 2024, 1:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F4 "2024-01-12T13:02:05Z")

</div>

what does `git config credential.helper` and `git remote -v` (in your repo) give you?

---

<div class="post-metadata">

**Author:** ![lordvader31](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lordvader31/32/22912_2.png) [@lordvader31](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flordvader31)%5C
**Post date:** [January 12, 2024, 1:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F5 "2024-01-12T13:08:57Z")

</div>

Hello @julien-c , I am not running this inside any repo. I want to clone the repo from huggingface. I am inside a standard unix directory. Running

1. `git config crediential.helper` gives `osxkeychain`
2. `git remote -v` fails obviously because I am not in any repo.

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjulien-c)%5C
**Post date:** [January 12, 2024, 8:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F6 "2024-01-12T20:19:23Z")

</div>

i would delete the credentials for [huggingface.co](http://huggingface.co) in your osx keychain then

---

<div class="post-metadata">

**Author:** ![lordvader31](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lordvader31/32/22912_2.png) [@lordvader31](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flordvader31)%5C
**Post date:** [January 12, 2024, 9:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F7 "2024-01-12T21:45:58Z")

</div>

There is no [huggingface.co](http://huggingface.co) in my Keychain. I have globally disabled credentials.helper as well using

```auto
git config --global --unset credentials.helper

```

I still face that issue when I try to git clone.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [January 16, 2024, 7:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-lfs-pull%2F68867%2F8 "2024-01-16T19:54:53Z")

</div>

Closed on January 16, 2024, 7:54pm UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
