#artificial-intelligence #machine-learning #onnx-runtime

no-std ort

A safe Rust wrapper for ONNX Runtime 1.28 - Optimize and accelerate machine learning inference & training

14 releases

Uses new Rust 2024

2.0.0-rc.13 Jul 28, 2026
2.0.0-rc.12 Mar 5, 2026
2.0.0-rc.11 Jan 7, 2026
2.0.0-rc.10 Jun 1, 2025
1.13.1 Nov 27, 2022

#5 in Machine learning

Download history 318916/week @ 2026-04-24 310450/week @ 2026-05-01 297297/week @ 2026-05-08 318593/week @ 2026-05-15 293610/week @ 2026-05-22 354568/week @ 2026-05-29 419534/week @ 2026-06-05 466548/week @ 2026-06-12 450158/week @ 2026-06-19 448380/week @ 2026-06-26 428413/week @ 2026-07-03 516664/week @ 2026-07-10 496223/week @ 2026-07-17 501632/week @ 2026-07-24 574447/week @ 2026-07-31 501597/week @ 2026-08-07

2,156,524 downloads per month
Used in 1,286 crates (527 directly)

MIT/Apache

1MB
19K SLoC

Coverage Results MSRV ONNX Runtime


ort is a Rust interface for performing hardware-accelerated inference & training on machine learning models in the Open Neural Network Exchange (ONNX) format.

Based on the now-inactive onnxruntime-rs crate, ort is primarily a wrapper for Microsoft's ONNX Runtime library, but offers support for other pure-Rust runtimes.

ort with ONNX Runtime is super quick - and it supports almost any hardware accelerator you can think of. Even still, it's light enough to run on your users' devices.

When you need to deploy a PyTorch/TensorFlow/Keras/scikit-learn/PaddlePaddle model either on-device or in the datacenter, ort has you covered.

📖 Documentation

🤔 Support

🌠 Backers

💖 FOSS projects using ort

Open a PR to add your project here 🌟

  • Text Embeddings Inference (TEI) uses ort to deliver high-performance ONNX Runtime inference for text embedding models.
  • Magika uses ort for neural network-based file type detection.
  • retto uses ort for reliable, fast ONNX inference of PaddleOCR models on Desktop and WASM platforms.
  • edge-transformers uses ort for accelerated transformer model inference at the edge.
  • sbv2-api is a fast implementation of Style-BERT-VITS2 text-to-speech using ort.
  • BoquilaHUB uses ort for local AI deployment in biodiversity conservation efforts.
  • CamTrap Detector uses ort to detect animals, humans and vehicles in trail camera imagery.
  • Ortex uses ort for safe ONNX Runtime bindings in Elixir.
  • oar-ocr A comprehensive OCR library, built in Rust with ort for efficient inference.
  • FastEmbed-rs uses ort for generating vector embeddings, reranking locally.
  • Ahnlich uses ort to power their AI proxy for semantic search applications.
  • Murmure uses ort as its core engine, leveraging NVIDIA Parakeet to deliver fully local, free, private and cross‑platform Speech‑to‑Text enhanced with LLM post‑processing.
  • Valentinus uses ort to provide embedding model inference inside LMDB.
  • SilentKeys uses ort for fast, on-device real-time dictation with NVIDIA Parakeet and Silero VAD.
  • Xybrid uses ort to run LLMs, ASR, and TTS natively on-device across iOS, Android, Flutter, and Unity apps and games.
  • Ultralytics YOLO Rust Inference is a high-performance, pure Rust library and CLI providing fast and efficient interface for running YOLO models using ort.

Dependencies

~6–22MB
~238K SLoC