class Model:
    def __init__(self, **kwargs):
        self._model = None

    def load(self):
        pass

    def predict(self, model_input):
        return model_input

This is the first of three steps dedicated to learning the developer loop that Truss enables. We hope that once you try it, you’ll agree with us that it’s the most productive way to deploy ML models.

Push your Truss

To spin up a model server from your Truss, run:

truss push

Paste your Baseten API key if prompted.

Open up your model dashboard on Baseten to monitor your deployment and view model server logs.

class Model:
    def __init__(self, **kwargs):
        self._model = None

    def load(self):
        pass

    def predict(self, model_input):
        return model_input