ort  by pykeio

Fast ML inference and training for ONNX models in Rust

Created 3 years ago
2,391 stars

Top 18.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

pykeio/ort provides a high-performance Rust interface for machine learning inference and training using ONNX models. It acts as a wrapper for Microsoft's ONNX Runtime, enabling hardware-accelerated execution across diverse hardware, while remaining lightweight enough for on-device deployment. This project targets developers needing efficient, cross-platform deployment of models trained in frameworks like PyTorch, TensorFlow, and scikit-learn.

How It Works

The core of ort is its Rust binding to Microsoft's ONNX Runtime library, facilitating fast, hardware-accelerated inference. It also offers support for alternative pure-Rust runtimes. This approach leverages the robust, optimized backend of ONNX Runtime while providing a modern, safe Rust API. The design prioritizes speed and broad hardware compatibility, including various accelerators, making it suitable for both datacenter and edge computing scenarios.

Quick Start & Requirements

Specific installation commands, detailed prerequisites (like required CUDA versions or Python versions), or setup time estimates are not explicitly detailed in the provided README. Links to a "Documentation Guide," "API reference," and "Examples" are mentioned, suggesting resources are available for users to explore setup procedures.

Highlighted Details

  • Supports hardware-accelerated inference and training for ONNX models.
  • Offers broad hardware accelerator support and is designed to be lightweight for on-device deployment.
  • Powers numerous open-source projects, including Koharu, Magika, Text Embeddings Inference (TEI), FastEmbed-rs, and Ortex, demonstrating its real-world applicability across diverse ML tasks.

Maintenance & Community

The project is sponsored by Authentic AI. Community support is available via a Discord server (#ort-general) and GitHub Discussions. The project is built upon the foundation of the "now-inactive onnxruntime-rs crate," indicating a potential evolution or fork from previous efforts. A list of "FOSS projects using ort" highlights active adoption.

Licensing & Compatibility

The specific open-source license for pykeio/ort is not explicitly stated in the provided README text. This omission requires further investigation to determine compatibility for commercial use or integration into closed-source projects.

Limitations & Caveats

The primary dependency is Microsoft's ONNX Runtime, which may introduce its own set of system requirements and potential compatibility issues. The README notes the inactivity of a predecessor crate (onnxruntime-rs), which might warrant investigation into the project's long-term maintenance trajectory and potential for forking or dependency shifts. No other explicit limitations or alpha status are mentioned.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
6
Star History
67 stars in the last 30 days

Explore Similar Projects

Starred by Luis Capelo Luis Capelo(Cofounder of Lightning AI), Yineng Zhang Yineng Zhang(Inference Lead at SGLang; Research Scientist at Together AI), and
7 more.

TensorRT by NVIDIA

0.2%
13k
SDK for accelerated deep learning inference on NVIDIA GPUs
Created 7 years ago
Updated 4 days ago
Feedback? Help us improve.