You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hey!
If you create an Estimator instance using attach(...) method and referring to an existing training job that has debugger enabled, then latest_job_debugger_artifacts_path() method call outputs None value since Estimator.debugger_hook_config property object is not populated.
To reproduce
importboto3importsagemakertraining_job_name='<your-training-job-name-with-debugger-enabled>'estimator=sagemaker.estimator.Estimator.attach(training_job_name)
assertestimator.latest_job_debugger_artifacts_path() isNone# to ensure that debugger artifacts path does existsm_client=boto3.client('sagemaker')
assertsm_client.describe_training_job(TrainingJobName=training_job_name)['DebugHookConfig']['S3OutputPath']
Expected behavior
Calling Estimator.attach('<your-training-job-name-with-debugger-enabled>').latest_job_debugger_artifacts_path() should return a correct S3 path instead of None.
Screenshots or logs
-
System information
A description of your system. Please provide:
SageMaker Python SDK version: 2.116.0
Framework name (eg. PyTorch) or algorithm (eg. KMeans): -