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

go-skynet/llama

 
 

Repository files navigation

Archived

Use: https://github.com/go-skynet/go-llama.cpp

llama-go

This is llama.cpp port in golang to use as a library.

Usage

git clone https://github.com/go-skynet/llama.git
cd llama
make libllama.a
LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples/main.go -m ggml-alpaca-7b-q4.bin -n 10

Model

For a tiny model, you can use https://github.com/antimatter15/alpaca.cpp . For how to use the prompt, check: https://github.com/tatsu-lab/stanford_alpaca

License

MIT

Acknowledgements

Packages

No packages published

Languages

  • C 78.7%
  • C++ 16.9%
  • Python 1.2%
  • Makefile 1.2%
  • CMake 1.0%
  • Go 0.9%
  • Shell 0.1%