Important:
IBM Cloud Pak® for Data Version 4.7 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Batch deployment input details for Pytorch models
Follow these rules when you are specifying input details for batch deployments of Pytorch models.
Data type summary table:
Data | Description |
---|---|
Type | inline, data references |
File formats | .zip archive that contains JSON files |
Data Sources
Input/output data references:
- Local/managed assets from the space
- Connected (remote) assets: Cloud Object Storage and Storage Volumes
If you are specifying input/output data references programmatically:
- Data source reference
type
depends on the asset type. Refer to the Data source reference types section in Adding data assets to a deployment space. - If you deploy Pytorch models with ONNX format, specify the
keep_initializers_as_inputs=True
flag and setopset_version
to9
(always setopset_version
to the latest version that is supported by the deployment runtime).torch.onnx.export(net, x, 'lin_reg1.onnx', verbose=True, keep_initializers_as_inputs=True, opset_version=9)
Note: The environment variables parameter of deployment jobs is not applicable.
Parent topic: Batch deployment input details by framework