Open EricKong1985 opened 1 year ago
I try to build with my OS ,looks it also cause core dump in my system running install_egg_info Copying src/whispercpp.egg-info to build/bdist.linux-x86_64/wheel/whispercpp-0.0.17.post65+gbc9769c-py3.10.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/whispercpp-0.0.17.post65+gbc9769c.dist-info/WHEEL creating '/home/eric/whispercpp/dist/.tmp-g_4zvv7l/whispercpp-0.0.17.post65+gbc9769c-cp310-cp310-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'whispercpp/about.py' adding 'whispercpp/init.py' adding 'whispercpp/init.pyi' adding 'whispercpp/api.pyi' adding 'whispercpp/api_cpp2py_export.so' adding 'whispercpp/audio.pyi' adding 'whispercpp/audio_cpp2py_export.so' adding 'whispercpp/py.typed' adding 'whispercpp/utils.py' adding 'whispercpp-0.0.17.post65+gbc9769c.dist-info/LICENSE' adding 'whispercpp-0.0.17.post65+gbc9769c.dist-info/METADATA' adding 'whispercpp-0.0.17.post65+gbc9769c.dist-info/WHEEL' adding 'whispercpp-0.0.17.post65+gbc9769c.dist-info/top_level.txt' adding 'whispercpp-0.0.17.post65+gbc9769c.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Successfully built whispercpp-0.0.17.post65+gbc9769c-cp310-cp310-linux_x86_64.whl eric@eric-Thurley:~/whispercpp$ pip install dist/*.whl Defaulting to user installation because normal site-packages is not writeable Processing ./dist/whispercpp-0.0.17.post65+gbc9769c-cp310-cp310-linux_x86_64.whl Installing collected packages: whispercpp Successfully installed whispercpp-0.0.17.post65+gbc9769c eric@eric-Thurley:~/whispercpp$ cd eric@eric-Thurley:~$ python Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
from whispercpp import Whisper w = Whisper.from_pretrained("tiny.en") Illegal instruction (core dumped) eric@eric-Thurley:~$
I have the same issue.
I use
I install it directly from the repo
I think maybe something got changed on the main whisper.cpp repo which results in such a problem.
I figured out the problem, I read a lot of logs and somehow the compiled part of the library is not compatible with Intel Xeon processors, it works fine on my other computers with i7 processors. when it starts to load the model it crashes and shows in the journalctl -xe
invalid opcode, for some reason my Xeon processor is unable to understand some assembly instructions.
Describe the bug
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
To reproduce
No response
Expected behavior
No response
Environment
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy