open_flamingo icon indicating copy to clipboard operation
open_flamingo copied to clipboard

Support for Onnx format?

Open mhjort opened this issue 1 year ago • 1 comments

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)

mhjort avatar Sep 05 '23 15:09 mhjort

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

anas-awadalla avatar Sep 19 '23 03:09 anas-awadalla