Skip to main content

Module lora

Module lora 

Source
Expand description

LoRA adapters (llama_lora_adapter_*).

Mirrors llama-cpp-2’s LoRA API (crate::model::LlamaModel::lora_adapter_init and the LlamaContext::lora_adapter_* methods), adapted for ik_llama.cpp’s older C API: ik exposes per-adapter llama_lora_adapter_set / _remove / _clear over an llama_lora_adapter handle, whereas modern stock llama.cpp replaced these with llama_set_adapters_lora over an llama_adapter_lora type.

Structs§

LlamaLoraAdapter
A safe wrapper around llama_lora_adapter.

Enums§

LlamaLoraAdapterInitError
An error that can occur when initializing a lora adapter.
LlamaLoraAdapterRemoveError
An error that can occur when removing a lora adapter from a context.
LlamaLoraAdapterSetError
An error that can occur when setting a lora adapter on a context.