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

import Error: cannot import name 'apply_adaround_te' from 'aimet_torch.quantsim' #2909

Closed
1826133674 opened this issue Apr 30, 2024 · 2 comments

Comments

@1826133674
Copy link

I am using AIMET for the quantification of Stable-diffusion v1-5 according to the guidance in the following link

https://docs.qualcomm.com/bundle/publicresource/topics/80-64748-1/model_updates.html.

However, during the process of PTQ quantification, I encountered the following error:

ImportError: cannot import name 'apply_adaround_te' from 'aimet_torch.quantsim'

The AIMET version I am using is as follows:
aimet_torch torch-gpu-1.31.0

It is downloaded from the following link:
https://github.com/quic/aimet/releases/download/1.31.0/aimet_torch-torch_gpu_1.31.0-cp38-cp38-linux_x86_64.whl

I followed the instructions in the following file to build docker, and then installed the wheel package in it,

https://github.com/quic/aimet/blob/develop/Jenkins/Dockerfile.torch-gpu

Please help me point out what changes I should make to solve this problem, thank you very much!

@quic-hitameht
Copy link
Contributor

@1826133674 Have you downloaded the folder containing jupyter notebook? Please follow this guide: https://docs.qualcomm.com/bundle/publicresource/topics/80-64748-1/introduction.html

Once you have built AIMET docker and downloaded the required folder, you will need to run launch.sh script which will install additional dependencies and start the jupyter server then you should be able to run stable_diffusion.ipynb

Let me know if you have any other questions.

@1826133674
Copy link
Author

Thank you for your reply! I'v got the apis in the zip files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants