I simply tried running this code.
from transformers import BertForSequenceClassification, BertTokenizer
with this command. For 'GPU_ID' I used my GPU UUID, which wasn't wrong.
CUDA_VISIBLE_DEVICES='GPU_ID' python3 MNLI.py
Sometimes it works fine but sometimes this error pops up.
OMP: Error #179: Function Can't open SHM failed:
OMP: System error #0: Success
Aborted (core dumped)
How can I fix it? Any help is appreciated.