-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AWS SageMaker] Add integration test for sample pipeline train (#3876)
* add integ test for sample pipeline train * change docker build context integ test * add spot test and use train ccomponent test for sample train pipeline * small changes and ran flake8 and black * address comments
- Loading branch information
Showing
8 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...emaker/tests/integration_tests/resources/config/spot-sample-pipeline-training/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
PipelineDefinition: ../../../../../samples/contrib/aws-samples/simple_train_pipeline/training-pipeline.py | ||
TestName: sample-pipeline-training | ||
Timeout: 3600 | ||
ExpectedTrainingImage: ((KMEANS_REGISTRY)).dkr.ecr.((REGION)).amazonaws.com/kmeans:1 | ||
Arguments: | ||
region: ((REGION)) | ||
image: ((KMEANS_REGISTRY)).dkr.ecr.((REGION)).amazonaws.com/kmeans:1 | ||
hyperparameters: | ||
k: "10" | ||
feature_dim: "784" | ||
channels: | ||
- ChannelName: train | ||
DataSource: | ||
S3DataSource: | ||
S3Uri: s3://((DATA_BUCKET))/mnist_kmeans_example/train_data | ||
S3DataType: S3Prefix | ||
S3DataDistributionType: FullyReplicated | ||
CompressionType: None | ||
RecordWrapperType: None | ||
InputMode: File | ||
spot_instance: "True" | ||
checkpoint_config: | ||
S3Uri: s3://((DATA_BUCKET))/mnist_kmeans_example/train-checkpoints | ||
model_artifact_path: s3://((DATA_BUCKET))/mnist_kmeans_example/output | ||
role: ((ROLE_ARN)) |
1 change: 0 additions & 1 deletion
1
components/aws/sagemaker/tests/integration_tests/resources/definition/training_pipeline.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters