feat: MLflow metrics visualization, enhanced wait UI, and eval job links#5662
Open
mollyheamazon wants to merge 11 commits intoaws:masterfrom
Open
feat: MLflow metrics visualization, enhanced wait UI, and eval job links#5662mollyheamazon wants to merge 11 commits intoaws:masterfrom
mollyheamazon wants to merge 11 commits intoaws:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
New public APIs (
sagemaker.train)get_studio_url— get a SageMaker Studio URL for any training job:get_mlflow_url— get a presigned MLflow experiment URL (valid 5 min):plot_training_metrics— plot MLflow metrics from a completed training job in Jupyter (requiressagemaker-train[notebook]):
get_available_metrics— list available MLflow metrics for a job:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Enhancements
Training job
wait()UI overhaulEvaluation pipeline
wait()UILoss metric detection broadened
total_loss; now matches any metric containing "loss" viaLOSS_METRIC_KEYWORDS, improving coverage across model familiesOptional notebook dependencies
ipywidgets, rich, matplotlibadded to optional extra — install with:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bug fixes
resource_confignull-safety: TrainingJob.wait() no longer crashes whenresource_configisUnassignedMlflowRunNameremoved from pipeline templates: The pipeline definition uses the MLflowConfiguration schema (pipeline-level), which only supportsMlflowResourceArnandMlflowExperimentName.MlflowRunNamebelongs to MlflowConfig (training job-level) and is not a valid field in the pipeline definition — passing it was causing API validation errors.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Testing
tests/unit/train/common_utils/test_metrics_visualizer.pycovering_parse_job_arn, get_console_job_url, get_cloudwatch_logs_url, get_studio_url (object / ARN / job-name inputs), and get_available_metricsBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.