DenisovAV / flutter_gemma

The Flutter plugin allows running the Gemma AI model locally on a device from a Flutter application.
MIT License
55 stars 17 forks source link

Example app failed to generate response #28

Closed jasonjackson closed 2 weeks ago

jasonjackson commented 2 weeks ago

The example app successfully builds on the simulator (iPhone 16 Plus / iOS 18.1), but I'm unable to get a response and during the build have the following log:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Platform error: Failed to generate response: Failed to initialize LlmInference engine: INTERNAL: ; RET_CHECK failure (external/odml/odml/infra/genai/inference/utils/llm_utils/model_data.cc:315) modelError building tflite model.

Has anyone else encountered this? I've followed the steps but no luck.

Appreciate any help in advance!

jasonjackson commented 2 weeks ago

apologies for the noise, this was resolved by redownloading the model. after a new download, example app works perfectly.

thanks!