Git Product home page Git Product logo

Comments (4)

yonas avatar yonas commented on July 24, 2024

Compiles and works fine on Ubuntu 22.10.

from alpaca.cpp.

txomon avatar txomon commented on July 24, 2024

#18 might have caused this

from alpaca.cpp.

yonas avatar yonas commented on July 24, 2024

@txomon It still crashes using the latest d0f855a

from alpaca.cpp.

rzighel avatar rzighel commented on July 24, 2024

Hello guys;

I am too trying to run chat under FreeBSD 13.1.
Chat compiles cleanly, but when launching it:

./chat
/antimatter15-alpaca.cpp-9116ae9]$ ./chat
main: seed = 1680984151
llama_model_load: loading model from 'ggml-alpaca-7b-q4.bin' - please wait ...
Illegal instruction (core dumped)
==
I tried "truss ./chat, and got:
===
[...]
ead(3,"\M-)t(I\M^R\M-~;\M-8\M^Ww\M^F{"...,32768) = 32768 (0x8000)
read(3,"\M-'\M^GykI'\M^Qk\M-f\M^VI\M^Xzw"...,32768) = 32768 (0x8000)
read(3,"u\M-8i\M-'\M^H\M^u%I\M-;Y\M^["...,32768) = 32768 (0x8000)
read(3,"\M^R\M-D;\M-Kt[t[\M-,\M^Vy\M-vi"...,32768) = 32768 (0x8000)
mmap(0x0,2621440,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-1,0x0) = 34378612736 (0x801200000)
mmap(0x0,3145728,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_ALIGNED(12),-1,0x0) = 34381234176 (0x801480000)
SIGNAL 4 (SIGILL) code=ILL_PRVOPC trapno=1 addr=0x2411d5
process killed, signal = 4 (core dumped)
===

and finnaly, dbugging with gdb:

==

]$ gdb ./chat
GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD]

(gdb) run
Starting program: /usr/home/whisper/antimatter15-alpaca.cpp-9116ae9/chat
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
main: seed = 1680984937
llama_model_load: loading model from 'ggml-alpaca-7b-q4.bin' - please wait ...

Program received signal SIGILL, Illegal instruction.
Privileged opcode.
0x00000000002411d5 in ggml_type_sizef ()

(gdb) bt
#0 0x00000000002411d5 in ggml_type_sizef ()
#1 0x000000000022886d in llama_model_load(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, llama_model&, gpt_vocab&, int) ()
#2 0x000000000022d5e5 in main ()
(gdb)

My loader.conf has the following:
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256

===

Helo would be appreciated.

from alpaca.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.