Hosting custom pipeline on Sagemaker

I see that all the tutorials for hosting huggingface models on sagemakers are from the pre-set list of pipelines, what if I have my own that I want to host? How would the steps be for this use case?