# README
go-llama.cpp
LLama.cpp golang bindings
Clone the repository locally:
git clone --recurse-submodules https://github.com/go-skynet/go-llama.cpp
To build the bindings locally, run:
cd go-llama.cpp
make libbinding.a
Then you can run the example with:
LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples -m "/model/path/here" -t 14
Enjoy!
License
MIT
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new PredictOptions object with the given options.
Create a new PredictOptions object with the given options.
No description provided by the author
SetContext sets the context size.
No description provided by the author
No description provided by the author
No description provided by the author
SetPenalty sets the repetition penalty for text generation.
SetRepeat sets the number of times to repeat text generation.
SetSeed sets the random seed for sampling text generation.
SetStreamFn sets the stream callback for text generation.
SetTemperature sets the temperature value for text generation.
SetThreads sets the number of threads to use for text generation.
SetTokens sets the number of tokens to generate.
SetTopK sets the value for top-K sampling.
SetTopP sets the value for nucleus sampling.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author