Skip to content

Releases: microsoft/onnxruntime

ONNX Runtime v1.1.0

19 Dec 22:07
c33dab3
Compare
Choose a tag to compare

Key Updates

  • Performance improvements to accelerate BERT model inference latency on both GPU and CPU. Updates include:
    • Additional fused CPU kernels as well as related transformers for key operators such as Attention, EmbedLayerNormalization, SkipLayerNormalization, FastGelu
    • Further optimization such as parallelizing Gelu and LayerNorm, enabling legacy stream mode, improving performance of elementwise operators, and fusing add bias into SkipLayerNormalization and FastGelu
    • Extended CUDA support for opset 11
  • Performance improvement for Faster R-CNN and Master R-CNN with new and updated implementation of opset 11 CUDA kernels, including Resize, Expand, Scatter, and Pad
  • TensorRT Execution Provider updates, including support for inputs with dynamic shapes
  • MKL-DNN (renamed DNNL) updated to v1.1
  • [Preview] NN API Execution Provider for Android - see more
  • [Preview] Java API for ONNX Runtime - see more
  • Tool for Python API: Automatically maps a dataframe to the inputs of an ONNX graph based on schema information in the pandas frame
  • Custom ops can be loaded from shared libraries: Custom ops can now be packaged in shared libraries and distributed for use in multiple applications without modification.

Contributions

We'd like to thank our community members across various teams at Microsoft and other companies for all the valuable contributions.

We'd like to extend special recognition to these individuals for their contributions in this release: Jianhao Zhang (JD AI), Adam Pocock (Oracle), nihui (Tencent), and Nick Groszewski. From the Intel teams, we'd like to thank Patrick Foley, Akhila Vidiyala, Ilya Lavrenov, Manohar Karlapalem, Surya Siddharth Pemmaraju, Sreekanth Yalachigere, Michal Karzynski, Thomas V Trimeloni, Tomasz Dolbniak, Amy Zhuang, Scott Cyphers, Alexander Slepko and other team members on their valuable work to support the Intel Execution Providers for ONNX Runtime.

ONNX Runtime v1.0.0

30 Oct 06:27
Compare
Choose a tag to compare

Key Updates

General

  • ONNX 1.6 compatibility - operator support for all opset11 ops on CPU, including Sequence ops.
  • Free dimension override: Add ability to override free dimensions to the inputs of a model. Free dimensions are tensor shapes which aren't statically known at model author time, and must be provided at runtime. Free dimensions are most often used for the batch size of a model's inputs, allowing for customizable batch sizes at runtime. This feature enables certain optimizations since the shape can be known apriori.
  • Performance improvements to further accelerate model inferencing latency on CPU and GPU. Notable updates include:
    • Additional CUDA operators added to support Object Detection and BERT models. Note: CUDA operator coverage is still limited and performance will vary significantly depending on the model and operator usage.
    • Improved parallelism for operators that use GEMM and MatMul
    • New implementation for 64 bits MatMul on x86_64 CPU
    • Added ability to set # of threads used by intra and inter operator parallelism to allow optimal configuration for both sequential and concurrent inferencing scenarios
    • Gelu fusion optimizer
  • Threading updates:
    • Eigen ThreadPool is now the default (previously there were two thread pool implementations, TaskThreadPool and Eigen ThreadPool)
    • Ability to disable multiple threading by setting thread pool size to 1 and onnxruntime_USE_OPENMP to OFF.
    • MLAS now uses the number of thread pool threads plus one as the parallelism level. (e.g. if you have 4 CPUs, you need to set the thread pool size to 3 so that you only have one thread per CPU)
  • CPU Python package is manylinux1 compliant. The GPU Python package is manylinux2010 and compatible with CUDA 10.0/cuDNN 7.6
  • Support for CentOS 6 and 7 for Python, C, and C++. Most of the code is now C++11 compliant (previously required C++14). C# .NET Core compatibility coming soon.
  • Package for ArchLinux
  • Telemetry - component level logging through Trace Logging for Windows builds. Data collection is limited and used strictly to identify areas for improvement. You can read more about the data collected and how to manage these settings here.
  • Bug fixes to address various issues filed on Github and other channels

