@@ -473,7 +473,7 @@ def test_attach(
473
473
"sagemaker_program" : '"iris-dnn-classifier.py"' ,
474
474
"sagemaker_s3_uri_training" : '"sagemaker-3/integ-test-data/tf_iris"' ,
475
475
"sagemaker_container_log_level" : '"logging.INFO"' ,
476
- "sagemaker_job_name" : '"hopper "' ,
476
+ "sagemaker_job_name" : '"trcomp "' ,
477
477
"training_steps" : "100" ,
478
478
"sagemaker_region" : '"us-east-1"' ,
479
479
TrainingCompilerConfig .HP_ENABLE_COMPILER : json .dumps (compiler_enabled ),
@@ -486,27 +486,27 @@ def test_attach(
486
486
"InstanceType" : "ml.p3.2xlarge" ,
487
487
},
488
488
"StoppingCondition" : {"MaxRuntimeInSeconds" : 24 * 60 * 60 },
489
- "TrainingJobName" : "hopper " ,
489
+ "TrainingJobName" : "trcomp " ,
490
490
"TrainingJobStatus" : "Completed" ,
491
- "TrainingJobArn" : "arn:aws:sagemaker:us-west-2:336:training-job/hopper " ,
492
- "OutputDataConfig" : {"KmsKeyId" : "" , "S3OutputPath" : "s3://place/output/hopper " },
491
+ "TrainingJobArn" : "arn:aws:sagemaker:us-west-2:336:training-job/trcomp " ,
492
+ "OutputDataConfig" : {"KmsKeyId" : "" , "S3OutputPath" : "s3://place/output/trcomp " },
493
493
"TrainingJobOutput" : {"S3TrainingJobOutput" : "s3://here/output.tar.gz" },
494
494
}
495
495
sagemaker_session .sagemaker_client .describe_training_job = Mock (
496
496
name = "describe_training_job" , return_value = returned_job_description
497
497
)
498
498
499
- estimator = HuggingFace .attach (training_job_name = "hopper " , sagemaker_session = sagemaker_session )
500
- assert estimator .latest_training_job .job_name == "hopper "
499
+ estimator = HuggingFace .attach (training_job_name = "trcomp " , sagemaker_session = sagemaker_session )
500
+ assert estimator .latest_training_job .job_name == "trcomp "
501
501
assert estimator .py_version == huggingface_training_compiler_py_version
502
502
assert estimator .framework_version == "4.17.0"
503
503
assert estimator .tensorflow_version == "2.6.3"
504
504
assert estimator .role == "arn:aws:iam::366:role/SageMakerRole"
505
505
assert estimator .instance_count == 1
506
506
assert estimator .max_run == 24 * 60 * 60
507
507
assert estimator .input_mode == "File"
508
- assert estimator .base_job_name == "hopper "
509
- assert estimator .output_path == "s3://place/output/hopper "
508
+ assert estimator .base_job_name == "trcomp "
509
+ assert estimator .output_path == "s3://place/output/trcomp "
510
510
assert estimator .output_kms_key == ""
511
511
assert estimator .hyperparameters ()["training_steps" ] == "100"
512
512
assert estimator .hyperparameters ()[TrainingCompilerConfig .HP_ENABLE_COMPILER ] == json .dumps (
0 commit comments