FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Using llama64.lib with Harbour
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Using llama64.lib with Harbour
Posted: Tue Mar 26, 2024 10:13 PM
Thanks to Alexander Kressin:

git clone https://gitflic.ru/project/alkresin/llama_prg.git

to build it:

go.bat
Code (fw): Select all Collapse
@setlocal
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
cl -c -TP -Ic:\harbour\include -Illama.cpp -Illama.cpp\common /EHsc source\hllama.cpp
cl -c -TP -Illama.cpp -Illama.cpp\common /EHsc llama.cpp\llama.cpp
cl -c -Illama.cpp -Illama.cpp\common /EHsc llama.cpp\ggml.c llama.cpp\ggml-alloc.c llama.cpp\ggml-backend.c llama.cpp\ggml-quants.c llama.cpp\common\sampling.cpp llama.cpp\common\common.cpp llama.cpp\common\grammar-parser.cpp llama.cpp\common\build-info.cpp
lib /OUT:llama64.lib hllama.obj llama.obj ggml.obj ggml-alloc.obj ggml-backend.obj ggml-quants.obj sampling.obj common.obj grammar-parser.obj build-info.obj
@endlocal
to build the examples:
Code (fw): Select all Collapse
@setlocal
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
c:\harbour\bin\win\msvc64\hbmk2.exe test1.prg -lllama64
@endlocal
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Using llama64.lib with Harbour
Posted: Wed Mar 27, 2024 10:53 AM
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Using llama64.lib with Harbour
Posted: Wed Mar 27, 2024 11:04 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Using llama64.lib with Harbour
Posted: Wed Mar 27, 2024 11:11 AM

We are checking it with Alexander as it is running very slow, and we don't know why yet

Llama.cpp main.exe runs much faster

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Using llama64.lib with Harbour
Posted: Thu Mar 28, 2024 12:16 PM

Some provider block .ru.

Continue the discussion