DescribeTrainingJobResponse
¶
Source code in docs_src/capo_sagemaker/types/describe_training_job_response.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |
algorithm_specification
instance-attribute
¶
algorithm_specification: NotRequired[AlgorithmSpecification]
Information about the algorithm used for training, and algorithm metadata.
auto_ml_job_arn
instance-attribute
¶
auto_ml_job_arn: NotRequired[AutoMLJobArn]
The Amazon Resource Name (ARN) of an AutoML job.
billable_time_in_seconds
instance-attribute
¶
billable_time_in_seconds: NotRequired[BillableTimeInSeconds]
The billable time in seconds. Billable time refers to the absolute wall-clock time.
Multiply BillableTimeInSeconds by the number of instances (InstanceCount) in your training cluster to get the total compute time SageMaker bills you if you run distributed training. The formula is as follows: BillableTimeInSeconds * InstanceCount .
You can calculate the savings from using managed spot training using the formula (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100. For example, if BillableTimeInSeconds is 100 and TrainingTimeInSeconds is 500, the savings is 80%.
billable_token_count
instance-attribute
¶
billable_token_count: NotRequired[BillableTokenCount]
The billable token count for eligible serverless training jobs.
creation_time
instance-attribute
¶
creation_time: NotRequired[Timestamp]
A timestamp that indicates when the training job was created.
debug_rule_configurations
instance-attribute
¶
debug_rule_configurations: NotRequired[DebugRuleConfigurations]
Configuration information for Amazon SageMaker Debugger rules for debugging output tensors.
debug_rule_evaluation_statuses
instance-attribute
¶
debug_rule_evaluation_statuses: NotRequired[DebugRuleEvaluationStatuses]
Evaluation status of Amazon SageMaker Debugger rules for debugging on a training job.
enable_inter_container_traffic_encryption
instance-attribute
¶
enable_inter_container_traffic_encryption: NotRequired[Boolean]
To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithms in distributed training.
enable_managed_spot_training
instance-attribute
¶
enable_managed_spot_training: NotRequired[Boolean]
A Boolean indicating whether managed spot training is enabled (True) or not (False).
enable_network_isolation
instance-attribute
¶
enable_network_isolation: NotRequired[Boolean]
If you want to allow inbound or outbound network calls, except for calls between peers within a training cluster for distributed training, choose True. If you enable network isolation for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.
environment
instance-attribute
¶
environment: NotRequired[TrainingEnvironmentMap]
The environment variables to set in the Docker container.
Do not include any security-sensitive information including account access IDs, secrets, or tokens in any environment fields. As part of the shared responsibility model, you are responsible for any potential exposure, unauthorized access, or compromise of your sensitive data if caused by security-sensitive information included in the request environment variable or plain text fields.
failure_reason
instance-attribute
¶
failure_reason: NotRequired[FailureReason]
If the training job failed, the reason it failed.
final_metric_data_list
instance-attribute
¶
final_metric_data_list: NotRequired[FinalMetricDataList]
A collection of MetricData objects that specify the names, values, and dates and times that the training algorithm emitted to Amazon CloudWatch.
hyper_parameters
instance-attribute
¶
hyper_parameters: NotRequired[HyperParameters]
Algorithm-specific parameters.
infra_check_config
instance-attribute
¶
infra_check_config: NotRequired[InfraCheckConfig]
Contains information about the infrastructure health check configuration for the training job.
input_data_config
instance-attribute
¶
input_data_config: NotRequired[InputDataConfig]
An array of Channel objects that describes each data input channel.
labeling_job_arn
instance-attribute
¶
labeling_job_arn: NotRequired[LabelingJobArn]
The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling job that created the transform or training job.
last_modified_time
instance-attribute
¶
last_modified_time: NotRequired[Timestamp]
A timestamp that indicates when the status of the training job was last modified.
mlflow_config
instance-attribute
¶
mlflow_config: NotRequired[MlflowConfig]
The MLflow configuration using SageMaker managed MLflow.
mlflow_details
instance-attribute
¶
mlflow_details: NotRequired[MlflowDetails]
The MLflow details of this job.
model_artifacts
instance-attribute
¶
model_artifacts: NotRequired[ModelArtifacts]
Information about the Amazon S3 location that is configured for storing model artifacts.
model_package_config
instance-attribute
¶
model_package_config: NotRequired[ModelPackageConfig]
The configuration for the model package.
output_data_config
instance-attribute
¶
output_data_config: NotRequired[OutputDataConfig]
The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.
output_model_package_arn
instance-attribute
¶
output_model_package_arn: NotRequired[ModelPackageArn]
The Amazon Resource Name (ARN) of the output model package containing model weights or checkpoints.
profiler_rule_configurations
instance-attribute
¶
profiler_rule_configurations: NotRequired[ProfilerRuleConfigurations]
Configuration information for Amazon SageMaker Debugger rules for profiling system and framework metrics.
profiler_rule_evaluation_statuses
instance-attribute
¶
profiler_rule_evaluation_statuses: NotRequired[ProfilerRuleEvaluationStatuses]
Evaluation status of Amazon SageMaker Debugger rules for profiling on a training job.
profiling_status
instance-attribute
¶
profiling_status: NotRequired[ProfilingStatus]
Profiling status of a training job.
progress_info
instance-attribute
¶
progress_info: NotRequired[TrainingProgressInfo]
The Serverless training job progress information.
remote_debug_config
instance-attribute
¶
remote_debug_config: NotRequired[RemoteDebugConfig]
Configuration for remote debugging. To learn more about the remote debugging functionality of SageMaker, see Access a training container through Amazon Web Services Systems Manager (SSM) for remote debugging.
resource_config
instance-attribute
¶
resource_config: NotRequired[ResourceConfig]
Resources, including ML compute instances and ML storage volumes, that are configured for model training.
retry_strategy
instance-attribute
¶
retry_strategy: NotRequired[RetryStrategy]
The number of times to retry the job when the job fails due to an InternalServerError.
role_arn
instance-attribute
¶
role_arn: NotRequired[RoleArn]
The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.
secondary_status
instance-attribute
¶
secondary_status: NotRequired[SecondaryStatus]
Provides detailed information about the state of the training job. For detailed information on the secondary status of the training job, see StatusMessage under SecondaryStatusTransition.
SageMaker provides primary statuses and secondary statuses that apply to each of them:
- InProgress
-
-
Starting- Starting the training job. -
Pending- The training job is waiting for compute capacity or compute resource provision. -
Downloading- An optional stage for algorithms that supportFiletraining input mode. It indicates that data is being downloaded to the ML storage volumes. -
Training- Training is in progress. -
Interrupted- The job stopped because the managed spot training instances were interrupted. -
Uploading- Training is complete and the model artifacts are being uploaded to the S3 location.
-
- Completed
-
-
Completed- The training job has completed.
-
- Failed
-
-
Failed- The training job has failed. The reason for the failure is returned in theFailureReasonfield ofDescribeTrainingJobResponse.
-
- Stopped
-
-
MaxRuntimeExceeded- The job stopped because it exceeded the maximum allowed runtime. -
MaxWaitTimeExceeded- The job stopped because it exceeded the maximum allowed wait time. -
Stopped- The training job has stopped.
-
- Stopping
-
-
Stopping- Stopping the training job.
-
Valid values for SecondaryStatus are subject to change.
We no longer support the following secondary statuses:
-
LaunchingMLInstances -
PreparingTraining -
DownloadingTrainingImage
secondary_status_transitions
instance-attribute
¶
secondary_status_transitions: NotRequired[SecondaryStatusTransitions]
A history of all of the secondary statuses that the training job has transitioned through.
serverless_job_config
instance-attribute
¶
serverless_job_config: NotRequired[ServerlessJobConfig]
The configuration for serverless training jobs.
stopping_condition
instance-attribute
¶
stopping_condition: NotRequired[StoppingCondition]
Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.
To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
tensor_board_output_config
instance-attribute
¶
tensor_board_output_config: NotRequired[TensorBoardOutputConfig]
training_end_time
instance-attribute
¶
training_end_time: NotRequired[Timestamp]
Indicates the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when SageMaker detects a job failure.
training_job_arn
instance-attribute
¶
training_job_arn: NotRequired[TrainingJobArn]
The Amazon Resource Name (ARN) of the training job.
training_job_name
instance-attribute
¶
training_job_name: NotRequired[TrainingJobName]
Name of the model training job.
training_job_status
instance-attribute
¶
training_job_status: NotRequired[TrainingJobStatus]
The status of the training job.
SageMaker provides the following training job statuses:
-
InProgress- The training is in progress. -
Completed- The training job has completed. -
Failed- The training job has failed. To see the reason for the failure, see theFailureReasonfield in the response to aDescribeTrainingJobResponsecall. -
Stopping- The training job is stopping. -
Stopped- The training job has stopped.
For more detailed information, see SecondaryStatus.
training_start_time
instance-attribute
¶
training_start_time: NotRequired[Timestamp]
Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime. The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.
training_time_in_seconds
instance-attribute
¶
training_time_in_seconds: NotRequired[TrainingTimeInSeconds]
The training time in seconds.
tuning_job_arn
instance-attribute
¶
tuning_job_arn: NotRequired[HyperParameterTuningJobArn]
The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.
vpc_config
instance-attribute
¶
vpc_config: NotRequired[VpcConfig]
A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
warm_pool_status
instance-attribute
¶
warm_pool_status: NotRequired[WarmPoolStatus]
The status of the warm pool associated with the training job.