-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong translation of the Helsinki-NLP/opus-mt-es-en encoder and decoder in ONNX #26523
Comments
I opened PRs for the models that were affected online, mostly big and base models. Now the conversion script just needs to be updated to reflect this change! |
I don't consider it done yet since I since the script needs a bit of rework. I'll share the script I used to get the correct checkpoints and automatically update them gist |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers
version: 4.28.1Who can help?
@ArthurZucker
I have exported the model Helsinki-NLP/opus-mt-es-en in onnx to translate spanish to english with this command:
optimum-cli export onnx --model Helsinki-NLP/opus-mt-es-en D:\\Marian
With that command I get the encoder and decoder. However, I get a wrong translate in my python program, I was wondering if you can help me to adress my problem.
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Export command:
optimum-cli export onnx --model Helsinki-NLP/opus-mt-es-en D:\\Marian
Program:
Expected behavior
The output:
The novel Crime and Punishment is divided into six parts plus the epilogue. Much has been commented on the notion of dualism in the work, suggesting the existence of a certain degree of symmetry in it. Key episodes are first distributed in one half and then again in the other.
However, the current output is:
Crime Crime Punishment is divided six parts more epi.... of of,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
The text was updated successfully, but these errors were encountered: