How do I create a Dockerfile for BYOC training which allows me to pass in entry_point and source_dir arguments to SM Estimator?

0

I am following this tutorial: https://github.com/aws/amazon-sagemaker-examples/blob/main/advanced_functionality/tensorflow_bring_your_own/container/Dockerfile

by SM to create a docker image. According to this tutorial, the training scripts are copied into the docker container meaning that you have to rebuild the container if you make any changes.

My question is: How do I create a Dockerfile such that I don't have to copy my script when I am building the image? Instead, I want to pass in the entry_point and source_dir arguments to the SM Estimator which copies those files upon calling the .fit method.

質問済み 2年前379ビュー
1回答
0

Hi there,

It seems like this should be possible through the sagemaker script mode, which allows you to pass in the entry_point argument through the SM estimator as can be seen here

Hopefully this resource will help provide some insight into your problem.


Re: so I kept looking and I believe this is a more appropriate resource to address your problem. Hopefully this one is what you are looking for.

Regards NN

回答済み 2年前
  • Hi, NN! Thank you for the response.

    I am using script mode. I looked through the blogpost but I did not see a mention of docker containers

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