Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i run inference on tflite model #2

Open
shahzebali42 opened this issue Dec 3, 2021 · 1 comment
Open

how can i run inference on tflite model #2

shahzebali42 opened this issue Dec 3, 2021 · 1 comment

Comments

@shahzebali42
Copy link

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.

@bhadreshpsavani
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants