-
Notifications
You must be signed in to change notification settings - Fork 412
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 with SMART #229
Comments
I have the same issue. Have you fixed it ? |
@namisan when set adv_train, I also have this issue. Do you have any solution?
|
can you share me your python/pytorch version? You can direct pull my docker to run the experiment. |
hi @namisan torch 1.9.1 and python 3.8.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to finetune on STS-B using SMART like follows:
python ../train.py --task_def ../experiments/glue/glue_task_def.yml --data_dir ${DATA_DIR} --init_checkpoint ${BERT_PATH} --batch_size ${BATCH_SIZE} --output_dir ${model_dir} --log_file ${log_file} --train_datasets ${train_datasets} --test_datasets ${test_datasets} --adv_train --adv_opt 1
The following error pops out.
RuntimeError: Boolean value of Tensor with more than one value is ambiguous'
I think the problem is that at line 106 of perturbation.py:
The arguments do not match the forward function at line 165 in matcher.py:
I think the 'y_input_ids' is missing in perturbation.py but I am not sure how to fix it. Any solutions or suggestions? Thanks!
The text was updated successfully, but these errors were encountered: