-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update install docs and add troubleshooting page (#21210)
- Loading branch information
Showing
5 changed files
with
81 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Troubleshoot | ||
description: How to troubleshoot common problems | ||
has_children: false | ||
parent: How to | ||
grand_parent: Generate API (Preview) | ||
nav_order: 4 | ||
--- | ||
|
||
# Troubleshoot issues with ONNX Runtime generate() API | ||
{: .no_toc } | ||
|
||
* TOC placeholder | ||
{:toc} | ||
|
||
## Installation issues | ||
|
||
### Windows Conda import error | ||
|
||
``` | ||
ImportError: DLL load failed while importing onnxruntime_genai: A dynamic link library (DLL) initialization routine failed. | ||
``` | ||
|
||
If you see this issue in a Conda environment on Windows, you need to upgrade the `C++ runtime for Visual Studio`. In the conda environment, run the following command: | ||
|
||
```bash | ||
conda install conda-forge::vs2015_runtime | ||
``` | ||
|
||
The onnxruntime-genai Python package should run without error after this extra step. | ||
|
||
### Windows CUDA import error | ||
|
||
After CUDA toolkit installation completed on windows, ensure that the `CUDA_PATH` system environment variable has been set to the path where the toolkit was installed. This variable will be used when importing the onnxruntime_genai python module on Windows. Unset or incorrectly set `CUDA_PATH` variable may lead to a `DLL load failed while importing onnxruntime_genai`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters