onnxruntime/docs/get-started/training-pytorch.md
Faith Xu 6c8c8a9b12
[Docs] Update CUDA/TRT versions and menu format fixes (#9317)
* update cuda/trt versions

* update API doc links

* remove api doc parentage

* fix menu

* fix broken links

* open api links in new window
2021-10-14 11:28:17 -07:00

865 B

title parent nav_order
ORT Training with PyTorch Get Started 11

Get started with ORT for Training API (PyTorch)

{: .no_toc } The ORT Training API is a PyTorch frontend that implements the torch.nn.Module interface.

ORT Training Example

In this example we will go over how to use ORT for Training a model with PyTorch.

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.

  • Add ORTModule in the train.py
   from torch_ort import ORTModule
   .
   .
   .
   model = ORTModule(model)

Samples

ONNX Runtime Training Examples