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

Support for Onnx format? #256

Open
mhjort opened this issue Sep 5, 2023 · 1 comment
Open

Support for Onnx format? #256

mhjort opened this issue Sep 5, 2023 · 1 comment

Comments

@mhjort
Copy link

mhjort commented Sep 5, 2023

Do you have plans for releasing trained models in Onnx format?

I tried to manually export the model mpt-1b-redpajama-200bto onnx format. Export generated lots of warnings like this:

 TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future.

and then when trying the exported model with onnxruntime I got the following error:

INVALID_GRAPH : Load model from open_flamingo.onnx failed:This is an invalid model. Type Error: Type 'tensor(bool)' of input parameter (/lang_encoder/Equal_output_0) of operator (CumSum)
@anas-awadalla
Copy link
Collaborator

Hello! We don't have plans to do this. I am personally not familiar with Onnx but we would welcome a PR 😄.

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