llama-crab
Safe, ergonomic and complete Rust bindings for llama.cpp.
This is the main crate of the llama-crab workspace. Most applications
should depend on this crate; use llama-crab-sys only
when you need direct access to raw llama.cpp symbols.
Quickstart
[]
= "0.1"
use ;
Features
- Text completion, chat completion, infill, embeddings and reranking.
- Sampling chains, grammar-constrained decoding, JSON-Schema to GBNF.
- Tool-call parsing for ChatML, Mistral, Llama 3, Functionary and plain JSON.
- Multimodal support (vision and audio) through
mtmd. - Hardware backends for CPU, Metal, CUDA, Vulkan, ROCm, OpenCL and KleidiAI.
- Mobile presets and packaging profiles for Android and iOS.
For the full feature table, backend flags and mobile build details, see the user guide.
Resources
License
Licensed under the MIT License.