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

runtimeerror #2

Open
sdws258 opened this issue Jul 31, 2022 · 7 comments
Open

runtimeerror #2

sdws258 opened this issue Jul 31, 2022 · 7 comments

Comments

@sdws258
Copy link

sdws258 commented Jul 31, 2022

python 3.7
pytorch 1.10.1+cu111
gcc 5.4.0

I have modified the cloneable.h file according to the FAQs section, but I still encounter the following error when the program is running. Moreover, I have tried to run this code under gcc==7.5.0, the same error appears. Please tell me how can i fix it?
Uploading 截屏2022-07-31 下午3.09.29.png…

@sdws258
Copy link
Author

sdws258 commented Jul 31, 2022

截屏2022-07-31 下午3 09 29

@hzhwcmhf
Copy link
Member

@sdws258 Try removing this line

extra_include_paths=[os.path.join(module_path, "../../cub")],

If it works well, I will update a patch to fix the issue

@bbo0924
Copy link

bbo0924 commented Aug 2, 2022

@sdws258 Try removing this line

extra_include_paths=[os.path.join(module_path, "../../cub")],

If it works well, I will update a patch to fix the issue

It looks good to me

@sdws258
Copy link
Author

sdws258 commented Aug 3, 2022

@sdws258 Try removing this line

extra_include_paths=[os.path.join(module_path, "../../cub")],

If it works well, I will update a patch to fix the issue

yeah, it works

@sdws258 sdws258 closed this as completed Aug 3, 2022
@sdws258 sdws258 reopened this Aug 3, 2022
@sdws258
Copy link
Author

sdws258 commented Aug 3, 2022

I'm sorry that I have another question:
I run the DAG on IWSLT14 ENDE raw data, it appears one warning and causes one error:
截屏2022-08-03 下午9 24 47

截屏2022-08-03 下午9 25 26

Moreover, i find there is no result of IWSLT14 in DAG paper. Please tell me the result of it and how to fix the above problem in DAG.

@hzhwcmhf
Copy link
Member

hzhwcmhf commented Aug 4, 2022

max-source-positions and max-target-positions specify the max length of the samples. You should set it according to your dataset.
If you want to train with a sample whose target length is 132, max-target-positions should be set at least \lambda * 132, i.e., 1056 or larger if lambda=8.
Moreover, dropping some examples does not satisfy the length limitation is normal behavior (your 1st screenshot). But we usually don't drop valid or test samples for fair evaluation (2nd screenshot).

We do not have an official result on IWSLT14 for now. It will be appreciated if you can train a model and tell us your result.

@myaxxxxx
Copy link

myaxxxxx commented Nov 7, 2023

Hi, I also encountered the same question, and I solved it by using "python /path/to/fairseq_cli/dagprocess.py" and "python /path/to/fairseq_cli/train.py". I recommend you to use this command.

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

4 participants