API updates

  • Updates to the C API for clarity of usage. The 1.0 version of the API is now stable and will maintain backwards compatibility. Versioning is in supported to accommodate future updates.
  • C APIs are ABI compatible and follows Semantic Versioning. Programs linked with the current version of the ONNX Runtime library will continue to work with subsequent releases without updating any client code or re-linking.
  • New session option available for serializing optimized ONNX models
  • Enabled some new capabilities through the Python and C# APIs for feature parity, including registration of execution providers in Python and setting additional run options in C#.

Execution Providers (EP)

Updates

  • General Availability of the OpenVINO™ EP for Intel® CPU, Intel® Integrated Graphics, Intel® Neural Compute Stick 2, and the Intel® Vision Accelerator Design with Intel® Movidius™ Myriad™ VPU powered by OpenVINO™nGraph EP support of new operators.
  • MKL-DNN EP updated from 0.18.1 to 1.0.2 for an average of 5-10% (up to 50%) performance improvement on ONNX Model Zoo model latency
  • nGraph EP updated from 0.18 to 0.26, with support of new operators for quantization and performance improvements on LSTM ops (without peephole) and Pad op
  • TensorRT EP updated to the latest TensorRT 6.0 libraries
  • Android DNNLibrary version update

New EP support

  • [Preview] NUPHAR (Neural-network Unified Preprocessing Heterogeneous ARchitecture) is a TVM and LLVM based EP offering model acceleration by compiling nodes in subgraphs into optimized functions via JIT
  • [Preview] DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning on Windows, providing GPU acceleration for common machine learning tasks across a broad range of supported hardware and drivers
  • [Preview] Support for Intel® Vision Accelerator Design with Intel® Arria™ 10 FPGA powered by OpenVINO™.
  • [Preview] ARM Compute Library (ACL) Execution Provider targets ARM CPUs and GPUs for optimized execution of ONNX operators using the low-level libraries.

Build updates

  • Two new cmake options: onnxruntime_USE_GEMMLOWP, onnxruntime_USE_AUTOML, onnxruntime_USE_DML
  • Removed two cmake options: onnxruntime_USE_MLAS/onnxruntime_USE_EIGEN_THREADPOOL. These are always ON now.
  • The minimal supported gcc version is 4.8.2

Tooling

  • Availability of ONNX Go Live tool, which automates the process of shipping ONNX models by combining model conversion, correctness tests, and performance tuning into a single pipeline as a series of Docker images.
  • Updates to the quantization tool
    • Supports selective quantization for some nodes instead of all possible nodes
    • Bias quantization for Conv nodes
    • Node fusion for dynamic quantization
  • onnxruntime_perf_tool usage updates:
    • new option "-y" for controlling inter_op_num_threads
    • max optimization level is now 99, and 3 is now an invalid value. In most cases, this tool should be run with "-o 99"

Other Dependency Updates

  • Replaced gsl with gsl-lite to be compatible with C++11
  • Added NVIDIA cub
  • Added Wil for DML execution provider
  • Pybind11 updated from 2.2.4 to 2.4.0 to fix a compatibility issue with Baidu PaddlePaddle and some other python modules that are also depend on Pybind11
  • TVM updated to a newer version

ONNX Runtime v0.5.1

12 Oct 23:52
Compare
Choose a tag to compare

Bug Fixes

  • Fix in C# API marshalling for InferenceSession.Run()
  • Some fixes in OnnxRuntime server

Only NuGet packages are released for this patch release, because only the C# API users are impacted

ONNX Runtime v0.5.0

