ort  by pykeio

Fast ML inference and training for ONNX models in Rust

Created 3 years ago
1,871 stars

Top 23.0% 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

21 hours ago

Responsiveness

Inactive

Pull Requests (30d)
4
Issues (30d)
7
Star History
78 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Luis Capelo Luis Capelo(Cofounder of Lightning AI), and
1 more.

tutorials by onnx

0.2%
4k
ONNX model tutorials and examples
Created 8 years ago
Updated 1 year ago
Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Omar Sanseviero Omar Sanseviero(DevRel at Google DeepMind), and
12 more.

Paddle by PaddlePaddle

0.1%
24k
Deep learning framework for industrial practice
Created 9 years ago
Updated 1 day ago
Feedback? Help us improve.