Skip to content

Conversation

@taufeeque9
Copy link
Collaborator

Description

Added demonstrations.rollout_type in all the configs to download rollouts from the huggingface hub. Also, updated config key names changed in #604.

Testing

Tested the configs locally using: python -m imitation.scripts.<train_script> <algo> with benchmarking/<config_name>.json

@taufeeque9 taufeeque9 requested a review from AdamGleave January 4, 2023 12:29
@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Merging #650 (7486f97) into master (681cb72) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #650   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files          86       86           
  Lines        8373     8373           
=======================================
  Hits         8166     8166           
  Misses        207      207           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ernestum
Copy link
Collaborator

ernestum commented Jan 6, 2023

Good catch with the ("common", "env_name") -> ("environment", "gym_id") transition! I missed that during refactoring.

Also seams sensible to download demonstration instead of computing from scratch.

LGTM from my side. This is mostly configuration file changes.

hacobe added a commit that referenced this pull request Jan 6, 2023
This commit patches in the changes from PR #650. It also fixes an error in the dagger configs by replacing "py/object" with "py/type". "py/object" failed the assert in sacred.config.utils.assert_is_valid_key. Finally, it adds a minimal test suite for the benchmarking configs. This commit makes progress on testing, but still does not test that all the benchmarking configs work. Running all the configs with the fast configs applied is too slow. Calling sacred's print_config command for all the configs is also too slow.
hacobe added a commit that referenced this pull request Jan 6, 2023
This commit patches in the changes from PR #650. It also fixes an error in the dagger configs by replacing "py/object" with "py/type". "py/object" failed the assert in sacred.config.utils.assert_is_valid_key. Finally, it adds a minimal test suite for the benchmarking configs. This commit makes progress on testing, but still does not test that all the benchmarking configs work. Running all the configs with the fast configs applied is too slow. Calling sacred's print_config command for all the configs is also too slow.
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 too. Thanks for reviewing ernestum!

@AdamGleave AdamGleave merged commit db05dc3 into master Jan 6, 2023
@AdamGleave AdamGleave deleted the update-benchmarking-configs branch January 6, 2023 22:31
AdamGleave added a commit that referenced this pull request Jan 8, 2023
#653)

* Fix benchmarking configs + Add a minimal test suite for those configs.

This commit patches in the changes from PR #650. It also fixes an error in the dagger configs by replacing "py/object" with "py/type". "py/object" failed the assert in sacred.config.utils.assert_is_valid_key. Finally, it adds a minimal test suite for the benchmarking configs. This commit makes progress on testing, but still does not test that all the benchmarking configs work. Running all the configs with the fast configs applied is too slow. Calling sacred's print_config command for all the configs is also too slow.

* Update the tests for benchmarking configs so that they do not require MuJoCo.

* Remove unused global in test_benchmarking.py

* Test all the benchmarking configs using print_config.

Avoid the overhead of subprocess by running the print_config using the experiment's run method. Also, use a path relative to the script for BENCHMARKING_DIR instead of creating a path and then checking if it exists.

* Minor fixes

Co-authored-by: Adam Gleave <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants