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

Error with English to French Backtranslation #339

Open
alejopaullier96 opened this issue Jul 14, 2023 · 0 comments
Open

Error with English to French Backtranslation #339

alejopaullier96 opened this issue Jul 14, 2023 · 0 comments

Comments

@alejopaullier96
Copy link

I have defined a Back Translation model the following way:

model = naw.BackTranslationAug(from_model_name="Helsinki-NLP/opus-mt-en-fr",
                               to_model_name="Helsinki-NLP/opus-mt-fr-en",
                               device="cuda",
                               batch_size=config.BATCH_SIZE,
                               max_length=1024)

I later augment a list of texts using:

augmented_texts = model.augment(list(texts))

From time to time I get this warning which makes the code fail:

/usr/local/src/pytorch/aten/src/ATen/native/cuda/Indexing.cu:649: indexSelectSmallIndex: block: [1,0,0], thread: [0,0,0] Assertion `srcIndex < srcSelectDimSize` failed.

This is the error:

RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1

I do not know if I am defining the BackTranslationAug model correctly. I used Helsinki-NLP models as said in the documentation. Any help regarding this matter is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant