Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Im using AWS SageMaker Notebooks.

What is the best way to execute notebook from sagemaker?

  • My idea is to have an S3 bucket.
  • When a new file is putted there i want to execute a notebook that reads from S3 and puts the output in other bucket.

The only way i have from now is to start an S3 event, execute a lambda function that starts a sagemaker instance and execute the notebook. But is getting too much time to start and it doesnt work yet for me with a big notebook.

Maybe is better to export the notebook and execute it from another place in aws (in order to be faster), but i dont know where.

Thanks in advance

question from:https://stackoverflow.com/questions/66061721/in-aws-execute-notebook-from-sagemaker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
182 views
Welcome To Ask or Share your Answers For Others

1 Answer

I have limited experience, but..If you are talking about training jobs, the only other way to launch one is to create you own container, push to ECR and launch directly the training job without dealing with notebooks. I am working on a similar project where an S3 upload triggers a lambda function which start a container (it's not sagemaker but the concept is more or less the same). The problem with this approach is that however AWS takes time to launch an instance, minutes I would say. Another approach could be to have a permanent running endpoint and trigger in some way the elaboration.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...