Git Product home page Git Product logo

Comments (6)

pepega007xd avatar pepega007xd commented on May 25, 2024

Same problem here, the exectution stops in the ggml_type_sizef function on the vxorps %xmm0,%xmm0,%xmm0 instruction. I suppose this is because I'm running this on a very low-end CPU which doesn't support the AVX(?) instructions. Perhaps this is a bug in the ggml library, in the code for differentiating CPU features.

from gpt4all.

qinidema avatar qinidema commented on May 25, 2024

@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.

from gpt4all.

qinidema avatar qinidema commented on May 25, 2024

@pepega007xd

Perhaps this is a bug in the ggml library, in the code for differentiating CPU features.

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.

from gpt4all.

finaldie avatar finaldie commented on May 25, 2024

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:

  1. [Not lucky] If CPU does not support avx/avx2, then refer to https://tech.amikelive.com/node-887/how-to-resolve-error-illegal-instruction-core-dumped-when-running-import-tensorflow-in-a-python-program/
  2. [Lucky] If CPU does support avx/avx2, but VM has no avx/avx2 flags, then simply pass avx/avx2 flags into VM.

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.

image

from gpt4all.

mibtim avatar mibtim commented on May 25, 2024

anyone running vm on windows check this article out
https://stackoverflow.com/questions/65780506/how-to-enable-avx-avx2-in-virtualbox-6-1-16-with-ubuntu-20-04-64bit

from gpt4all.

niansa avatar niansa commented on May 25, 2024

Stale

from gpt4all.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.