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 LunarLander - not able to push trained agent to the Hub #462

Closed
bantu-4879 opened this issue Jan 7, 2024 · 2 comments

Comments

@bantu-4879
Copy link

bantu-4879 commented Jan 7, 2024

Describe the bug

A clear and concise description of what the bug is - kernel keeps running on this code

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, 
               commit_message=commit_message)

I run all the previous necessary steps but when it comes to this code it keeps on running indefinitely and LFS upload shows 0/4

Notebook Link

Material

  • Did you use Google Colab?
  • yes

If not:

  • Your Operating system (OS)
  • Version of your OS
@bantu-4879 bantu-4879 changed the title [HANDS-ON BUG] [HANDS-ON BUG] Unit-1 LunarLander - not able to push trained agent to the Hub Jan 7, 2024
@michelepangrazi
Copy link

michelepangrazi commented Jan 7, 2024

I obtain the same problem.

The code below:

package_to_hub(model=model, # Our trained model model_name=model_name, # The name of our trained model model_architecture=model_architecture, # The model architecture we used: in our case PPO env_id=env_id, # Name of the environment eval_env=eval_env, # Evaluation Environment repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2 commit_message=commit_message)

create correctly the repository in the model section but empty and stay stuck indefinitely without push anything

@michelepangrazi
Copy link

Hi @bantu-4879,
i used the sudgestion of @Drakrig in this issue #460 and work for me

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)

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

2 participants