Skip to content

superluminar-io/huggingfacedeployment

Repository files navigation

SageMaker CDK Demo

This project is a demo implementation of a Text Classification AI using SageMaker in CDK.

Architecture

We use an ApiGateway which handles requests and sends them to a SageMaker Endpoint, that forwards them to the model. The model itself is stored in an S3-Bucket.

architecture

Deploy

After this code has been implemented and the model files are in ./modeldata, you can deploy the model, simply by using cdk deploy.

You can test this model by using this curl command.

curl --request POST \
     --url {apigw-url} \
     --header 'Content-Type: application/json' \
     --data '{"inputs": "Inference with hugging face models and Sagemaker is easy!" }'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published