InferenceModelSpec class

Specification for inference models (main model + optional LoRA)

Inheritance

Constructors

InferenceModelSpec.new({required String name, required String modelUrl, String? loraUrl, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})

Properties

files List<ModelFile>
All files that belong to this model
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether this model specification is valid
no setterinherited
loraFilename String?
no setter
loraUrl String?
no setter
modelFilename String
no setter
modelUrl String
Convenience getters for backward compatibility
no setter
name String
Human-readable name for this model
no setteroverride
replacePolicy ModelReplacePolicy
Policy for replacing old models
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ModelManagementType
Type of this model
no setteroverride

Methods

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