tflite-android-transformers
tflite-android-transformers copied to clipboard
GPT2 error : ByteBuffer is not a valid flatbuffer model
When I was clone & run your GPT2 example code, there are some runtime error when try to load model.
How can I run this code?
- tried tflite version : 2.0.0, 2.1.0, 2.3.0
- android sdk : 26
- run device : Android Emulator (x86)
==Error MSG==
Process: co.huggingface.android_transformers.gpt2, PID: 16252
java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model
at org.tensorflow.lite.NativeInterpreterWrapper.createModelWithBuffer(Native Method)
at org.tensorflow.lite.NativeInterpreterWrapper.