After you create and test your pipeline configuration package, you must convert it to an Edge configuration package, so it could be deployed to the AI Inference Server.
Conversion is required because, while a pipeline configuration package defines the inputs, outputs, and inner workings of an inference pipeline, it does not contain all the components required to run in the AI Inference Server. To make it complete for deployment on the AI Inference Server, the pipeline configuration package must be converted to an Edge configuration package.
Amongst other things, the conversion ensures that all the necessary Python packages for the target platform are included. If any of the required packages, including transitive dependencies, are not included in the pipeline configuration package for the target platform, they will be downloaded from pypi.org.
The conversion function is available in AI SDK both as a Python function and a CLI command.
Please refer to the details of the function convert_package in the module simaticai.deployment in the AI SDK API reference manual.
The intermediate step of creating a pipeline configuration package and converting it to an edge configuration package can be omitted, with the pipeline.export() method, which will directly save a pipeline configuration object as an edge configuration package.
NOTICE
The `simaticai.deployment.Pipeline.export()` method is available from AI SDK v2.1.0.
Running the export() method also generates a report file that contains information about the pipeline. The name of the report file starts with the name of the package, ends with _package_report.md, and it is placed in the same folder where the package is created.
The report file has the following content:
General information about the pipeline (author, date of creation, pipeline version, package id, project name, description).
The pipeline structure.
A list of direct and transitive dependencies for each component.
A list of known package vulnerabilities based on information collected from the PyPI API.
Warnings during the pipeline export, if there were any.
An Edge configuration package can be deployed to the AI Inference Server:
via AI Model Manager,
via AI Inference Server's API,
uploaded directly to AI Inference Server via UI.
For more information, refer to the AI Inference Server and AI Model Manager documentation.