Open Neural Network Exchange (ONNX)
This notebook provides an example of serving a model built in PyTorch with ONNX Runtime, a cross-platform, high performance scoring engine for machine learning models.
import os
from urllib.request import urlretrieve
import sys
import numpy as np
from PIL import Image
import onnx
from onnx import optimizer
from konduit.utils import default_python_pathfrom konduit import PythonConfig, ServingConfig, InferenceConfiguration, \
PythonStep
from konduit.server import Server
from konduit.client import Clientfrom konduit.load import server_from_file, client_from_fileDownload file
Optimize
Python script with PyTorch and ONNX Runtime
Configure the step
Configure the server
Start the server
Configure the client
Inference
Last updated
Was this helpful?