PHP 8 bindings to llama.cpp
using FFI
it's WIP
Tested on PHP 8.1.2 on linux.
compile_libllama.php
will automatically :
- clone and pull llama.cpp ;
- generate/update
llama.ffi.h
andllama.ffi.php
; - compile one or several versions of
libllama.so
(see config parameters into the script) ;
Todo :
- create
llama.class.php