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

Bert model optimization on Qualcomm NPU with SNPE SDK example not work. #1543

Open
chinazhangchao opened this issue Jan 9, 2025 · 0 comments

Comments

@chinazhangchao
Copy link

Hi team,

I followed this doc to do Bert model optimization on Qualcomm NPU.
I downloaded SNPE SDK v2.18.0.240101 from https://softwarecenter.qualcomm.com/#/catalog/item/qualcomm_neural_processing_sdk

Image

Set environment variable SNPE_ROOT to C:\Qualcomm\AIStack\SNPE\2.18.0.240101.
Running olive configure-qualcomm-sdk --py_version 3.8 --sdk snpe encountered following error:

(base) C:\Users\**>olive configure-qualcomm-sdk --py_version 3.8 --sdk snpe
[2025-01-09 14:54:16,421] [INFO] [configure.py:61:configure_eval] Configuring snpe for arm64x-windows-msvc...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\**\AppData\Roaming\Python\Python312\Scripts\olive.exe\__main__.py", line 7, in <module>
  File "C:\Users\**\AppData\Roaming\Python\Python312\site-packages\olive\cli\launcher.py", line 62, in main
    service.run()
  File "C:\Users\**\AppData\Roaming\Python\Python312\site-packages\olive\cli\configure_qualcomm_sdk.py", line 37, in run
    configure(self.args.py_version, self.args.sdk)
  File "C:\Users\**\AppData\Roaming\Python\Python312\site-packages\olive\platform_sdk\qualcomm\configure\configure.py", line 95, in configure
    configure_eval(sdk)
  File "C:\Users\**\AppData\Roaming\Python\Python312\site-packages\olive\platform_sdk\qualcomm\configure\configure.py", line 75, in configure_eval
    for member in path.iterdir():
                  ^^^^^^^^^^^^^^
  File "C:\ProgramData\miniconda3\Lib\pathlib.py", line 1056, in iterdir
    for name in os.listdir(self):
                ^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Qualcomm\\AIStack\\SNPE\\2.18.0.240101\\lib\\dsp'

I checked the C:\Qualcomm\AIStack\SNPE\2.18.0.240101\lib\ directory and there wasn't dsp directory inside.
How to resolve this issue?

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

1 participant