In this repo you find sample code for deploying a YOLOS Object Detection with Hugging Face and SageMaker.
The main process of creating and deploying the model can be found in the notebook.
You can also check out our medium article on the subject: Object Detection Deployment with Hugging Face and SageMaker (link to be added)