This is a go binding for GPT4ALL-J.
This was originally developed by mudler for the LocalAI project.
Note: This repository uses git submodules to keep track of GPT4ALL-J.
Clone the repository locally:
git clone --recurse-submodules https://github.com/go-skynet/go-gpt4all-j.cpp
To build the bindings locally, run:
cd go-gpt4all-j.cpp
make libgptj.a
Now you can run the example with:
LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples -m "/model/path/here" -t 14
Enjoy!
The documentation is available here and the full example code is here.
MIT