Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Optimizer Fails on AMD Radeon Optimizing RX 6500 XT Unet on Stable Diffusion #510

Open
mousetail opened this issue Aug 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@mousetail
Copy link

What happened?

I'm getting this error trying to run the stable diffusion example:

Optimizing vae_decoder
[2023-08-24 18:28:07,493] [INFO] [footprint.py:168:get_pareto_frontier] pareto frontier points: 3_OrtTransformersOptimization-2-b1a42f24996a64c47333128369a9eb21-gpu-dml {'latency-avg': 3116.94146}
[2023-08-24 18:28:07,494] [INFO] [engine.py:475:run_search] Output all 1 models
[2023-08-24 18:28:07,494] [INFO] [engine.py:318:run] No packaging config provided, skip packaging artifacts
Unoptimized Model : C:\Users\Admin\pypro\Olive\examples\directml\stable_diffusion\cache\models\2_OnnxConversion-bed9f6d6008fff0395cbb86a8e7378c9-53e9f77e1a62ba2aa899ddb5369d16c1-gpu-dml\model.onnx
Optimized Model   : C:\Users\Admin\pypro\Olive\examples\directml\stable_diffusion\cache\models\3_OrtTransformersOptimization-2-b1a42f24996a64c47333128369a9eb21-gpu-dml\model.onnx

Optimizing unet
[2023-08-24 18:28:17,346] [ERROR] [engine.py:763:_run_passes] Evaluation failed: [ONNXRuntimeError] : 1 : FAIL : D:\a\_work\1\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\ExecutionProvider.cpp(896)\onnxruntime_pybind11_state.pyd!00007FFC766F0201: (caller: 00007FFC766F0C2F) Exception(2) tid(5a84) 887A0006 De GPU reageert niet op meer opdrachten, waarschijnlijk vanwege een ongeldige opdracht van de aanroepende toepassing.

[2023-08-24 18:28:17,347] [WARNING] [engine.py:307:run] Failed to run Olive on gpu-dml: [ONNXRuntimeError] : 1 : FAIL : D:\a\_work\1\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\ExecutionProvider.cpp(896)\onnxruntime_pybind11_state.pyd!00007FFC766F0201: (caller: 00007FFC766F0C2F) Exception(2) tid(5a84) 887A0006 De GPU reageert niet op meer opdrachten, waarschijnlijk vanwege een ongeldige opdracht van de aanroepende toepassing.

Seems to be the same issue as this: #301 But can provide any diagnostic info if needed.

Version?

Main branch as of 24-08-2023

@mousetail mousetail added the bug Something isn't working label Aug 24, 2023
@mousetail mousetail changed the title [Bug]: Optimizer Fails on AMD Radeon Optimizing Unet on Stable Diffusion [Bug]: Optimizer Fails on AMD Radeon Optimizing RX 6500 XT Unet on Stable Diffusion Aug 25, 2023
@PatriceVignola
Copy link
Contributor

Hi @mousetail,

How much dedicated RAM does your card have? There exists 2 versions of RX 6500 XT (4GB and 8GB), and I'm afraid 4GB is not enough to run stable diffusion on the GPU.

@mousetail
Copy link
Author

afbeelding
I have the 8 GB variant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@PatriceVignola @mousetail and others