LlamaAdapterLora

A LoRA adapter loaded from a GGUF file. Freed automatically on destruction; you may also call free() early. The associated model must remain alive for the adapter's lifetime.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

free
void free()

Free the adapter early (safe to call multiple times).

metaKeyAt
string metaKeyAt(int index)

Metadata key name at index. Returns "" on failure.

metaVal
string metaVal(string key)

Metadata value by key. Returns "" on failure.

metaValAt
string metaValAt(int index)

Metadata value at index. Returns "" on failure.

opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

metaCount
int metaCount [@property getter]

Number of GGUF metadata entries.

ptr
llama_adapter_lora* ptr [@property getter]

Raw C pointer.

Meta