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

Any ideas on how we can convert a model from huggingface (transformers library )to tensorflow lite? #17

Open
BENSAFOUAN-Abdelhalim opened this issue Oct 26, 2022 · 0 comments

Comments

@BENSAFOUAN-Abdelhalim
Copy link

I want to convert this model to tensoflow lite i download it from here, because when i want to save the model locally it gives me the model with 'bin' format.

when i try to convert the model it gives me this error : AttributeError: 'CamembertForQuestionAnswering' object has no attribute 'call' by using tf_model.h5 file.
Also i can't load it using : tf.keras.models.load_model() it gives me : ValueError: No model config found in the file at <tensorflow.python.platform.gfile.GFile object at 0x7f27cceb1810>.
when i want to save the transformers model locally it gives me the model with 'bin' format, so i download it from the platform.

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

1 participant