microsoft/onnxruntime-extensions

onnxruntime-extensions: A specialized pre- and post- processing library for ONNX Runtime

What it solves

It provides a way to include common pre- and post-processing steps directly into ONNX models, reducing the need for separate manual processing code in different languages across different platforms.

How it works

The library implements a set of custom operators for ONNX Runtime via Custom Operator ABIs. It allows users to convert Huggingface transformer data processing classes into ONNX processing graphs, which can then be merged with the main model for a unified inference session.

Who it’s for

Developers who use ONNX Runtime for model inference across various platforms (Windows, Linux, macOS, Android, iOS, and Web-Assembly) and languages (Python, Java, C#, C++).

Highlights

  • Custom operators for vision, text, and NLP models.
  • Support for multiple languages including Python, Java, C#, and C++.
  • Ability to generate processing models from Huggingface transformer classes.
  • Cross-platform compatibility including mobile and Web-Assembly.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch