onnxruntime/docs/how-to/install.md
Faith Xu fce58d9e26
Website: change default to pytorch 1.9 for training (#8337)
* fix training pkg urls

* Update torch-ort instructions

* Remove nightly from Get Started matrix

* Add steps for training installation

* Add torch-ort configure step for training installation

* Add text for ROCm packages

* Refine text for ROCm packages

* Add ROCm preview packages

* Revert ROCm instructions

Co-authored-by: Nat Kershaw <nakersha@microsoft.com>
2021-07-09 13:36:50 -07:00

5.4 KiB

title parent nav_order
Install ORT How to 1

Install ONNX Runtime

{: .no_toc }

See the installation matrix for recommended instructions for desired combinations of target operating system, hardware, accelerator, and language.

Details on OS versions, compilers, language versions, dependent libraries , etc can be found under Compatibility.

Contents

{: .no_toc }

  • TOC placeholder {:toc}

Inference

The following build variants are available as officially supported packages. Others can be built from source from each release branch.

  1. Default CPU Provider
  2. GPU Provider - NVIDIA CUDA
  3. GPU Provider - DirectML (Windows) - recommended for optimized performance and compatibility with a broad set of GPUs on Windows devices
Official build Nightly build
Python If using pip, run pip install --upgrade pip prior to downloading.
CPU: onnxruntime ort-nightly (dev)
GPU: onnxruntime-gpu ort-gpu-nightly (dev)
C#/C/C++ CPU: Microsoft.ML.OnnxRuntime ort-nightly (dev)
GPU - CUDA: Microsoft.ML.OnnxRuntime.Gpu ort-nightly (dev)
GPU - DirectML: Microsoft.ML.OnnxRuntime.DirectML ort-nightly (dev)
WinML Microsoft.AI.MachineLearning
Java CPU: com.microsoft.onnxruntime:onnxruntime
GPU: com.microsoft.onnxruntime:onnxruntime_gpu
Android com.microsoft.onnxruntime:onnxruntime-mobile
iOS (C/C++) CocoaPods: onnxruntime-mobile-c
Objective-C CocoaPods: onnxruntime-mobile-objc
React Native onnxruntime-react-native
Node.js onnxruntime-node
Web onnxruntime-web

Note: Dev builds created from the master branch are available for testing newer changes between official releases. Please use these at your own risk. We strongly advise against deploying these to production workloads as support is limited for dev builds.

Requirements

{: .no_toc }

Training

Official build Nightly build
PyTorch 1.8.1 (CUDA 10.2) onnxruntime_stable_torch181.cu102 onnxruntime_nightly_torch181.cu102
PyTorch 1.8.1 (CUDA 11.1) onnxruntime_stable_torch181.cu111 onnxruntime_nightly_torch181.cu111
PyTorch 1.9 (CUDA 10.2) onnxruntime-training onnxruntime_nightly_torch190.cu102
PyTorch 1.9 (CUDA 11.1) onnxruntime_stable_torch190.cu111 onnxruntime_nightly_torch190.cu111
[Preview] PyTorch 1.8.1 (ROCm 4.2) onnxruntime_stable_torch181.rocm42 onnxruntime_nightly_torch181.rocm42
[Preview] PyTorch 1.9 (ROCm 4.2) onnxruntime_stable_torch190.rocm42 onnxruntime_nightly_torch190.rocm42