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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南