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

Reduce training time and improve expert loading code in the tutorials #810

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

ernestum
Copy link
Collaborator

@ernestum ernestum commented Oct 9, 2023

Description

The readthedocs pipeline failed due to timeouts when executing the cells of tutorial notebooks.
This was fixed by reducing the number of steps to train in the FAST mode of the AIRL tutorial.

Along the way I fixed the way experts are loaded in the tutorials:
Before: they were loaded based on normalized** environment names. However, the loader normalizes the names itself so it should be less confusing that we just load the experts based on the original environment name.

Also in one tutorial we were not even using the load_expert util function. I made sure it is used in all tutorials that load an expert in the same way.

** normalized means slashes replaced by hyphens

Will fix #793 and fix #790

Testing

Changes are covered by the existing tests.

@ernestum ernestum requested review from shwang and AdamGleave and removed request for shwang October 9, 2023 20:29
Copy link
Member

@AdamGleave AdamGleave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this promptly Max!

@AdamGleave AdamGleave merged commit f099c33 into master Oct 9, 2023
7 of 9 checks passed
@AdamGleave AdamGleave deleted the readthedocs-fixes branch October 9, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants