By using AWS re:Post, you agree to the Terms of Use

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.

1 Answer
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

answered 15 days ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions