Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.03 KB

Go Reference go-gpt4all-j.cpp

This is a go binding for GPT4ALL-J.

This was originally developed by mudler for the LocalAI project.

Usage

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.

License

MIT