Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions sagemaker-train/src/sagemaker/train/aws_batch/training_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def submit(
share_identifier: Optional[str] = None,
timeout: Optional[Dict] = None,
tags: Optional[Dict] = None,
experiment_config: Optional[Dict] = None,
) -> TrainingQueuedJob:
"""Submit a queued job and return a QueuedJob object.

Expand All @@ -54,9 +53,6 @@ def submit(
share_identifier: Share identifier for Batch job.
timeout: Timeout configuration for Batch job.
tags: Tags apply to Batch job. These tags are for Batch job only.
experiment_config: Experiment management configuration.
Optionally, the dict can contain four keys:
'ExperimentName', 'TrialName', 'TrialComponentDisplayName' and 'RunName'.

Returns: a TrainingQueuedJob object with Batch job ARN and job name.

Expand All @@ -71,11 +67,6 @@ def submit(
raise ValueError(
"TrainingQueue requires using a ModelTrainer with Mode.SAGEMAKER_TRAINING_JOB"
)
if experiment_config is not None:
logging.warning(
"ExperimentConfig is not supported for ModelTrainer. "
"It will be ignored when submitting the job."
)
training_payload = training_job._create_training_job_args(
input_data_config=inputs, boto3=True
)
Expand Down Expand Up @@ -111,7 +102,6 @@ def map(
share_identifier: Optional[str] = None,
timeout: Optional[Dict] = None,
tags: Optional[Dict] = None,
experiment_config: Optional[Dict] = None,
) -> List[TrainingQueuedJob]:
"""Submit queued jobs to the provided estimator and return a list of TrainingQueuedJob objects.

Expand All @@ -124,15 +114,10 @@ def map(
share_identifier: Share identifier for the Batch jobs.
timeout: Timeout configuration for the Batch jobs.
tags: Tags apply to Batch job. These tags are for Batch job only.
experiment_config: Experiment management configuration.
Optionally, the dict can contain four keys:
'ExperimentName', 'TrialName', 'TrialComponentDisplayName' and 'RunName'.

Returns: a list of TrainingQueuedJob objects with each Batch job ARN and job name.

"""
if experiment_config is None:
experiment_config = {}

if job_names is not None:
if len(job_names) != len(inputs):
Expand All @@ -153,7 +138,6 @@ def map(
share_identifier,
timeout,
tags,
experiment_config,
)
queued_batch_job_list.append(queued_batch_job)

Expand Down
Loading