Home

Awesome

LlamaCpp

TODO: Add description

Installation

If available in Hex, the package can be installed by adding llama_cpp to your list of dependencies in mix.exs:

def deps do
  [
    {:llama_cpp, "~> 0.1.0"}
  ]
end

Usage

 {:ok, llama} = LLamaCpp.new("./models/mistral-7b-instruct-v0.1.Q5_K_M.gguf")
 LLamaCpp.predict(llama, "hello my name is")
 LLamaCpp.embeddings(llama, "hello my name is")
 LLamaCpp.free_model(llama)