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

[docs] Provide guidelines for Many Model Training #31517

Merged
merged 5 commits into from
Jan 10, 2023

Conversation

richardliaw
Copy link
Contributor

@richardliaw richardliaw commented Jan 7, 2023

Why are these changes needed?

Closes #31486 by providing basic guidelines for usage.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
@Yard1
Copy link
Member

Yard1 commented Jan 9, 2023

Should we link to the guidelines from the notebooks themselves?

@richardliaw
Copy link
Contributor Author

richardliaw commented Jan 9, 2023 via email

Yard1 added 2 commits January 9, 2023 19:48
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@Yard1
Copy link
Member

Yard1 commented Jan 9, 2023

@richardliaw added, PTAL

@richardliaw
Copy link
Contributor Author

richardliaw commented Jan 9, 2023 via email

@@ -24,7 +26,12 @@
"source": [
"Batch training in the context of this notebook is understood as creating the same model(s) for different and separate datasets or subsets of a dataset. This task is naively parallelizable and can be easily scaled with Ray.\n",
"\n",
"![Batch training diagram](./images/batch-training.svg)"
"![Batch training diagram](./images/batch-training.svg)\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove the tip in line 17 now to avoid contradiction?

Copy link
Contributor

@c21 c21 left a comment

Choose a reason for hiding this comment

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

LGTM

@stephanie-wang stephanie-wang self-assigned this Jan 10, 2023
Comment on lines 73 to 75
1. If you have a large amount of data, use Ray Data (:ref:`Tutorial <mmt-datasets>`).
2. If you want to integrate with tools, such as wandb and mlflow, and if you have less than 20,000 models, use Ray Tune (:ref:`Tutorial <mmt-tune>`).
3. If you want lower level control, better scale (up to 1 million models), maybe faster performance, use Ray Core (:ref:`Tutorial <mmt-core>`). Note that this requires you to be more careful about implementation.
Copy link
Contributor

@stephanie-wang stephanie-wang Jan 10, 2023

Choose a reason for hiding this comment

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

I am a bit confused by this categorization. Are they mutually exclusive? I thought we would want to use Ray Data and Tune together. Maybe this is what you mean, but I think it could be more clear; one suggestion is to list Ray Core as a separate paragraph, more like an afterthought instead of equivalent to the other two.

Also confused by the "less than 20,000 models" part. What happens if you have more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RE: Tune vs Ray Data -- we are talking about two different APIs that are mutually exclusive, the data map_groups and the Tune standard grid_search sweep.

RE: 20k - Basically Tune performance starts to degrade close to beyond that.

Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
@richardliaw richardliaw merged commit d970332 into ray-project:master Jan 10, 2023
@richardliaw richardliaw deleted the provide-mmt-guides branch January 10, 2023 20:04
@richardliaw
Copy link
Contributor Author

richardliaw commented Jan 12, 2023 via email

AmeerHajAli pushed a commit that referenced this pull request Jan 12, 2023
Co-authored-by: Antoni Baum <antoni.baum@protonmail.com>
Closes #31486
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.

[MMT] Add guidance to help user choose which Ray solution to choose for MMT
6 participants