Tritonclient examples

Note: The Seldon CLI allows you to view information about underlying Seldon resources and make changes to them through the scheduler in non-Kubernetes environments. However, it cannot modify underlying manifests within a Kubernetes cluster. Therefore, using the Seldon CLI for control plane operations in a Kubernetes environment is not recommended. For more details, see Seldon CLI.

To install tritonclient

pip install tritonclient[all]

Tritonclient Examples with Seldon Core 2

  • Note: for compatibility of Tritonclient check this issue.

import os
os.environ["NAMESPACE"] = "seldon-mesh"
MESH_IP=!kubectl get svc seldon-mesh -n ${NAMESPACE} -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
MESH_IP=MESH_IP[0]
import os
os.environ['MESH_IP'] = MESH_IP
MESH_IP
'172.19.255.1'

With MLServer

  • Note: binary data support in HTTP is blocked by this issue

Deploy Model and Pipeline

HTTP Transport Protocol

GRPC Transport Protocol

Against Model

Against Pipeline

With Tritonserver

  • Note: binary data support in HTTP is blocked by https://github.com/SeldonIO/seldon-core-v2/issues/475

Deploy Model and Pipeline

HTTP Transport Protocol

GRPC Transport Protocol

Cleanup

Last updated

Was this helpful?