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

bug: core dump where i try in ubuntu #120

Open
EricKong1985 opened this issue Jun 10, 2023 · 3 comments
Open

bug: core dump where i try in ubuntu #120

EricKong1985 opened this issue Jun 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@EricKong1985
Copy link

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.

from whispercpp import Whisper
w = Whisper.from_pretrained("tiny.en")
Illegal instruction (core dumped)

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

@EricKong1985 EricKong1985 added the bug Something isn't working label Jun 10, 2023
@EricKong1985
Copy link
Author

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:~$

@mmhy2003
Copy link

mmhy2003 commented Oct 31, 2023

I have the same issue.

I use

  • Ubuntu 22.04 Server VM
  • Python 3.10

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.

UPDATE:

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.

@Nik-Kras
Copy link

I had the same problem. Whenever I attempted loading a model - I got "Illegal instruction (core dumped)".
Here I found the the issue could be in the CPU and it worked for me.

I got this error on a server with Xeon E5-2687W CPU (manufactured back in 2012)
When I changed it to AMD Ryzen Threadripper PRO 5955WX (2022) - all worked fine.

If that doesn't help you, I also found that it could be a bug with numpy, try downgrading in to 1.19.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants