-
Notifications
You must be signed in to change notification settings - Fork 958
Open
Description
Firstly, I follow this link install gpu-version sherpa-onnx, "ImportError: /lib64/libm.so.6: version GLIBC_2.27 not found" happens, then I follow this link to solve it and pass the test python3 -c "import sherpa_onnx; print(sherpa_onnx.__file__)"
but when I run python python-api-examples/offline-fire-red-asr-decode-files.py, the following error happens, I have no idea how to solve it, look forward to your help🙏!
Traceback (most recent call last):
File "/home/ec2-user/SageMaker/sherpa-onnx/python-api-examples/offline-fire-red-asr-decode-files.py", line 97, in <module>
main()
File "/home/ec2-user/SageMaker/sherpa-onnx/python-api-examples/offline-fire-red-asr-decode-files.py", line 69, in main
recognizer, wave_filename = create_recognizer()
^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/SageMaker/sherpa-onnx/python-api-examples/offline-fire-red-asr-decode-files.py", line 57, in create_recognizer
sherpa_onnx.OfflineRecognizer.from_fire_red_asr(
File "/home/ec2-user/anaconda3/envs/sherpa/lib/python3.12/site-packages/sherpa_onnx/offline_recognizer.py", line 643, in from_fire_red_asr
self.recognizer = _Recognizer(recognizer_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directorymy environment is as follows:
(sherpa) ec2-user@ip-172-16-75-115:~/SageMaker/sherpa-onnx$ which nvcc
/usr/local/cuda-12.1/bin/nvcc
(sherpa) ec2-user@ip-172-16-75-115:~/SageMaker/sherpa-onnx$ find /usr/local/cuda/ -name libcudnn.so*
/usr/local/cuda/lib/libcudnn.so
/usr/local/cuda/lib/libcudnn.so.8
/usr/local/cuda/lib/libcudnn.so.8.9.3
(sherpa) ec2-user@ip-172-16-75-115:~/SageMaker/sherpa-onnx$ nvidia-smi
Mon Jul 7 06:35:04 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.163.01 Driver Version: 550.163.01 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA A10G On | 00000000:00:1E.0 Off | 0 |
| 0% 33C P0 69W / 300W | 1MiB / 23028MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
(sherpa) ec2-user@ip-172-16-75-115:~/SageMaker/sherpa-onnx$ python3 -c "import sherpa_onnx; print(sherpa_onnx.__file__)"
/home/ec2-user/anaconda3/envs/sherpa/lib/python3.12/site-packages/sherpa_onnx/__init__.pyMetadata
Metadata
Assignees
Labels
No labels