| What it is | A Rust tensor library and deep learning framework for training and inference on any hardware. | Fast ML inference & training for ONNX models in Rust | Minimalist ML framework for Rust | An Open Source Machine Learning Framework for Everyone |
| 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
| - 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
| - 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
| - stable Python and C++ APIs
- Keras high-level API
- GPU acceleration with NVIDIA CUDA
- ecosystem of tools and libraries for data, serving and deployment
- pip packages for Linux, macOS and Windows
|
| Limitations | - The LibTorch backend was deprecated in 0.22 and removed from main.
| - Doesn't have a stable 2.x release: 2.0 is still a release candidate (2.0.0-rc.15, October 2026)
- Doesn't support Intel Macs with ONNX Runtime: its supported macOS platform is arm64 only
- Doesn't ship prebuilt binaries for older Linux: they need glibc 2.39 and libstdc++ 13.2 (Ubuntu 24.04, Debian 13) or later
| | - No GPU acceleration on macOS or native Windows: GPU support needs Linux or Windows WSL2 with an NVIDIA CUDA card
|