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

Introduce TrialRunner Abstraction #720

Merged
merged 279 commits into from
Jan 10, 2025

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Mar 19, 2024

This is another step in adding support for parallel trial execution #380.

Here we separate out the running of an individual trial to a single class - TrialRunner.

Multiple TrialRunners are instantiated at CLI invocation with the --num-trial-runners argument. 
Each TrialRunner associated with a single copy of the root Environment and its Services (important for eventual parallelization reasons), and made unique by means of a unique trial_runner_id value that's also included in that Environment's global_config.

In future PRs we will add:

  • New Scheduler implementations to run TrialRunners in parallel.
  • Async polling of status results in each TrialRunner independently.

motus and others added 30 commits February 27, 2024 17:42
bpkroth and others added 2 commits January 9, 2025 18:59
Co-authored-by: Sergiy Matusevych <sergiy.matusevych@gmail.com>
Co-authored-by: Sergiy Matusevych <sergiy.matusevych@gmail.com>
Copy link
Member

@motus motus left a comment

Choose a reason for hiding this comment

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

Looks great! Left a few minor comments

bpkroth and others added 5 commits January 10, 2025 16:09
Co-authored-by: Sergiy Matusevych <sergiy.matusevych@gmail.com>
Co-authored-by: Sergiy Matusevych <sergiy.matusevych@gmail.com>
Co-authored-by: Sergiy Matusevych <sergiy.matusevych@gmail.com>
@bpkroth bpkroth enabled auto-merge (squash) January 10, 2025 22:15
@bpkroth bpkroth merged commit 6ffe546 into microsoft:main Jan 10, 2025
15 checks passed
@bpkroth bpkroth deleted the trial-runner-abstraction branch January 10, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants