Is there an smart way to automate the selection of the EC2 instance type (for training or endpoint serving), depending on the volume of data delivered as input (and the specificities of the task, i.e. cluster distribution, GPU requirements, …)?
My current approach is to use a self-made dictionary, to map the type of instance to the category of operational use.
Regards
Hi, our project team of data scientists and data engineers is about to start building (and then productionizing) a prediction model pipeline using our company’s AWS-based infrastructure. Our training dataset will be 10-15 million rows and won’t fit on our local laptops.
As usual, there will be multiple steps involved, such as data preprocessing, model training, deployment, and monitoring.
We are thinking of using SageMaker - do you think that will be a valid approach in general in this situation and which components of SageMaker could help us in which step of the pipeline?
We’d like to train a LightGBM model which is not SageMaker-native but still can be integrated right?
Yes, SageMaker is an end to end service covering data labeling, data preparation, model training, model deployment, model monitoring, etc. This recent video will give you a grand hands-on tour of SageMaker: https://www.twitch.tv/aws/video/929163653. Training and deployment is based on Docker containers, either built-in (algorithms and open source frameworks) or your own. With respect to LightGBM, you can easily start from the built-in scikit-learn container, and add LightGBM to it. Here’s a complete example: https://github.com/awslabs/sagemaker-explaining-credit-decisions.
You could run some load testing against your model hosting endpoint to check for the peak InvocationsPerSecond the production variant is supporting with a given configuration. You can find instructions here: https://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-scaling-loadtest.html. Also, here’s a re:Invent session which discusses best practices in selecting the right instance types for inference:
. It discusses choices based on latency and throughput requirements, model size and complexity, framework choice, and portability.
Hello,
I am working on a muliti inputs model with different variable types, 3 catégorical and 1 numerical value. That means I need to work with Keras fonctionale api. But it seems that the Tensorflow instance in SageMaker does not support this, because my model compiles and trains very well outside SageMaker but in SageMaker it comes to an error.