Skip to content
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

Conversion innaccuracy specific Opus-MT model #2068

Open
2 of 4 tasks
FricoRico opened this issue Oct 18, 2024 · 0 comments
Open
2 of 4 tasks

Conversion innaccuracy specific Opus-MT model #2068

FricoRico opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FricoRico
Copy link

System Info

python==3.12.4

onnxruntime==1.19
onnxruntime-tools==1.7

optimum[exporters]==1.22
transformers==4.44

Who can help?

@michaelbenayoun @JingyaHuang @echarlaix

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction (minimal, reproducible, runnable)

I'm converting several Opus-MT (translation) models to ONNX format, after which I validate the model by doing a translation. I've noticed weird behavior with Helsinki-NLP/opus-tatoeba-en-ja specifically. When running the model the output keeps repeating the same tokens several times. I suspect this might have something to do with the torch model being in float16 format, whilst all other models I have tried are in float32. See torch_dtype in config.json.

Input sentence:

The company revealed three deals, including an investment in startup X-Energy and two development agreements that aim to add around 300 megawatts worth of capacity in both the Pacific Northwest and Virginia, two data center hotspots.

Output sentence:
同社 3 件 スタートアップ スタートアップ スタートアップ 2015 同社 同社 同社 同社 同社 同社 3 件 3 件 3 件 株式 3 件 スタートアップ 3 件 スタートアップ 3 件 スタートアップ 3 件 スタートアップ 3 件 スタートアップ 3 件 スタートアップ 3 件 スタートアップ 3 件 3

Expected behavior

Just like converting to and from other languages I expect the input sentence to be correctly translated into an output sentence.

@FricoRico FricoRico added the bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant