I have a model that I want to use a custom pipeline for, how would I modify the following to use my custom pipeline code?
from sagemaker.huggingface.model import HuggingFaceModel
hub = {
'HF_TASK':'my-custom-pipeline',
}
huggingface_model = HuggingFaceModel(
model_data="s3://model/model.tar.gz", # path to your trained SageMaker model
env=hub,
role=role, # IAM role with permissions to create an endpoint
transformers_version="4.28", # Transformers version used
pytorch_version="2.0", # PyTorch version used
py_version='py310', # Python version used
)