BackendModelFormatRouting class abstract
Optional backend capability for loading a model in an explicitly chosen ModelFormat instead of the format the backend would detect.
The engine calls these methods to load a source whose ModelSource.format
is set. A backend without this interface loads only the format of the
runtime that BackendRuntimeIdentity reports; any other format throws
LlamaUnsupportedException.
Constructors
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
-
modelLoadAs(
String path, ModelParams params, ModelFormat format) → Future< int> -
Loads the local model at
pathasformat. -
modelLoadFromUrlAs(
String url, ModelParams params, ModelFormat format, {void onProgress(double progress)?}) → Future< int> -
Loads the model at
urlasformat. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited