-
Notifications
You must be signed in to change notification settings - Fork 154
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
[HF][Optimum] Compiling unet in stable diffusion XL pipeline failed since Neuron SDK 2.18 #859
Comments
Also tried with PyTorch 2.1.2 setup, not working neither. |
Hi Jingya, I'm trying to reproduce the problem. I installed optimum and optimum-neuron with |
The installation with neuronx extra is what we are going to fix with the 0.0.21 optimum-neuron release. Fow now, to install the latest optimum-neuron release(0.0.20), could you try with: pip install optimum==1.18.0
pip install optimum-neuron==0.0.20 Or the 0.0.21 dev version can be installed from source:
Then you could install pip install diffusers. |
Thanks Jingya, I updated optimum-neuron and diffusers and now I can reproduce the issue. |
Hi Jingya, I found that the issue can be prevented if we set inline_weights_to_neff=True when tracing the UNet. Would that be a sufficient workaround for now? I will also look into the root cause but that may take some time. |
Hi @aws-bhegedus, thanks for investigating it! Optimum Neuron could force setting |
Thanks Jingya, we will have a fix in a future release to allow enabling the caching. |
Thanks @aws-bhegedus, that will be awesome!
|
The issue still exist with the latest neuron SDK 2.19.1:
|
Thanks for testing @JingyaHuang. I was able to reproduce the issue again and we are looking into it. |
Hi team, when trying to bump Optimum Neuron to the latest Neuron sdk 2.18 release, we notice that the compilation of unet for SDXL model failed with the latest compiler. Here are more details about the regression:
Error log
The test above works as expected with Neuron SDK 2.17.1.
The text was updated successfully, but these errors were encountered: