Skip to main content
Version: 1.38

Generate a reference.json

You can generate a reference.json to reference models that are located outside the repository. More information about the reference.json can be found in the Repository requirements

The Python currently supports the following options for creating a reference.json:

An example of how to generate a reference.json for your model using a Docker image can be found below.

from deeploy import CreateModelReference

model_reference_input: CreateModelReference = {
"docker": {
"image": "deeployml/example-image:1.2.3",
"uri": "/v1/models/example:predict",
"port": 1234,
}
}

client.generate_model_reference_json("/example/path/to/repository", model_reference_input)