I would like to deploy an inference endpoint based on a combination of multiple models.
Here is the repository structure
/handler.py
/requirements.txt
/model1.pt
/model2.pt
What will be the value of path here? Adding a few prints in the handler tells me that it is set to /repository/.
However, it also looks like /repository/ does not contain model1.pt and model2.pt.
Is this on purpose? How can I update the code below to access model1.pt and model2.pt?
class EndpointHandler:
def __init__(self, path=""):
self.model1 = torch.load('model1.pt')
self.model2 = torch.load('model2.pt')
def __call__(self, data):
pass