amd / RyzenAI-SW

MIT License
364 stars 60 forks source link

Opt Transformer Example issues: pybind11, numpy version, %1 ist not a valid Win32 application #104

Closed ksjogo closed 1 month ago

ksjogo commented 3 months ago

I am following the tutorial to run the opt locally, two issues I ran into before (when just following the tutorial):

Now I am stuck there though:

(ryzenai-transformers) C:\Users\jogo\dev\RyzenAI-SW\example\transformers\models\opt>python run_awq.py --task quantize --model_name opt-1.3b
1.26.4
Traceback (most recent call last):
  File "C:\Users\jogo\dev\RyzenAI-SW\example\transformers\models\opt\run_awq.py", line 18, in <module>
    import qlinear
  File "C:\Users\jogo\dev\RyzenAI-SW\example\transformers\ops\python\qlinear.py", line 21, in <module>
    import RyzenAI
ImportError: DLL load failed while importing RyzenAI: %1 is not a valid Win32 application.

(ryzenai-transformers) C:\Users\jogo\dev\RyzenAI-SW\example\transformers\models\opt>
poganesh commented 3 months ago

Hi @ksjogo,

Could you please check if your python environment is 64-bit? Here's how you can do it:

import platform print(platform.architecture())

Additionally, could you please provide the following system information to help diagnose the issue:

ksjogo commented 3 months ago

Hi, that returns:

('64bit', 'WindowsPE')

It's Windows 11 23H2. CPU: AMD Ryzen 9 7940HS

uday610 commented 1 month ago

As the new 1.2 flow is released. This flow is obsoleted. Closing