# ort

> Fast ML inference & training for ONNX models in Rust

Source: https://talira.ai/catalog/ort-e86n3wy1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / inference / runtimes](https://talira.ai/categories/ai/inference/runtimes), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: windows, linux, macos, ios, android, web[^3]
- Licence: MIT OR Apache-2.0[^4][^5][^6]
- Pricing: Free and open source[^4][^5]
- Free tier: yes[^4][^5]
- Self-hostable: yes[^7]
- Backed by: [pyke.io](https://talira.ai/orgs/pyke.md)
- Creator: decahedron1 (pyke.io)

ort is pyke.io's Rust binding for Microsoft's [ONNX Runtime](https://talira.ai/catalog/onnx-runtime-82vyrppc.md): it loads ONNX models exported from PyTorch, TensorFlow, Keras, scikit-learn or PaddlePaddle and runs them with ONNX Runtime's execution providers (CUDA, TensorRT, OpenVINO, DirectML, CoreML, QNN, WebGPU and more). By default it downloads statically linked ONNX Runtime builds made by pyke.io, with attested provenance; you can also link your own build or load the library at runtime. Experimental alternative backends implement the same API over pure-Rust engines ([candle](https://talira.ai/catalog/candle-mxvc1kc7.md) and tract) or ONNX Runtime Web. It's based on the now-inactive onnxruntime-rs crate, and [fastembed-rs](https://talira.ai/catalog/fastembed-rs-9cry7y9m.md), Hugging Face's Text Embeddings Inference, Google's Magika and Wasmtime's WASI-NN use it; 2.0 is still a release candidate (2.0.0-rc.15), which its docs call production-ready.

## Links

- Website: https://ort.pyke.io/
- GitHub: https://github.com/pykeio/ort
- Docs: https://docs.rs/ort

## Problems it solves

- run a model exported from PyTorch inside a Rust service without Python
- load an ONNX file in Rust and run inference on CPU
- use CUDA or TensorRT from a Rust program for model inference
- run an embedding model or classifier inside my Rust binary instead of calling a Python microservice
- hardware-accelerated inference in a Rust desktop app with DirectML on Windows and CoreML on macOS
- avoid compiling ONNX Runtime for an hour just to use it from Cargo
- link my own custom ONNX Runtime build into a Rust project
- the old onnxruntime crate is unmaintained and stuck on an ancient runtime version
- run a YOLO or Whisper ONNX model from Rust on an edge device
- deploy one Rust inference codebase to servers, phones and the web
- run ONNX models from Rust in WebAssembly
- verify that prebuilt native ML binaries I download weren't tampered with

## 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
- ndarray integration

## Limitations

- Doesn't have a stable 2.x release: 2.0 is still a release candidate (2.0.0-rc.15, October 2026)[^1][^2]
- Doesn't support Intel Macs with ONNX Runtime: its supported macOS platform is arm64 only[^3]
- Doesn't ship prebuilt binaries for older Linux: they need glibc 2.39 and libstdc++ 13.2 (Ubuntu 24.04, Debian 13) or later[^3]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.43 out of 1.
Signals: backing 0.70, extensibility 0.00.

- backed by pyke.io
- created by decahedron1 (pyke.io)
- used by Hugging Face (Text Embeddings Inference), Google (Magika), Bytecode Alliance (Wasmtime), SurrealDB

Warnings:

- GitHub activity not fetched yet

## Related

- Based on [ONNX Runtime](https://talira.ai/catalog/onnx-runtime-82vyrppc.md)
- Works with [candle](https://talira.ai/catalog/candle-mxvc1kc7.md)

## Alternatives

- [Burn](https://talira.ai/catalog/burn-16d6c02a.md): A Rust tensor library and deep learning framework for training and inference on any hardware.
- [candle](https://talira.ai/catalog/candle-mxvc1kc7.md): Minimalist ML framework for Rust

## Sources

[^1]: https://github.com/pykeio/ort/releases/tag/v2.0.0-rc.15 (checked 20 Nov 2026)
[^2]: https://github.com/pykeio/ort/blob/main/docs/content/index.mdx (checked 20 Nov 2026)
[^3]: https://github.com/pykeio/ort/blob/main/docs/core/platform.tsx (checked 20 Nov 2026)
[^4]: https://github.com/pykeio/ort/blob/main/LICENSE-MIT (checked 20 Nov 2026)
[^5]: https://github.com/pykeio/ort/blob/main/LICENSE-APACHE (checked 20 Nov 2026)
[^6]: https://github.com/pykeio/ort/blob/main/Cargo.toml (checked 20 Nov 2026)
[^7]: https://github.com/pykeio/ort (checked 20 Nov 2026)
