Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HANDS-ON BUG] Unit 1 problem with LFS files pushing model to the hub #460

Closed
AlvLC opened this issue Jan 4, 2024 · 9 comments
Closed

Comments

@AlvLC
Copy link

AlvLC commented Jan 4, 2024

Bug description

Hi there, I've strictly followed the notebook (checking the solutions for each cell) from the hands-on exercise in unit 1 and I always encounter this problem when I try to push the model to the hub:

image

Basically, the repository is created and the login to HF is fine but it gets stuck indefinitely waiting for the LSF files to be uploaded. I've tried to install LSF again and searched for information about this issue but I can't seem to find what is going on. I'll share the notebook bellow in case that anyone can help and there's anything that I oversaw but I find it weird.

Material

@sardorboboshov
Copy link

I am having same problem

@magixn
Copy link

magixn commented Jan 6, 2024

I found that 4 LFS in the official model are all smaller than 200KB. I wonder it may be not a network issue. I also cannot visit the leaderboard after Runtime error during upload with

It appears that one or more of your files contain valid Hugging Face secrets, such as tokens or API keys. It is important to keep your secrets private and not expose them in code that is publicly accessible.

I think I do not do anything else but fill the TODO and run the notebook.

@andlock97
Copy link

I'm also having the same problem

@fernando-ml
Copy link

I am having this issue as well.

@JamesMurrayCoder
Copy link

I am also having this issue

@Drakrig
Copy link

Drakrig commented Jan 7, 2024

I've managed to push it successfully by passing token directly to package_to_hub function like this:

package_to_hub(model=model, model_name=model_name, model_architecture=model_architecture, env_id=env_id, eval_env=eval_env, repo_id=repo_id, token=TOKEN_AS_STRING, commit_message=commit_message)

Looks like all this scheme with notebook_login() and git config --global credential.helper store doesn't work as intended in Colab for now.

@fernando-ml
Copy link

@Drakrig Thank you so much. Your approach worked for me.

@AlvLC
Copy link
Author

AlvLC commented Jan 8, 2024

Also worked for me. I've had other similar issues trying to use some HF classes with the usual login instead of just passing the token. Thank you @Drakrig !!!

@AlvLC AlvLC closed this as completed Jan 8, 2024
@Wauplin
Copy link

Wauplin commented Jan 10, 2024

Hi everyone, sorry for the inconvenience on this topic. The bug has been identified and fixed in huggingface_hub. More details in huggingface/huggingface_hub#1953 (comment).

TL;DR: in the meantime you can fix the problem by running !pip install -U huggingface_hub before running anything else in your colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants