setModelPath method

  1. @override
Future<void> setModelPath(
  1. String path, {
  2. String? loraPath,
})
override

Sets the path to the model and lora weights files and installs them. Use this method to manage the files manually.

Model should be loaded before initialization.

This method can be safely called multiple times. Model and lora weights will be loaded only if they doesn't exist.

To reload the model, call deleteModel first. To reload the lora weights, call deleteLoraWeights first.

Implementation

@override
Future<void> setModelPath(String path, {String? loraPath}) {
  _path = path;
  _loraPath = loraPath;
  return Future.value();
}