Add install ONNX Runtime from nightly (#20131)

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Nat Kershaw (MSFT) 2024-04-01 21:33:46 -07:00 committed by GitHub
parent 73173cc2c2
commit 1ef08b350f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,34 @@ nav_order: 2
mv onnxruntime-linux-x64-gpu-1.17.0/lib .
```
* Install from nightly
Download the nightly nuget package `Microsoft.ML.OnnxRuntime` from: https://aiinfra.visualstudio.com/PublicPackages/_artifacts/feed/ORT-Nightly.
Extract the nuget package.
```bash
tar xvf Microsoft.ML.OnnxRuntime.1.18.0-dev-20240322-0323-ca825cb6e6.nupkg
```
Copy the include and lib files into $ORT_HOME.
On Windows
Example is given for `win-x64`. Change this to your architecture if different.
```cmd
copy build\native\include\onnxruntime_c_api.h $ORT_HOME\include
copy runtimes\win-x64\native\*.dll $ORT_HOME\lib
```
On Linux
```cmd
cp build/native/include/onnxruntime_c_api.h $ORT_HOME/include
cp build/linux-x64/native/libonnxruntime*.so* $ORT_HOME/lib
```
* Or build from source
```
@ -90,4 +118,4 @@ nav_order: 2
```bash
cd build/wheel
pip install *.whl
```
```