NOTICE
In the future only edge package generation will be supported. You can use `pipeline.export('../packages')` to create an edge package directly.
After you create and test your pipeline configuration package, you have to convert it to an edge configuration package before you deploy it to AI Inference Server. To do, you have to
Use AI SDK to convert the pipeline configuration package created by AI SDK to an edge configuration package.
Deploy the edge configuration package on an Industrial Edge device by uploading it using the AI Inference Server application or use AI Model Manager to deploy packages to multiple AI Inference Server at once.
The rationale for the required conversion is that although a pipeline configuration package defines the inputs, outputs and inner working of an inference pipeline entirely, it does not contain all the ingredients that are necessary for executing it in AI Inference Server. To make it complete for deployment on AI Inference Server, the pipeline configuration package has to be converted to an edge configuration package.
The conversion involves, amongst others, ensuring that all required Python packages are included for the target platform. 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 Python function and CLI command. Please refer to the details of function convert_package
in module simaticai.deployment
in the SDK API reference manual.
from simaticai import deployment
[...] # component and pipeline creation
pipeline_package_path = pipeline.save('../packages')
deployment.convert_package(pipeline_package_path)
The conversion step can be skipped by using the simaticai.deployment.Pipeline.export()
method which is availabe from AI SDK v2.1.0.
from simaticai import deployment
[...] # component and pipeline creation
runtime_package_path = pipeline.export('../packages')
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.