You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed I can't push the LFS files associated with Keras models anymore. What's interesting is that I'm experiencing the same issue on older versions of huggingface_hub (0.4.0) as well as new versions (0.5.1).
When you run the above, you get this...I redacted my token which was being printed here.
remote: -------------------------------------------------------------------------
remote: Your push was rejected because it contains binary files.
remote: Please use https://git-lfs.github.com/ to store binary files.
remote: See also: https://hf.co/docs/hub/adding-a-model#uploading-your-files
remote: -------------------------------------------------------------------------
remote: Offending files:
remote: - variables/variables.data-00000-of-00001 (ref: refs/heads/main)
To https://huggingface.co/nateraw/test-save-keras-sequential
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://user:<REDACTED TOKEN>@huggingface.co/nateraw/test-save-keras-sequential'
The text was updated successfully, but these errors were encountered:
The issue linked above is due to binary files not being automatically tracked by git-lfs; in this instance, the push was rejected because it contains binary file. I believe having automatic tracking via git-lfs for binary files would solve the issue shown by @nateraw's code sample above.
I noticed I can't push the LFS files associated with Keras models anymore. What's interesting is that I'm experiencing the same issue on older versions of
huggingface_hub
(0.4.0) as well as new versions (0.5.1).Here is a minimal example to recreate the issue:
You can also try it yourself in Colab:
When you run the above, you get this...I redacted my token which was being printed here.
The text was updated successfully, but these errors were encountered: