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 Respuesta
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

respondido hace 2 años
  • 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

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas