-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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) on Linux Virtual Machine (KVM) #63
Comments
Same problem here, the exectution stops in the |
@Netherdrake you need AVX support for this particular instruction. Then you need AVX2 too (see issue 82). Since your CPU supports it you need to somehow pass that too through your VM software. |
Looks like you are right. See my other reply. This code is basically "return true;". CPU features are decided in compile-time, and not run-time. |
I have a similar issue in another project (privateGPT), and here is my solution as a reference. My environment is CPU E5-2680v4 + PVE VM. The root case is application code cannot execute avx/avx2 instructions and crashes. We have two directions to deal with:
My issue fits solution (2), and from the problem statement above, the CPU "AMD Epyc 7313" supports avx/avx2, the only issue is VM has no correct CPU flags, it could fit into solution (2). I don't know which VM provider you are using, may need to pass the flags accordingly.
Hope it helps a little. |
anyone running vm on windows check this article out |
Stale |
dmesg shows:
strace tail shows:
ILL_ILLOPN = Illegal operand. I suppose some CPU instruction is not available.
The CPU is AMD Epyc 7313, running Ubuntu 22.04 inside of a VM.
From the VM, the following cpu flags are enabled:
Unfortunately I'm not very experienced with VM's, however I would like to run GPT chat on a server.
Is it possible to get the source of
gpt4all-lora-quantized-linux-x86
to recompile?The text was updated successfully, but these errors were encountered: