-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[air/output] Collection of small AIR output improvements #37571
Conversation
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
# Conflicts: # python/ray/tune/experimental/output.py
@@ -688,8 +688,6 @@ | |||
" # redirect logs to relative path instead of default ~/ray_results/\n", | |||
" storage_path=\"my_Tune_logs\",\n", | |||
" name=\"batch_tuning\",\n", | |||
" # Set Ray Tune verbosity. Print summary table only with levels 2 or 3.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a timeline to enable new output by default? Currently the RunConfig docstring is a little confusing.
verbose – 0, 1, 2, or 3. Verbosity mode. 0 = silent, 1 = only status updates,
2 = status and brief results, 3 = status and detailed results. Defaults to 3. If the
RAY_AIR_NEW_OUTPUT=1 environment variable is set, uses the new context-aware
verbosity settings: 0 = silent, 1 = default, 2 = verbose.
Not needed for now, but would be great to have examples comparing outputs in verbosity level 0, 1, 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aim to enable this per default in 2.7
@@ -85,6 +85,7 @@ | |||
"trial_id", | |||
"experiment_tag", | |||
"should_checkpoint", | |||
"_report_on", # LIGHTNING_REPORT_STAGE_KEY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is created by us in LightningTrainer. Yes, we should put it into the blacklist.
shown_attributes["metrics"] = { | ||
k: v for k, v in self.metrics.items() if k not in AUTO_RESULT_KEYS | ||
k: v for k, v in self.metrics.items() if k not in exclude |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So BLACKLISTED_KEYS will not be shown in Result and ResultGrid repr, but will still be printed by ProgressReporter on_trial_result, right? I feel like information like time_since_restore
and iterations_since_restore
are still important for progress tracking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this PR we're just removing it from the repr.
Currently the blacklisted keys are also not printed in the results table. Per default, only the most relevant metrics should be printed. If users want to show more metrics, they can customize this.
Maybe customization of this should be a blocker for enabling per default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs stamp
…#37571) This PR includes a number of improvements to Ray AIRs context-aware output engine Remove verbose=x from a number of examples ( [AIR output] Use verbose =1 by default in train or tune examples ray-project#36911) Use blocks to logically group outputs/control newlines ( [AIR output] Remove the blank line between reported results and checkpoint info. ray-project#36815) Exclude _report_on ( [AIR Output] Not sure if some metrics for lightning trainer are unnecessary ray-project#36818) Extend blacklisted keys in result repr ( [AIR output] make the best result of tune output more readable ray-project#36791) Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: NripeshN <nn2012@hw.ac.uk>
…#37571) This PR includes a number of improvements to Ray AIRs context-aware output engine Remove verbose=x from a number of examples ( [AIR output] Use verbose =1 by default in train or tune examples ray-project#36911) Use blocks to logically group outputs/control newlines ( [AIR output] Remove the blank line between reported results and checkpoint info. ray-project#36815) Exclude _report_on ( [AIR Output] Not sure if some metrics for lightning trainer are unnecessary ray-project#36818) Extend blacklisted keys in result repr ( [AIR output] make the best result of tune output more readable ray-project#36791) Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: harborn <gangsheng.wu@intel.com>
…#37571) This PR includes a number of improvements to Ray AIRs context-aware output engine Remove verbose=x from a number of examples ( [AIR output] Use verbose =1 by default in train or tune examples ray-project#36911) Use blocks to logically group outputs/control newlines ( [AIR output] Remove the blank line between reported results and checkpoint info. ray-project#36815) Exclude _report_on ( [AIR Output] Not sure if some metrics for lightning trainer are unnecessary ray-project#36818) Extend blacklisted keys in result repr ( [AIR output] make the best result of tune output more readable ray-project#36791) Signed-off-by: Kai Fricke <kai@anyscale.com>
…#37571) This PR includes a number of improvements to Ray AIRs context-aware output engine Remove verbose=x from a number of examples ( [AIR output] Use verbose =1 by default in train or tune examples ray-project#36911) Use blocks to logically group outputs/control newlines ( [AIR output] Remove the blank line between reported results and checkpoint info. ray-project#36815) Exclude _report_on ( [AIR Output] Not sure if some metrics for lightning trainer are unnecessary ray-project#36818) Extend blacklisted keys in result repr ( [AIR output] make the best result of tune output more readable ray-project#36791) Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
…#37571) This PR includes a number of improvements to Ray AIRs context-aware output engine Remove verbose=x from a number of examples ( [AIR output] Use verbose =1 by default in train or tune examples ray-project#36911) Use blocks to logically group outputs/control newlines ( [AIR output] Remove the blank line between reported results and checkpoint info. ray-project#36815) Exclude _report_on ( [AIR Output] Not sure if some metrics for lightning trainer are unnecessary ray-project#36818) Extend blacklisted keys in result repr ( [AIR output] make the best result of tune output more readable ray-project#36791) Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: Victor <vctr.y.m@example.com>
Why are these changes needed?
Includes #37531
This PR includes a number of improvements to Ray AIRs context-aware output engine
verbose=x
from a number of examples ([AIR output] Use verbose =1 by default in train or tune examples #36911)_report_on
([AIR Output] Not sure if some metrics for lightning trainer are unnecessary #36818)Related issue number
Closes #36911
Closes #36815
Closes #36818
Closes #36791
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.