Ask the Experts: AWS Data Science and ML Experts - - Mar 9th @ 8AM ET / 1PM GMT!

Do you have questions about Data Science and ML on AWS - https://aws.amazon.com/machine-learning/

Post your questions about: Building, Training, and Deploying ML Models!

We will be hosting an Ask the Experts session here in this thread to answer any questions you may have.

Already have questions? Post them below and we’ll answer them starting at 8AM ET on March 9th, 2021!

Hello AWS team,

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

View in your timezone:
Mar 9th , 8AM ET

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?

Hello -

Is there a way to tag per object and using tags to generate cost analysis for objects inside a bucket ?

Hey, is this session running right now?

Yes

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.

The easiest way to track cost for S3 objects is working at the bucket level, but if you prefer you can always tag S3 objects individually when creating them (or afterwards) and track those tags as described here https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

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.

Please help me.

https://stackoverflow.com/questions/66596708/keras-model-compiles-well-outside-sagemaker-but-as-soon-as-i-try-to-train-it-in