providers#

Typed ONNX Runtime execution-provider configuration.

Each provider is a small pydantic config that compiles to an ONNX Runtime (name, options) tuple via ExecutionProviderConfig.to_ort(). Keeping providers as typed configs (rather than raw strings) lets users opt into hardware acceleration — CUDA, TensorRT FP16, CoreML/ANE — without touching model code, and keeps the options validated and discoverable.

Classes#

CoreMLProvider(*[, kind, model_format, ...])

The CoreML execution provider (Apple, GPU/Neural Engine).

CpuProvider(*[, kind])

The default CPU execution provider.

CudaProvider(*[, kind, device_id])

The CUDA (NVIDIA GPU) execution provider.

SessionOptionsConfig(*[, ...])

A subset of ONNX Runtime SessionOptions exposed as typed config.

TensorRTProvider(*[, kind, device_id, fp16, ...])

The TensorRT execution provider (NVIDIA, ahead-of-time engine build).