wallaroo.model_version
The Wallaroo ModelVersion object. Each ModelVersion is a specific version of a Model.
Base constructor.
Each object requires:
- a GraphQL client - in order to fill its missing members dynamically
- an initial data blob - typically from unserialized JSON, contains at
- least the data for required members (typically the object's primary key) and optionally other data members.
Returns the user visible logs for the given model_upload() call for a custom python model. These will be messages related to parse and "pip install" of requirements.txt or to static validation of the model code.
Note: The default retention policy for model upload logs is 30 days.
Parameters
- limit int Limits the number of lines of logs returned. Starts from the most recent logs.
Returns
ModelUploadLogs object.
Convenience function to quickly deploy a Model. It will configure the model, create a pipeline with a single model step, deploy it, and return the pipeline.
Typically, the configure() method is used to configure a model prior to deploying it. However, if a default configuration is sufficient, this function can be used to quickly deploy with said default configuration.
The filename this Model was generated from needs to have a recognizable file extension so that the runtime can be inferred. Currently, this is:
.onnx-> ONNX runtime
Parameters
- str deployment_name: Name of the deployment to create. Must be unique across all deployments. Deployment names must be ASCII alpha-numeric characters plus dash (-) only.
Wraps a list of model versions for display in a display-aware environment like Jupyter.
This is a list of log messages associated with a model_upload() call.