Skip to content

Commit

Permalink
Add install ONNX Runtime from nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
natke authored Mar 28, 2024
1 parent 73173cc commit fd0f192
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/genai/howto/build-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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

```
Expand Down Expand Up @@ -90,4 +118,4 @@ nav_order: 2
```bash
cd build/wheel
pip install *.whl
```
```

0 comments on commit fd0f192

Please sign in to comment.