How to fork (in the git sense) a model repository?

Was just following along to suggest a small change pr to a model.

I just had to git lfs fetch --all before git push origin temp because it otherwise gives:

git push origin temp
warning: current Git remote contains credentials
Git LFS upload failed:  80% (4/5), 4.5 GB | 58 MB/s
  (missing) images/salamandra_header.png (cf6dc7a1417abe08847862374af113980d1e7d498ae9cc5e9ebe1a514c322bf7)
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: `git config lfs.allowincompletepush true`
Uploading LFS objects:  80% (4/5), 4.5 GB | 58 MB/s, done.
error: failed to push some refs to 'https://huggingface.co/robbiemu/salamandra-2b-instruct'

I think nowadays many of the ifs specific parts like git lfs clone and git lfs push --all origin temp are unnecessary.

1 Like