Giter Club home page Giter Club logo

Comments (4)

radscience avatar radscience commented on May 20, 2024

gdb output from gdb ./bin.test_tiny

Program received signal SIGILL, Illegal instruction.
0x00007ffff7ef0b40 in rwkv_get_system_info_string () from /home/e2/compile/rwkv.cpp/librwkv.so
#0 0x000055555557e100 in rwkv_get_system_info_string ()
(gdb) display /i $pc
1: x/i $pc
=> 0x55555557e100 <rwkv_get_system_info_string+8992>:
vmovdqu 0x10(%rax),%xmm0

Even after commenting out lines of rwkv_get_system_info_string () to force it to return 0's for AVXs.

from rwkv.cpp.

radscience avatar radscience commented on May 20, 2024

Also, trying to use quantize.py, gdb gives:

Starting program: /usr/bin/python3.10 rwkv/quantize.py /llms/models/RWKV-4b-Pile-171M-20230202-7922.bin /llms/models/RWKV-4b-Pile-171M-20230202-7922.rwkv.cpp-171M-Q4_1_O.bin 4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x00007ffff75fcb20 in ggml_init () from /home/e2/compile/rwkv.cpp/librwkv.so
(gdb) display /i $pc
1: x/i $pc
=> 0x7ffff75fcb20 <ggml_init+400>: vpxor %xmm1,%xmm1,%xmm1
(gdb)

from rwkv.cpp.

largefield-ohara avatar largefield-ohara commented on May 20, 2024

How about removing the -mf16c option from the build? There are a lot of them and you need to remove them all.
In addition, it would be useful to have an entry in cmake to remove -mf16c.

from rwkv.cpp.

radscience avatar radscience commented on May 20, 2024

Commenting out lines with "-mf16c" in CMakeLists.txt and ggml/src/CMakeLists.txt appears to have worked on a different machine which had the same issue. Still need to verify on the N4200 machine.

from rwkv.cpp.

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.