question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to correctly upload 160 RL models?

See original GitHub issue

Hi! For people who upload a lot of models on the Hub, I’m working on the upload of about 160 RL models (rl-trained-agents) 🔥 so I will not do it by hand 😅

The github repository containing all the models is like this:

rl-trained-agents
   /a2c/Acrobot-v1_1
   /a2c/CartPole-v1_1
   ...
   /ppo/CartPOle-v1_1

Each model is like this (for instance /ppo/SpaceInvadersNoFrameskip-v4:

├── SpaceInvadersNoFrameskip-v4_1/
│   ├── SpaceInvadersNoFrameskip-v4.zip
│   ├── monitor.csv
│   ├── evaluations.npz        
│   ├── SpaceInvadersNoFrameskip-v4/
│     ├── args.yml
│     ├── config.yml
│     ├── vecnormalize.pkl

The process I’m defining is this way (pseudocode) for each {algo}/{env_id}:

# Step 1: Create Repo on the Hub using Repository
sb3/{algo}-{env_id}: for instance `sb3/ppo-CartPole-v1`

# Step 2: Clone the Repo to a folder

# Step 3: Move the corresponding rl-trained-agents/algo/env to Repo

# Step 4: Go to the Repo and generate the model card

# Step 5: Generate the video (using a script)

# Step 6: Push to Hub the repo

Do you think it’s a good process or you have some better solutions? Thanks for your feedback

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
julien-ccommented, Mar 14, 2022

i agree that you should store the uncompressed files whenever possible (to get git history etc)

1reaction
osansevierocommented, Mar 14, 2022

This is super cool, really looking forward to this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Models, Preprocessors, and Action Distributions — Ray 2.2.0
We start with an Environment , which - given an action - produces an observation. The observation is preprocessed by a Preprocessor and...
Read more >
Save and Load Machine Learning Models in Python with scikit ...
Save Model Using Pickle. import pandas. from sklearn import model_selection. from sklearn.linear_model import LogisticRegression.
Read more >
master PDF - Stable Baselines3 Documentation
RL Baselines3 Zoo provides a collection of pre-trained agents, scripts for training, evaluating agents, tuning hyperpa- rameters, plotting ...
Read more >
An Introduction to Deep Reinforcement Learning - Hugging Face
Deep RL is a type of Machine Learning where an agent learns how to behave in an ... to land correctly on the...
Read more >
Combined model-free and model-sensitive reinforcement ...
Contemporary reinforcement learning (RL) theory suggests that potential ... leading us to develop a novel Hybrid+ model (see below), which accurately ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found