| Features | - safe Rust API over the ONNX Runtime C API (ONNX Runtime 1.31)
- downloads statically linked prebuilt ONNX Runtime binaries by default
- prebuilt binaries are attested (SLSA provenance) and hash-checked
- link a custom static build (ORT_LIB_PATH) or load the library at runtime (load-dynamic)
- execution providers as Cargo features: CUDA, TensorRT, OpenVINO, oneDNN, DirectML, NNAPI, CoreML, XNNPACK, ROCm, QNN, WebGPU and more
- IoBinding for control over where inputs and outputs live
- training API (training feature)
- experimental alternative backends: ort-candle, ort-tract, ort-web
- All 9 features
| - one API for training and inference
- dynamic graphs and shapes
- JIT compiler with automatic kernel fusion and autotuning
- CubeCL backends: CUDA, ROCm, Metal, Vulkan, WebGPU and CPU
- pure-Rust Flex backend for Wasm and no_std
- swap or combine backends without changing model code
- autodiff, fusion and remote-execution decorators
- ONNX import as Rust code
- All 11 features
| - PyTorch-like tensor API with autograd and training
- CPU backend with optional MKL (x86) and Accelerate (macOS)
- CUDA backend with cuDNN, multi-GPU via NCCL, and JIT CUDA kernels in Rust (cuTile)
- Metal backend for Apple silicon
- WebAssembly support for in-browser models
- candle-transformers: LLMs, Whisper, Stable Diffusion, BERT-family encoders, vision models and more
- loads safetensors, npz, GGML/GGUF and PyTorch files
- quantization with llama.cpp's quantized types
- All 11 features
|