Engines#
Engines are the means by which kani interact with language models. As you’ve seen, kani comes with a few engines included:
Model Name |
Extra |
Capabilities |
Engine |
---|---|---|---|
GPT-3.5-turbo, GPT-4 |
|
🛠️ 📡 |
|
Claude, Claude Instant |
|
🛠️ 📡 |
|
🤗 transformers[4] |
|
(runtime) |
|
🤗 🦙 LLaMA 3 |
|
🔓 🖥 🚀 |
|
🤗 Mistral, Mixtral |
|
🛠️ 🔓 🖥 🚀 |
|
🤗 Command R, Command R+ |
|
🛠️ 🔓 🖥 🚀 |
|
🤗 🦙 LLaMA v2 |
|
🔓 🖥 🚀 |
|
🤗 🦙 Vicuna v1.3 |
|
🔓 🖥 🚀 |
|
llama.cpp[4] |
|
(runtime) |
|
🦙 LLaMA v2 (GGUF) |
|
🔓 🖥 🚀 |
Additional models using the classes above are also supported - see the model zoo for a more comprehensive list of models!
Legend
🛠️: Supports function calling.
🔓: Open source model.
🖥: Runs locally on CPU.
🚀: Runs locally on GPU.
📡: Hosted API.
In this section, we’ll discuss how to implement your own engine to use any language model or API you can think of.
Tip
Built an engine for a model kani doesn’t support yet? kani is OSS and ❤️ PRs with engine implementations for the latest models - see Contributing.