Skip to content

Qitmeer/llama.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llama.go

Go bindings to llama.cpp

Installation

make sure you have git golang cmake gcc make installed on the system to build.

  • Build from source
~ git clone https://github.com/Qitmeer/llama.go.git
~ cd llama.go
~ make

Get model

Local startup

~ ./llama --model=./qwen2.5-0.5b-q8_0.gguf --prompt=天空为什么是蓝的

Or enable interactive mode to run:

~ ./llama --model=./qwen2.5-0.5b-q8_0.gguf -i

As the startup of the server

~ ./llama --model=./qwen2.5-0.5b-q8_0.gguf
  • Supports two access modes: grpc and regular REST API:
~ curl -s -k -X POST -H 'Content-Type: application/json' --data '{"prompt":"天空为什么是蓝的"}' http://127.0.0.1:8081/v1/generate

About

Go bindings to llama.cpp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •