You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I just use one decoder.onnx instead of one decoder.onnx and decoder_with_past.onnx? It takes up more space. If possible, can you modify and provide a version of the code. Thank you very much.
The text was updated successfully, but these errors were encountered:
Hello @Pengjie-W,
If I am not wrong, using a single decoder makes the inference much slower. I am not sure to make another version for this very soon, so I suggest you the following workaround.
You can overload the class OnnxPredictor and remove the lines involving decoder_with_past and adapt the generating loop. For example, you can replace the lines
Can I just use one decoder.onnx instead of one decoder.onnx and decoder_with_past.onnx? It takes up more space. If possible, can you modify and provide a version of the code. Thank you very much.
The text was updated successfully, but these errors were encountered: