Artifact references
Deeploy uses configuration in JSON notation to specify details for model, explainer and transformer artifacts. This can be either be specified in a 'reference.json' file when using a linked Git repository, or in the Deeploy UI when not using a linked Git repository. This article includes examples for various configurations.
Model reference schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"reference": {
"type": "object",
"properties": {
"azureML": {
"type": "object",
"properties": {
"image": {
"type": ["string", "null"]
},
"uri": {
"type": ["string", "null"]
},
"port": {
"type": ["integer", "null"]
},
"readinessPath": {
"type": ["string", "null"]
},
"livenessPath": {
"type": ["string", "null"]
},
"model": {
"type": ["string", "null"]
},
"version": {
"type": ["string", "null"]
},
"customPath": {
"type": ["string", "null"]
}
},
"required":[]
},
"docker": {
"type": "object",
"properties": {
"image": {
"type": "string"
},
"uri": {
"type": "string"
},
"port": {
"type": ["integer", "null"]
}
},
"required": ["image", "uri"]
},
"blob": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"region": {
"type": ["string", "null"]
}
},
"required": ["url"]
},
"huggingface": {
"type": "object",
"properties": {
"model": {
"type": "string"
}
}
},
"mlflow": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"version": {
"type": ["string", "null"]
},
"stage": {
"type": ["string", "null"]
},
"alias": {
"type": ["string", "null"]
},
"blob": {
"type": "object",
"properties": {
"region": {
"type": "string"
}
}
}
},
"required":["model"]
},
"databricks": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"alias": {
"type": ["string", "null"]
},
"version": {
"type": ["string", "null"]
}
},
"required":["model"]
}
}
}
}
}
Explainer reference schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"reference": {
"type": "object",
"properties": {
"azureML": {
"type": "object",
"properties": {
"image": {
"type": ["string", "null"]
},
"uri": {
"type": ["string", "null"]
},
"port": {
"type": ["integer", "null"]
},
"readinessPath": {
"type": ["string", "null"]
},
"livenessPath": {
"type": ["string", "null"]
},
"model": {
"type": ["string", "null"]
},
"version": {
"type": ["string", "null"]
},
"customPath": {
"type": ["string", "null"]
}
},
"required":[]
},
"docker": {
"type": "object",
"properties": {
"image": {
"type": "string"
},
"uri": {
"type": "string"
},
"port": {
"type": ["integer", "null"]
}
},
"required": ["image", "uri"]
},
"blob": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"region": {
"type": ["string", "null"]
}
},
"required": ["url"]
},
"mlflow": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"version": {
"type": ["string", "null"]
},
"stage": {
"type": ["string", "null"]
},
"alias": {
"type": ["string", "null"]
},
"blob": {
"type": "object",
"properties": {
"region": {
"type": "string"
}
}
}
},
"required":["model"]
},
"databricks": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"alias": {
"type": ["string", "null"]
},
"version": {
"type": ["string", "null"]
}
},
"required":["model"]
}
}
}
}
}
Transformer reference schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"reference": {
"type": "object",
"properties": {
"docker": {
"type": "object",
"properties": {
"image": {
"type": "string"
},
"uri": {
"type": "string"
},
"port": {
"type": ["integer", "null"]
}
},
"required": ["image", "uri"]
},
"blob": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"region": {
"type": ["string"]
}
},
"required": ["url"]
},
"required":["docker"]
}
}
}
}