SageMaker AutoML Model - Neo Compilation

0

I have trained a binary image classification model using AutoML as the predictions the AutoML training provides are better than the model I trained in SageMaker using MXNET and image-classification training image.

I need to run this AutoML trained model on an edge device (jetson). SageMaker Neo compilation jobs all fail as none of the available machine learning framework options support an AutoML trained model (image: 167316028190.dkr.ecr.us-east-2.amazonaws.com/sm-automl-robotorch:1).

How can I run this AutoML model on my own edge device? It doesn't have to be compiled with Neo if that's not supported but I would still ike to use it on the edge.

asked 9 days ago21 views
1 Answer
0

Unfortunately, SageMaker Neo does not directly support compiling models trained with SageMaker AutoML for edge devices like the Jetson. This is because AutoML uses its own specialized frameworks and formats that are not currently compatible with Neo's compilation process.

However, you still have options to run your AutoML-trained model on your edge device:

  1. Export the model: You can export the AutoML model to a standard format supported by Neo, such as ONNX or TensorFlow. This would involve using SageMaker's model export functionality to convert the AutoML model into a format that Neo can work with.

  2. Re-train using a supported framework: If exporting is not feasible, you could use the AutoML model as a reference to train a similar model using a framework that Neo supports, such as TensorFlow, PyTorch, or MXNet. This would allow you to maintain similar performance while gaining Neo compatibility.

  3. Direct deployment without Neo: If Neo compilation is not essential, you can deploy the AutoML model directly to your edge device. This would require setting up the necessary runtime environment on your Jetson device to support the AutoML model format. You may need to install specific libraries or frameworks that the AutoML model depends on.

  4. Use alternative optimization tools: There are other tools and frameworks designed for edge deployment that might be compatible with your AutoML model. These could help optimize the model for edge deployment without using Neo.

Remember that while Neo offers significant optimization benefits, it's not the only path to edge deployment. The key is to find a balance between maintaining the performance benefits of your AutoML model and achieving compatibility with your edge device.
Sources
Amazon SageMaker Neo
Edge Devices - Amazon SageMaker

profile picture
answered 9 days ago

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