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

Illegal instruction (core dumped) #326

Closed
mehrdad2000 opened this issue May 20, 2023 · 9 comments
Closed

Illegal instruction (core dumped) #326

mehrdad2000 opened this issue May 20, 2023 · 9 comments
Labels
bug Something isn't working primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT

Comments

@mehrdad2000
Copy link

Hi i've got below error when run privateGPT!

[root@ privateGPT]# python3.11 privateGPT.py
Using embedded DuckDB with persistence: data will be stored in: db
Illegal instruction (core dumped)

Any idea?
Thanks

@mehrdad2000 mehrdad2000 added the bug Something isn't working label May 20, 2023
@apcameron
Copy link

see #203

@jon2allen
Copy link

Your cpu likely isn't supported by current pytorch and torch libraries. and even if you managed to get this to work on such a processor - it would be a painful long wait before you get results.

@mehrdad2000
Copy link
Author

@jon2allen i’m running it on esx host that use 8 core intel cpu and won't support avx2, what can i do to fix this?

@digitalw00t
Copy link

I've tried running an a Dell T620, core dump with privateGPT.py
I've tried running on a Dell R930 running proxmox with a vm that has an ubuntu 22 LTS machine, core dump
Both will ingest just fine, but core dump on execution

@finaldie
Copy link

finaldie commented May 22, 2023

@digitalw00t I have the same issue with Dell R730 + PVE VM. In short, the solution is: Change the VM processor type to host, then restart the VM, it would work. (you could double-check whether your CPU type is host or not, see pve reference here: https://forum.proxmox.com/threads/avx2-and-avx-flags-on-vm.87808/)

...
emb agent loaded
Using embedded DuckDB with persistence: data will be stored in: db
vector db loaded
starting pick LLM: GPT4All, model_path: models/ggml-gpt4all-j-v1.3-groovy.bin
GPT4All branch
gptj_model_load: loading model from 'models/ggml-gpt4all-j-v1.3-groovy.bin' - please wait ...
gptj_model_load: n_vocab = 50400
gptj_model_load: n_ctx   = 2048
gptj_model_load: n_embd  = 4096
gptj_model_load: n_head  = 16
gptj_model_load: n_layer = 28
gptj_model_load: n_rot   = 64
gptj_model_load: f16     = 2
gptj_model_load: ggml ctx size = 4505.45 MB
gptj_model_load: memory_size =   896.00 MB, n_mem = 57344
gptj_model_load: ................................... done
gptj_model_load: model size =  3609.38 MB / num tensors = 285
picked LLM: GPT4All

Enter a query: hi
 Hi! How can I help you today?

image

Btw, please verify the processor in the PVE directly and make sure the avx/avx2 is enabled:

cat /proc/cpuinfo | grep avx --color

@digitalw00t
Copy link

I'm running two Intel(R) Xeon(R) CPU E5-2640 on the T620, and according to Phind it should have that instruction set. I'll check when I get home from work, and do the proxmox update that's mentioned as well.

@digitalw00t
Copy link

Yup.. same issue, but there's no way to turn it on in the bios, so I'm guessing it just isn't supported. I thought I read that it was, but if there's no way to activate it I'm SOL.

@mibtim
Copy link

mibtim commented Jun 11, 2023

same Illegal instruction (core dumped) issue, im running on vm ubuntu 64 bit, base mem 513000mb, 6 processers

@digitalw00t
Copy link

I'm just writing it off that my cpu is old enough that it doesn't have the avx2 instruction set. I might go about recompiling torch, but not sure at this point.

@imartinez imartinez added the primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT
Projects
None yet
Development

No branches or pull requests

7 participants