google-ai-edge / ai-edge-torch

Supporting PyTorch models with the Google AI Edge TFLite runtime.
Apache License 2.0
378 stars 51 forks source link

failed to convert 'SmolLM-135M' model to tflite. Error: 'tensorflow.lite.tools.flatbuffer_utils' has no attribute 'read_model_from_bytearray' #313

Closed merronmuche closed 2 weeks ago

merronmuche commented 1 month ago

Description of the bug:

we were trying to convert the SmolLM-135M model on Google Colab. During the conversion process, we encountered the following error: AttributeError: module 'tensorflow.lite.tools.flatbuffer_utils' has no attribute 'read_model_from_bytearray'

here is the full error message : smollm.txt

Actual vs expected behavior:

Actual: An attribute error was counted during the conversion process. Expected: The model should have been successfully converted without this error.

Any other information you'd like to share?

No response

pkgoogle commented 1 month ago

Hi @merronmuche, can you please provide a gist of what you are doing? (Save the colab copy as a gist).

github-actions[bot] commented 4 weeks ago

Marking this issue as stale since it has been open for 7 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days. Please post a new issue if you need further assistance. Thanks!