#169 · Primary category: Inference & Local Deploy

llama.go

alpaca chatgpt dalai gpt gpt3 gpt4 gpt4all llama llama-cpp llm vicuna

llama.go is like llama.cpp in pure Golang!

Project last updated:09/20/24

GitHub Stars

1.4K

Forks

73

Contributors

3

License

Other

Why we included this project

Go developers who need to run LLaMA-style models without cgo or external subprocesses don't have many pure-Go options, and this project is one of the few. It reimplements llama.cpp's tensor math and model architecture in Go, so a single process can load GGML-era LLaMA checkpoints, run local inference, and expose a REST API through the built-in server mode. The multi-threading support and AVX2/NEON optimizations indicate serious attention to performance. That said, the project is essentially in maintenance mode: the author now points to a successor (FastTensors), and support for LLaMA 2, GGUF V3, and newer formats was never completed. So it's a good fit for understanding how an inference engine works in Go or for experimenting with early LLaMA models, not for running current open-weight releases in production.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category