LoraApi class
LoRA adapters applied on top of the loaded model.
Constructors
- LoraApi()
-
Bind the namespace. Reach it through
RunAnywhere.lora.const
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
-
apply(
String adapterId, {double? scale}) → Future< void> -
Apply the registered adapter
adapterIdatscale. -
catalog(
{String? modelId}) → Future< List< LoraAdapterCatalogEntry> > -
Catalogued adapters, optionally narrowed to those compatible with
modelId. -
download(
LoraAdapterCatalogEntry adapter, ModelInfo artifact, {void onProgress(double progress)?}) → Future< String> -
Fetch
adapter's weights (described byartifact) and return their local path. -
list(
) → Future< LoraState> - Adapters currently applied to the loaded model.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
LoraAdapterCatalogEntry adapter, ModelInfo artifact) → Future< void> -
Add
adapterto the LoRA catalog and register its downloadableartifact. -
remove(
[String? adapterId]) → Future< void> -
Remove
adapterId. -
removeAll(
) → Future< void> - Remove every applied adapter.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited