SageMaker enhancements to allow custom docker image, input channels referring to s3/remote data locations and metrics logging #504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Addresses the requests of #502 and more
accelerate config
questionnaire. When this isn't provided, the latest Official 🤗 DLC will be used.sagemaker_inputs.tsv
whose location is given as part ofaccelerate config
setup.sagemaker_metrics_definition.tsv
whose location is given as part ofaccelerate config
setup.Below is the logging of the metrics in SageMaker
![Screenshot 2022-07-11 at 6 17 25 PM](https://user-images.githubusercontent.com/13534540/178267582-39970769-bc14-4fff-9dfa-43a2516cdf13.png)
Example of accelerate config with above features setup [XXXXX values are AWS account specific]:
base_job_name: accelerate-sagemaker-1 compute_environment: AMAZON_SAGEMAKER distributed_type: DATA_PARALLEL ec2_instance_type: ml.p3.16xlarge iam_role_name: XXXXX image_uri: 763104351884.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-training:1.8.1-transformers4.10.2-gpu-py36-cu111-ubuntu18.04 mixed_precision: fp16 num_machines: 1 profile: XXXXX py_version: py38 pytorch_version: 1.10.2 region: us-east-1 sagemaker_inputs_file: /home/ubuntu/sagemaker_examples/sagemaker_inputs.tsv sagemaker_metrics_file: /home/ubuntu/sagemaker_examples/sagemaker_metrics_definition.tsv transformers_version: 4.17.0 use_cpu: false