You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I got the same problem and I solve it by adding Truncation=True and max_length=[max_len] in two encode functions:
As far as I can see this is just a warning message to inform you that the input text is too long, but it doesn't affect the training result, only the output is a bit annoying.
below is my parameters,how counld I fix it
!python "/content/drive/MyDrive/pet-master/cli.py" --method pet
--pattern_ids 0 1 2 3 4
--data_dir "/content/drive/MyDrive/pet-master/data/yahoo_answers_csv"
--model_type roberta
--model_name_or_path roberta-large
--task_name yahoo
--output_dir "/content/drive/MyDrive/pet-master/output_dir"
--do_train
--do_eval
--pet_max_seq_length 1500
--sc_max_seq_length 1500
The text was updated successfully, but these errors were encountered: