open_flamingo
open_flamingo copied to clipboard
Support for Onnx format?
Do you have plans for releasing trained models in Onnx format?
I tried to manually export the model mpt-1b-redpajama-200b
to 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)
Hello! We don't have plans to do this. I am personally not familiar with Onnx but we would welcome a PR 😄.