M2M100 support for ONNX export (#15193)

* Add M2M100 support for ONNX export

* Delete useless imports

* Add M2M100 to tests

* Fix protobuf issue
This commit is contained in:
Michael Benayoun
2022-03-02 04:03:14 -05:00
committed by GitHub
parent d1a29078c0
commit 4bfe75bd08
6 changed files with 177 additions and 29 deletions

View File

@@ -190,6 +190,7 @@ PYTORCH_EXPORT_SEQ2SEQ_WITH_PAST_MODELS = {
("mbart", "sshleifer/tiny-mbart"),
("t5", "t5-small"),
("marian", "Helsinki-NLP/opus-mt-en-de"),
("m2m-100", "facebook/m2m100_418M"),
}
TENSORFLOW_EXPORT_DEFAULT_MODELS = {