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

go-skynet/go-gpt4all-j.cpp

Repository files navigation

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

About

golang binding for gpt4all-j

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published