-
Notifications
You must be signed in to change notification settings - Fork 162
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: Input, output and indices must be on the current device #13
Comments
Thanks for the question. When I run my experiments I am only using a single GPU; |
Thank you for the advice. However, it doesn't work after adding CUDA_VISIBLE_DEVICES=0. |
I think it's probably models loaded to different GPUs. Since you currently still have n_gpu: 8, could you specify n_gpu to be 1 rather than 8. |
Thanks. I force the TrainingArguments.n_gpu=1 and it works! |
Hi, I met a RuntimeError when training a prefix model. Do you have any suggestions?
Here is the command line:
python train_e2e.py --optim_prefix yes --preseqlen 5 --epoch 5 --learning_rate 0.00005 --mode webnlg --bsz 5 --seed 101 --cache_dir ./cache
Here is the error information:
The text was updated successfully, but these errors were encountered: