facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.6k stars 6.41k forks source link

how to convert nllb to onnx? #4657

Open hust-kevin opened 2 years ago

hust-kevin commented 2 years ago

I try to use optimum convert nllb to onnx, but get error

onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Deserialize tensor onnx::MatMul_3635 failed.tensorprotoutils.cc:637 TensorProtoToTensor External initializer: onnx::MatMul_3635 offset: 0 size to read: 16777216 given file_length: 4194304 are out of bounds or can not be read in full.
nickchomey commented 1 year ago

@hust-kevin did you ever succeed with this?