Skip to main content
Version: 1.46

Generate a reference.json

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

The Python client 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:

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)