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

ModuleNotFoundError: No module named 'qlinear' #95

Open
AshimaBisla opened this issue Jun 18, 2024 · 8 comments
Open

ModuleNotFoundError: No module named 'qlinear' #95

AshimaBisla opened this issue Jun 18, 2024 · 8 comments

Comments

@AshimaBisla
Copy link

Hello,

While executing run_awq.py to quantize Llama 2 model, I am facing the error in line 14.
Screenshot (733)
I am not able to figure out how to get qlinear module in my system.
It will be really helpful if someone can help me out with this.

Thanks,
Ashima

@BoruiXu
Copy link

BoruiXu commented Jun 18, 2024

Maybe you should run Setup Transformers first in /example/transformers/README.md. The Step 3 will install the qlinear package.

@AshimaBisla
Copy link
Author

Hi @BoruiXu, I have run all the prerequisites including the Setup Transformers step, but I am still facing the issue.

@BoruiXu
Copy link

BoruiXu commented Jun 18, 2024

Maybe the command terminal causes the error? I tried to run it in the git bash terminal but failed to run. Then I switched to the Anaconda Prompt terminal, it works well.

@fengzhaoxin
Copy link

Hi @BoruiXu, I have run all the prerequisites including the Setup Transformers step, but I am still facing the issue.

Do not use windows terminal, you must use cmd.

@kesku
Copy link

kesku commented Jun 25, 2024

The Step 3 will install the qlinear package.

Where is this stated? As far as I can tell, Step 3 is only to install RyzenAI-0.0.1
image

@BoruiXu
Copy link

BoruiXu commented Jun 25, 2024

The Step 3 will install the qlinear package.

Where is this stated? As far as I can tell, Step 3 is only to install RyzenAI-0.0.1 image

You can check the source code in ops\cpp.Or you can try import qlinear in Python script, I think it should work well.

@easygoal
Copy link

It seems in RyzenAI-SW 1.2.0, only qlinear_2 is provided. "qlinear" directory doesnot exist in ops\cpp

@easygoal
Copy link

It should work with RyzenAI-SW 1.2.0. In my case, I have to clean the build directory and re-compile the opt/cpp directory to make it work.

cyndwith added a commit to cyndwith/RyzenAI-SW that referenced this issue Aug 27, 2024
cyndwith added a commit that referenced this issue Aug 28, 2024
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

5 participants