talira

ONNX Runtime

Cross-platform, high performance ML inferencing and training accelerator

open sourceMITself-hostablefree

ONNX Runtime is Microsoft's cross-platform engine for running machine learning models in the ONNX format, exported from PyTorch, TensorFlow/Keras, TFLite, scikit-learn and other frameworks. Execution providers plug in hardware acceleration (NVIDIA CUDA and TensorRT, Intel OpenVINO and oneDNN, DirectML, Qualcomm QNN, Apple CoreML, Android NNAPI, AMD ROCm and MIGraphX, XNNPACK, WebGPU and more), so one model runs on servers, desktops, phones and in the browser. It has official APIs for Python, C, C++, C#, Java, JavaScript (web, Node.js and React Native) and Objective-C, supports on-device and large-model training, and its Generate API (in preview) runs language models. FastEmbed and fastembed-rs run their embedding models on it; it's MIT licensed.

Problems it solves

  • run a model trained in PyTorch inside a C# or Java service without shipping Python
  • make model inference faster on CPU without rewriting the model
  • one inference engine that uses CUDA on our servers and Core ML on iPhones
  • run an ML model in the browser on the user's GPU with WebGPU
  • run embedding models locally in our app instead of calling a hosted API
  • deploy the same model to Windows, Linux, Android and iOS
  • use the NPU on Snapdragon laptops and phones for on-device AI
  • smaller app size by building the inference engine with only the operators our model needs
  • fine-tune a small model on the user's device without sending their data anywhere
  • run a quantized small language model locally with an ONNX export
  • speed up inference with TensorRT or OpenVINO without changing our application code

Features

  • runs ONNX models exported from PyTorch, TensorFlow/Keras, TFLite and scikit-learn
  • execution providers: CUDA, TensorRT, TensorRT RTX, OpenVINO, oneDNN, DirectML, QNN, NNAPI, CoreML
  • execution providers: XNNPACK, ROCm, MIGraphX, Vitis AI, Azure, WebGPU, plus community-maintained ones
  • APIs: Python, C, C++, C#, Java, JavaScript (web, Node.js, React Native), Objective-C
  • ONNX Runtime Web for browsers with WebGPU and WebNN
  • ONNX Runtime Mobile for Android and iOS
  • custom builds with only the operators a model uses
  • on-device training and large model training
  • Generate API (preview) for running generative language models
  • plugin execution provider libraries

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what ONNX Runtime does.

  1. candle Minimalist ML framework for Rust

Compare ONNX Runtime with the top 3