Is it possible SageMaker HyperParameter Tuning Job without sagemaker-training tool kit

0

I had made my custom training image so It can be conducted through CreateTrainingJob, not sagemaker training took kit (requiring "ContainerEntrypoint" option).

But when I'm trying to run HyperParameter Tuning Job, it is not allowed to add "ContainerEntrypoint" option in "AlgorithmSpecification" field.

Is it impossible to run HyperParameter Tuning Job with training images that can not be run without sagemaker training toolkit?

Thanks!

1개 답변
0
수락된 답변

Hi there!

For custom training image, you can specify the entrypoint in your Dockerfile.

Below are some code snippet as well as links you can use as reference:

https://github.com/aws/amazon-sagemaker-examples/blob/main/hyperparameter_tuning/rapids_bring_your_own/code/Dockerfile

ENTRYPOINT ["./entrypoint.sh"]

https://github.com/aws/amazon-sagemaker-examples/blob/main/hyperparameter_tuning/keras_bring_your_own/Dockerfile

ENTRYPOINT ["python", "-m", "trainer.start"]

Furthermore, SageMaker Training Toolkit is a nicely wrapped up python package for you to use and eases the process of creating a custom training image, it's no different from implementing the logic yourself.

So it is definitely possible to run HyperParameter Tuning Job using custom containers without using our SageMaker Training Toolkit.

AWS
BenH
답변함 일 년 전
  • Thanks a lot for your examples and snippets! I will reference them right now!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