installInferenceModel static method

InferenceInstallationBuilder installInferenceModel()

Start building an inference model installation

Returns type-safe builder for installing inference models with optional LoRA weights. The model will be automatically set as the active inference model after installation.

Example:

await FlutterGemma.installInferenceModel()
  .fromNetwork('https://example.com/model.task', token: 'hf_...')
  .withProgress((p) => print('$p%'))
  .install();

// With LoRA weights
await FlutterGemma.installInferenceModel()
  .fromNetwork('https://example.com/model.task')
  .withLoraFromNetwork('https://example.com/lora.bin')
  .install();

Implementation

static InferenceInstallationBuilder installInferenceModel() {
  return InferenceInstallationBuilder();
}