+
+ | Device |
+ Language |
+ PackageName |
+ Installation Instructions |
+
+
+ | Windows |
+ C, C++, C# |
+
+ Microsoft.ML.OnnxRuntime.Training |
+
+ dotnet add package Microsoft.ML.OnnxRuntime.Training
+ |
+
+
+
+ | Linux |
+ C, C++ |
+ onnxruntime-training-linux*.tgz |
+
+
+ - Download the
*.tgz file from here.
+ - Extract it.
+ - Move and include the header files in the
include directory.
+ - Move the
libonnxruntime.so dynamic library to a desired path and include it.
+
+ |
+
+
+ |
+ Python |
+ onnxruntime-training |
+
+ pip install onnxruntime-training
+ |
+
+
+ | Android |
+ C, C++ |
+ onnxruntime-training-android |
+
+
+ - Download the onnxruntime-training-android (full package) AAR hosted at Maven Central.
+ - Change the file extension from
.aar to .zip, and unzip it.
+ - Include the header files from the
headers folder.
+ - Include the relevant
libonnxruntime.so dynamic library from the jni folder in your NDK project.
+
+ |
+
+
+ |
+ Java/Kotlin |
+ onnxruntime-training-android |
+ In your Android Studio Project, make the following changes to:
+
+ - build.gradle (Project):
+
+repositories {
+ mavenCentral()
+}
+
+
+ - build.gradle (Module):
+
+dependencies {
+ implementation 'com.microsoft.onnxruntime:onnxruntime-training-android:latest.release'
+}
+
+
+
+ |
+
+
+
+## Large Model Training
+
+```bash
pip install torch-ort
python -m torch_ort.configure
```
-**Note**: This installs the default version of the `torch-ort` and `onnxruntime-training` packages that are mapped to specific versions of the CUDA libraries. Refer to the install options in [ONNXRUNTIME.ai](https://onnxruntime.ai).
-
-### Add ORTModule in the `train.py`
-
-```python
- from torch_ort import ORTModule
- .
- .
- .
- model = ORTModule(model)
-```
-
-**Note**: the `model` where ORTModule is wrapped needs to be a derived from the `torch.nn.Module` class.
+**Note**: This installs the default version of the `torch-ort` and `onnxruntime-training` packages that are mapped to specific versions of the CUDA libraries. Refer to the install options in [onnxruntime.ai](https://onnxruntime.ai).
## Inference install table for all languages
@@ -234,20 +319,4 @@ In addition to general [requirements](#requirements), please note additional req
## Training install table for all languages
-ONNX Runtime Training packages are available for different versions of PyTorch, CUDA and ROCm versions.
-
-The install command is:
-```cmd
-pip3 install torch-ort [-f location]
-python 3 -m torch_ort.configure
-```
-
-The _location_ needs to be specified for any specific version other than the default combination. The location for the different configurations are below:
-
-||Official build (location)|Nightly build (location)|
-|---|---|---|
-|PyTorch 1.11 (ROCm 5.2)||[onnxruntime_nightly_torch1110.rocm52](https://download.onnxruntime.ai/onnxruntime_stable_rocm52.html)|
-|PyTorch 1.12.1 (ROCm 5.2.3)||[onnxruntime_nightly_torch1121.rocm523](https://download.onnxruntime.ai/onnxruntime_nightly_rocm523.html)|
-|PyTorch 1.13 (ROCm 5.2.3)||[onnxruntime_nightly_torch1130.rocm523](https://download.onnxruntime.ai/onnxruntime_nightly_rocm523.html)|
-|PyTorch 1.12.1 (ROCm 5.3.2)||[onnxruntime_nightly_torch1121.rocm532](https://download.onnxruntime.ai/onnxruntime_nightly_rocm532.html)|
-|PyTorch 1.13.1(ROCm 5.4)||[onnxruntime_nightly_torch1131.rocm54](https://download.onnxruntime.ai/onnxruntime_nightly_rocm54.html)|
+Refer to the getting started with [Optimized Training](../../index.html#getStartedTable) page for more fine-grained installation instructions.
diff --git a/docs/reference/operators/ContribOperators.md b/docs/reference/operators/ContribOperators.md
index 0601833348..e7f0d50241 100644
--- a/docs/reference/operators/ContribOperators.md
+++ b/docs/reference/operators/ContribOperators.md
@@ -50,7 +50,7 @@ E.g., [aten_op_tests.py](https://github.com/microsoft/onnxruntime/blob/main/onnx
Shape inference C++ tests should be added in
[onnxruntime/test/contrib_ops](https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/test/contrib_ops).
-E.g., [trilu_shape_inference_test.cc](https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/test/contrib_ops/trilu_shape_inference_test.cc)
+E.g., [trilu_shape_inference_test.cc](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/test/providers/cpu/tensor/trilu_shape_inference_test.cc)
The operator kernel should be implemented using `Compute` function
under contrib namespace in [onnxruntime/contrib_ops/cpu/](https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/contrib_ops/cpu/)
@@ -86,7 +86,7 @@ Status Inverse::Compute(OpKernelContext* ctx) const {
} // namespace onnxruntime
```
-The kernel should be registered in [cpu_contrib_kernels.cc](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/contrib_ops/cpu/cpu_contrib_kernels.cc) for CPU and [cuda_contrib_kernels.cc](https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/cuda/contrib_ops/cuda_contrib_kernels.cc) for CUDA.
+The kernel should be registered in [cpu_contrib_kernels.cc](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/contrib_ops/cpu/cpu_contrib_kernels.cc) for CPU and [cuda_contrib_kernels.cc](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/contrib_ops/cuda/cuda_contrib_kernels.cc) for CUDA.
Now you should be able to build and install ONNX Runtime to start using your custom op.
diff --git a/index.html b/index.html
index c2259ea902..803a56ae4d 100644
--- a/index.html
+++ b/index.html
@@ -982,4 +982,4 @@ Console.WriteLine(outputs[0].AsTensor