BackendLoraSupport class abstract

Optional backend capability for runtime LoRA adapters.

LlamaEngine LoRA calls throw LlamaUnsupportedException on a backend without it. A backend whose support depends on its runtime, such as the loaded bridge assets or a routed delegate, implements it and throws LlamaUnsupportedException or UnsupportedError from a call that runtime cannot run.

Constructors

BackendLoraSupport()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearLoraAdapters(int contextHandle) → Future<void>
Stops applying every LoRA adapter of contextHandle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLoraAdapter(int contextHandle, String path) → Future<void>
Stops applying the LoRA adapter at path.
setLoraAdapter(int contextHandle, String path, double scale) → Future<void>
Applies the LoRA adapter at path with scale, or changes the scale of one already applied from path.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited