ort  by pykeio

Fast ML inference and training for ONNX models in Rust

Created 3 years ago
2,412 stars

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

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
1 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%
13k
SDK for accelerated deep learning inference on NVIDIA GPUs
Created 7 years ago
Updated 1 month ago
Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Sebastián Ramírez Sebastián Ramírez(Author of FastAPI, Typer, SQLModel, Asyncer), and
27 more.

CNTK by microsoft

0%
18k
Deep-learning toolkit for neural networks as directed computational graphs
Created 10 years ago
Updated 3 years 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%
24k
Deep learning framework for industrial practice
Created 10 years ago
Updated 1 day ago
Feedback? Help us improve.