llama-cpp-2

Crates.iollama-cpp-2
lib.rsllama-cpp-2
version0.1.83
sourcesrc
created_at2024-01-02 20:12:07.908089
updated_at2024-10-29 16:43:39.620867
descriptionllama.cpp bindings for Rust
homepage
repositoryhttps://github.com/utilityai/llama-cpp-rs
max_upload_size
id1086604
size180,541
Marcus Dunn (MarcusDunn)

documentation

README

llama-cpp-rs-2

A wrapper around the llama-cpp library for rust.

Info

This is part of the project powering all the LLMs at utilityai, it is tightly coupled llama.cpp and mimics its API as closly as possible while being safe in order to stay up to date.

Dependencies

This uses bindgen to build the bindings to llama.cpp. This means that you need to have clang installed on your system.

If this is a problem for you, open an issue, and we can look into including the bindings.

See bindgen for more information.

Disclaimer

This crate is not safe. There is absolutly ways to misuse the llama.cpp API provided to create UB, please create an issue if you spot one. Do not use this code for tasks where UB is not acceptable.

This is not a simple library to use. In an ideal world a nice abstraction would be written on top of this crate to provide an ergonomic API - the benefits of this crate over raw bindings is safety (and not much of it as that) and not much else.

We compensate for this shortcoming (we hope) by providing lots of examples and good documentation. Testing is a work in progress.

Contributing

Contributions are welcome. Please open an issue before starting work on a non-trivial PR.

Commit count: 835

cargo fmt