alpaca-electron icon indicating copy to clipboard operation
alpaca-electron copied to clipboard

does it have AVX support (no AVX2) for Linux? Or only Windows?

Open gitknu opened this issue 2 years ago • 5 comments

Sorry for stupid question if it is so. I ask, as the information about AVX2 mentioned only in Windows topic. Also I tried to run the app on Linux (Ubuntu based) and I am not sure if it worked at all. Because I have chosen the model, the GUI is quite good, but the monitor for CPU and RAM usage where just as always (no rising or something else, about 2GB of RAM for system and 20-40% from CPU). Thank you for understanding, answering and especially your diffucult and awesome work!

gitknu avatar Apr 10 '23 13:04 gitknu

Does your CPU support avx2? I haven't tested Linux a lot so I don't know if there needs to be different versions for AVX and AVX2.

Also make sure your model is stored on an SSD. It takes a long time to load if it's on an HDD.

ItsPi3141 avatar Apr 10 '23 15:04 ItsPi3141

theres some tutorials to enable avx on linux, check first with hwinfo

Flizyx avatar Apr 10 '23 22:04 Flizyx

Doesn't work for me on an i7-3820, which doesn't have AVX2, only AVX

fancellu avatar Apr 11 '23 19:04 fancellu

Doesn't work for me on an i7-3820, which doesn't have AVX2, only AVX

It works. I tested it on an i7 2nd gen (I forgot the exact model). Its just really slow if the CPU doesn't support AVX2. From my testing, it took about 30 minutes to generate a paragraph.

ItsPi3141 avatar Apr 11 '23 20:04 ItsPi3141

Well, not for me, v much goes bang. As do many other chat.exe type things. I had to hand build chat.exe with alpaca previously to make it work.Anyway, I'll be getting a7950X3d system soon. It gets about 30% more performance on DJL taskshttps://djl.ai/As well as that, it sips power compared to 7950X11.04.2023, 21:48, "Pi" @.***>:

Doesn't work for me on an i7-3820, which doesn't have AVX2, only AVX

It works. I tested it on an i7 2nd gen (I forgot the exact model). Its just really slow if the CPU doesn't support AVX2. From my testing, it took about 30 minutes to generate a paragraph.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

fancellu avatar Apr 11 '23 20:04 fancellu

Just added AVX binary for Linux. It will be fixed in the next update (1.0.6). See commit c9b7a80

ItsPi3141 avatar May 07 '23 17:05 ItsPi3141

And windows too?

fancellu avatar May 08 '23 11:05 fancellu

And windows too?

Windows already has it

ItsPi3141 avatar May 08 '23 14:05 ItsPi3141

And windows too?

Windows already has it

Odd, doesn't work for me on my i7-3820

fancellu avatar May 08 '23 14:05 fancellu

Odd, doesn't work for me on my i7-3820

I have an i7 3rd gen too. And it works when I test it. Its probably really slow because of two reasons:

  1. If the model is on an HDD, then it takes a long time for it to load.

  2. AVX is just really slow.

ItsPi3141 avatar May 08 '23 14:05 ItsPi3141

Chat.exe crashes for me

image

Unhandled exception at 0x00007FF65423BFD2 in chat.exe: 0xC000001D: Illegal Instruction.

It it trying to run

C:\Users\Dino\AppData\Local\Programs\alpaca-electron\resources\app\bin\chat.exe

and not

C:\Users\Dino\AppData\Local\Programs\alpaca-electron\resources\app\bin\no_avx2\chat.exe

In fact if I copy the no_avx2 version over, it works fine. Slow, but works.

fancellu avatar May 08 '23 14:05 fancellu

Oh normally it will try to run avx2 first. Then if avx2 version crashes, it will relaunch with AVX instead. Maybe this process broke somehow. I'll look into it.

ItsPi3141 avatar May 08 '23 15:05 ItsPi3141