simpletransformers: RuntimeError: CUDA error: device-side assert triggered while eval
Describe the bug
I trained a distilbert model for Classification. Now when I try to use the model to eval or predict I get a RuntimeError: CUDA error: device-side assert triggered
To Reproduce
Steps to reproduce the behavior:
Train a model using the params ClassificationModel('distilbert', 'distilbert-base-uncased', num_labels=len(df_bert_train['labels'].unique()), args={'reprocess_input_data': True, 'overwrite_output_dir': True, 'max_seq_length': 64, 'train_batch_size':16, 'fp16':False, 'num_train_epochs': 10})
Desktop (please complete the following information):
- Linux
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (7 by maintainers)
@ThilinaRajapakse Hi, Just letting you know that I faced the same error ‘RuntimeError: CUDA error: device-side assert triggered’ today with the latest version(0.22.0). After trying a lot of things to overcome it, I tried a lower version of simpletransformers(0.20.0) in the end and it worked. I was trying this example: https://towardsdatascience.com/simple-transformers-introducing-the-easiest-bert-roberta-xlnet-and-xlm-library-58bf8c59b2a3
Thanks a lot for the great wrapper 😃