UnderstandingNLP icon indicating copy to clipboard operation
UnderstandingNLP copied to clipboard

how can i run inference on tflite model

Open shahzebali42 opened this issue 4 years ago • 1 comments

I have convert a hugging face pytorch masked language model using your notebook,it worked awesome. Now i am unable to use the converted tflite model for inference?

example: original model took input as a sentence for e.g "I'm a student at of london". the model returned the answer : I'm a student at university of london.

shahzebali42 avatar Dec 03 '21 13:12 shahzebali42

Hi @ShahzebAli42, I checked this issue, If we run on GPU the run time is crashing in colab. On CPU if you wanna run TFLite inference for MLM task you can use code like this notebook

bhadreshpsavani avatar Dec 07 '21 08:12 bhadreshpsavani