Closed Arman-IMRSV closed 3 years ago
Hi @Arman-IMRSV
Is it possible to follow this workaround in https://github.com/tensorflow/tensorflow/issues/45041#issuecomment-731268801 ?
@abattery I do not believe if it is possible to apply that solution here, as I am loading a pretrained model. Do you have any idea how I can apply that to this?
@abattery Do you have any suggested solution? I also had a look at converting ONNX to TFLite. It did not work either.
Do you think it is possible to follow the above suggestion in the conversion code from ONNX to TF?
@abattery I do not believe so. Again, in ONNX, we have the frozen graph. I do not think if we can apply that solution to this. Is there any other way around?
@TomWildenhain-Microsoft Is there a way to add the support for large models to TFLite conversion, similar to what you did for ONNX conversion in this PR?
@abattery Could you please let me know who I should request help from? Who has been in TFlite implementation to help, please?
The way we did this with the onnx converter is a bit of a hack, but it would probably work here. Just curious, why do you want to convert this model to tflite? Tflite is designed to run on low-power devices so I'm surprised you'd want to run such a huge model on it.
@TomWildenhain-Microsoft I intend to use mt5-base one mobile device for multi-lingual translation task. I know it's pretty big, but I believe I should be able to fit it on a mobile device after compression.
So you have any idea how to apply that hack here as well?
The ONNX-TFLite converter actually creates the corresponding TensorFlow graph from the given original model. Could you file a feature request towards the ONNX-TFLite converter in order to pull out of weights separately and use a saved model format for the weight serialization instead of inlining weights in the operator definitions in a single protobuf file like https://github.com/tensorflow/tensorflow/issues/45041#issuecomment-731268801?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
1. System information
2. Code
3. Error Message:
4. Note:
Thanks.