01 Aug 19:48
1f8019b
Compare
Choose a tag to compare
  • Execution Provider updates
    • MKL-DNN provider (subgraph based execution) for improved performance
    • Intel OpenVINO EP now available for Public Preview - build instructions
    • Update to CUDA 10 for inferencing with NVIDIA GPUs
    • Base CPU EP has faster convolution performance using the NCHWc blocked layout. This layout optimization can be enabled by setting graph optimization level to 3 in the session options.
  • C++ API for inferencing (wrapper on C API)
  • ONNX Runtime Server (Beta) for inferencing with HTTP and GRPC endpoints
  • Python Operator (Beta) to support custom Python code in a single node of an ONNX graph to make it easier for experimentation of custom operators
  • Support of Keras-based Mask R-CNN model. The model relies on some custom operators pending to be added in ONNX; in the meantime, it can be converted using this script for inferencing using ONNX Runtime 0.5. Other object detection models can be found from the ONNX Model Zoo.
  • Minor updates to the C API
    • For consistency, all C APIs now return an ORT status code
  • Code coverage for this release is 83%

ONNX Runtime v0.4.0

02 May 02:25
bf859a9
Compare
Choose a tag to compare

Key Updates

  • New execution providers for improved performance on specialized hardware
    • Intel nGraph
    • NVIDIA TensorRT
  • ONNX 1.5 compatibility
    • Opset 10 operator support
    • Supports newly added ONNX model zoo object detection models (YOLO v3, SSD)
    • Quantization operators
  • Updates to C API for Custom Operators
    • Allocation of outputs during compute
    • C++ wrapper to greatly simplify implementation
    • Supports custom op DLLs when ONNX Runtime is compiled statically
  • Graph optimizations with Constant Folding for improved performance
  • Official binary packages
    • Nuget package creation pipeline updated with security-focused tasks
      • CredScan
      • SDLNative Rules for PreFast
      • BinSim
    • Additional binaries built with MKL-ML published in Nuget
    • Size reduction in Windows (700KB+), Linux (65%) and Mac (45%) binaries

ONNX Runtime v0.3.1

09 Apr 00:39
Compare
Choose a tag to compare

This is a patch release for 0.3.0.

Updates include

  • Binary size reduction through usage of protobuf-lite and operator fixes
  • Build option to disable contrib ops (ops not in ONNX standard)
  • Build option to statically link MSVC
  • Minor bug fixes

ONNX Runtime v0.3.0

14 Mar 18:17
5751f1b
Compare
Choose a tag to compare

Key Updates

  • ONNX 1.4 compatibility

    • Opset 9 operator support
    • Support of large models >2GB
  • New build packages

    • C/C#: OS X x64 CPU
    • C: Linux x86 CPU
    • C: Windows x86 CPU
  • Custom op registration via C API

  • Non-Tensor type support for input/output for C and C# API

Release Notes

  • Default execution provider for CPU uses Eigen and MLAS; prior releases used MKL-DNN. See all build options here.
  • OpenMP is required for the prebuilt binaries. See System Requirements for more details.

ONNX Runtime v0.2.1

11 Feb 21:54
e12e4c4
Compare
Choose a tag to compare

Key Updates:

  • ONNX Runtime C# packages are now available for Linux, with GPU support for both Windows and Linux. Find the APIs and package downloads here.
  • The C API has been updated and is now in Beta (previously: experimental). This version is expected to be mostly stable, though may adapt to ensure support of usage needs
  • Support of additional operators with MKL-DNN: Relu, Sum, BatchNormalization

Release Notes

  • The prebuilt-binaries in the CPU builds of the release require OpenMP at runtime. For Linux systems, it requires libgomp.so.1 to be installed. If OnnxRuntime fails to load, please try installing libgomp1.
  • The binaries in the GPU builds require CUDA 9.1 and CuDNN 7.1 runtime libraries to be available in the system. For the Windows NuGet package of the v0.2.1 release, this is CUDA 10.0 and CuDNN 7.3 instead.

ONNX Runtime v0.1.5

01 Dec 02:35
Compare
Choose a tag to compare

This is just a minor patch to the previous 0.1.4 release.

ONNX Runtime v0.1.4

29 Nov 16:17
e8db06e
Compare
Choose a tag to compare

This is the first open source release of ONNX Runtime.