@@ -158,9 +158,9 @@ def test_unsupported_BYOC(
158
158
):
159
159
byoc = (
160
160
"1.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-trcomp-training:"
161
- "1.9.0 -"
162
- "transformers4.10.2 -gpu-"
163
- "py38-cu111 -ubuntu20.04"
161
+ "1.10.2 -"
162
+ "transformers4.17.0 -gpu-"
163
+ "py38-cu113 -ubuntu20.04"
164
164
)
165
165
with pytest .raises (ValueError ):
166
166
HuggingFace (
@@ -451,9 +451,9 @@ def test_attach(
451
451
):
452
452
training_image = (
453
453
"1.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-trcomp-training:"
454
- "1.9.0 -"
455
- "transformers4.10.2 -gpu-"
456
- "py38-cu111 -ubuntu20.04"
454
+ "1.10.2 -"
455
+ "transformers4.17.0 -gpu-"
456
+ "py38-cu113 -ubuntu20.04"
457
457
)
458
458
returned_job_description = {
459
459
"AlgorithmSpecification" : {"TrainingInputMode" : "File" , "TrainingImage" : training_image },
@@ -462,7 +462,7 @@ def test_attach(
462
462
"sagemaker_program" : '"iris-dnn-classifier.py"' ,
463
463
"sagemaker_s3_uri_training" : '"sagemaker-3/integ-test-data/tf_iris"' ,
464
464
"sagemaker_container_log_level" : '"logging.INFO"' ,
465
- "sagemaker_job_name" : '"hopper "' ,
465
+ "sagemaker_job_name" : '"trcomp "' ,
466
466
"training_steps" : "100" ,
467
467
"sagemaker_region" : '"us-east-1"' ,
468
468
TrainingCompilerConfig .HP_ENABLE_COMPILER : json .dumps (compiler_enabled ),
@@ -475,27 +475,27 @@ def test_attach(
475
475
"InstanceType" : "ml.p3.2xlarge" ,
476
476
},
477
477
"StoppingCondition" : {"MaxRuntimeInSeconds" : 24 * 60 * 60 },
478
- "TrainingJobName" : "hopper " ,
478
+ "TrainingJobName" : "trcomp " ,
479
479
"TrainingJobStatus" : "Completed" ,
480
- "TrainingJobArn" : "arn:aws:sagemaker:us-west-2:336:training-job/hopper " ,
481
- "OutputDataConfig" : {"KmsKeyId" : "" , "S3OutputPath" : "s3://place/output/hopper " },
480
+ "TrainingJobArn" : "arn:aws:sagemaker:us-west-2:336:training-job/trcomp " ,
481
+ "OutputDataConfig" : {"KmsKeyId" : "" , "S3OutputPath" : "s3://place/output/trcomp " },
482
482
"TrainingJobOutput" : {"S3TrainingJobOutput" : "s3://here/output.tar.gz" },
483
483
}
484
484
sagemaker_session .sagemaker_client .describe_training_job = Mock (
485
485
name = "describe_training_job" , return_value = returned_job_description
486
486
)
487
487
488
- estimator = HuggingFace .attach (training_job_name = "hopper " , sagemaker_session = sagemaker_session )
489
- assert estimator .latest_training_job .job_name == "hopper "
488
+ estimator = HuggingFace .attach (training_job_name = "trcomp " , sagemaker_session = sagemaker_session )
489
+ assert estimator .latest_training_job .job_name == "trcomp "
490
490
assert estimator .py_version == "py38"
491
- assert estimator .framework_version == "4.10.2 "
492
- assert estimator .pytorch_version == "1.9.0 "
491
+ assert estimator .framework_version == "4.17.0 "
492
+ assert estimator .pytorch_version == "1.10.2 "
493
493
assert estimator .role == "arn:aws:iam::366:role/SageMakerRole"
494
494
assert estimator .instance_count == 1
495
495
assert estimator .max_run == 24 * 60 * 60
496
496
assert estimator .input_mode == "File"
497
- assert estimator .base_job_name == "hopper "
498
- assert estimator .output_path == "s3://place/output/hopper "
497
+ assert estimator .base_job_name == "trcomp "
498
+ assert estimator .output_path == "s3://place/output/trcomp "
499
499
assert estimator .output_kms_key == ""
500
500
assert estimator .hyperparameters ()["training_steps" ] == "100"
501
501
assert estimator .hyperparameters ()[TrainingCompilerConfig .HP_ENABLE_COMPILER ] == json .dumps (
0 commit comments