Topic 1 Question 86
A Machine Learning Specialist wants to bring a custom algorithm to Amazon SageMaker. The Specialist implements the algorithm in a Docker container supported by Amazon SageMaker. How should the Specialist package the Docker container so that Amazon SageMaker can launch the training correctly?
Modify the bash_profile file in the container and add a bash command to start the training program
Use CMD config in the Dockerfile to add the training program as a CMD of the image
Configure the training program as an ENTRYPOINT named train
Copy the training program to directory /opt/ml/train
ユーザの投票
コメント(11)
C seems correct as per documentations.
👍 17Paul_NoName2021/09/29I would answer C: https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html
"To configure a Docker container to run as an executable, use an ENTRYPOINT instruction in a Dockerfile. SageMaker overrides any default CMD statement in a container by specifying the train argument after the image name"
👍 14joep212021/09/29- 正解だと思う選択肢: C
Amazon SageMaker requires that a custom algorithm container has an executable named train that runs your training program. This executable can be configured as an ENTRYPOINT in the Dockerfile, which specifies the default command to run when the container is launched.
👍 2JK19772023/05/28
シャッフルモード