mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-16 18:31:27 +00:00
1.4 KiB
1.4 KiB
| title | description | has_children | parent | grand_parent | nav_order |
|---|---|---|---|---|---|
| Install | Instructions to install ONNX Runtime GenAI on your target platform in your environment | false | How to | Generative AI (Preview) | 1 |
Install ONNX Runtime GenAI
{: .no_toc }
- TOC placeholder {:toc}
Python package release candidates
pip install numpy
pip install onnxruntime-genai --pre --index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-genai/pypi/simple/
Append -cuda for the library that is optimized for CUDA environments
pip install onnxruntime-genai-cuda --pre --index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-genai/pypi/simple/
Nuget package release candidates
To install the NuGet release candidates, add a new package source in Visual Studio, go to Project -> Manage NuGet Packages.
-
Click on the
Settingscog icon -
Click the
+button to add a new package source- Change the Name to
onnxruntime-genai - Change the Source to
https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-genai/nuget/v3/index.json
- Change the Name to
-
Check the
Include prereleasebutton -
Add the
Microsoft.ML.OnnxRuntimeGenAIpackage -
Add the
Microsoft.ML.OnnxRuntimepackage
To run with CUDA, use the following packages instead:
Microsoft.ML.OnnxRuntimeGenAI.CudaMicrosoft.ML.OnnxRuntime.Gpu