← all repositories
microsoft/onnxruntime

Microsoft's universal adapter for running ML models anywhere

A single runtime that claims to run PyTorch, TensorFlow, and scikit-learn models faster across CPUs, GPUs, and mobile chips—without rewriting your model.

onnxruntime
Velocity · 7d
+9.7
★ / day
Trend
accelerating
star history

What it does ONNX Runtime is Microsoft’s inference and training engine for models converted to the ONNX format. It takes models from PyTorch, TensorFlow/Keras, scikit-learn, LightGBM, and XGBoost, then runs them across hardware—CPUs, NVIDIA GPUs, mobile NPUs—applying graph optimizations and hardware-specific accelerators. For training, it offers a drop-in speedup for PyTorch transformer training on multi-node GPU clusters.

The interesting bit The “write once, run anywhere” pitch for ML is usually vaporware, but ONNX Runtime at least has the corporate weight and ecosystem breadth to make it plausible. The one-line PyTorch training integration is the kind of friction reduction that actually changes behavior—assuming it works as advertised.

Key highlights

  • Supports both deep learning and classical ML models (scikit-learn, XGBoost, LightGBM)
  • Hardware abstraction across CPUs, GPUs, and mobile accelerators via “Execution Providers”
  • Graph optimizations and transforms applied automatically before runtime
  • Training acceleration for transformers via minimal PyTorch integration
  • Active plugin ecosystem (QNN for Qualcomm, others)
  • MIT licensed, though Windows builds phone home usage telemetry to Microsoft

Caveats

  • README is heavy on promises, light on specifics—no concrete speedup numbers or benchmark comparisons
  • “Optimal performance” and “faster customer experiences” are vague; actual gains depend heavily on model and hardware combination
  • Windows telemetry collection is opt-out, not opt-in

Verdict Worth evaluating if you’re already standardizing on ONNX or need to deploy the same model across edge devices and cloud GPUs. Less compelling if you’re locked into a single framework with its own optimized runtime (e.g., pure PyTorch on NVIDIA hardware).

Frequently asked

What is microsoft/onnxruntime?
A single runtime that claims to run PyTorch, TensorFlow, and scikit-learn models faster across CPUs, GPUs, and mobile chips—without rewriting your model.
Is onnxruntime open source?
Yes — microsoft/onnxruntime is open source, released under the MIT license.
What language is onnxruntime written in?
microsoft/onnxruntime is primarily written in C++.
How popular is onnxruntime?
microsoft/onnxruntime has 21.2k stars on GitHub and is currently accelerating.
Where can I find onnxruntime?
microsoft/onnxruntime is on GitHub at https://github.com/microsoft/onnxruntime.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.