Model I am using (Bert, XLNet ...): Bert
Language I am using the model on (English, Chinese ...): English
The problem arises when using:
The tasks I am working on is:
Steps to reproduce the behavior:
1.import torch
2.import transformers
3.torch.rand(4,5)
import torch
import transformers
torch.rand(4,5)
I got an error 'segmentation fault (core dumped)' while trying to generate a tensor after importing transformers, but if I removed 'import transformers', the tensor could be generated.

transformers version: 2.11.0Hi, I believe this error may be due to the sentencepiece version 0.1.92 which causes a segmentation fault..
Hi, I believe this error may be due to the sentencepiece version 0.1.92 which causes a segmentation fault..
Thank you very much, this error disappeared when sentencpiece was downgraded to 0.1.91.
BTW, is there some debugging method to find this root cause when we encounter segmentation fault?
Not that I know of :man_shrugging:
It works. GREAT!!!!
The error still persists after 6 months. Maybe the version 0.1.91 should be hardcoded in package requirements
It was for the last 3.x versions. For version 4.x onwards, sentencepiece is not a requirement anymore.
Most helpful comment
Hi, I believe this error may be due to the sentencepiece version 0.1.92 which causes a segmentation fault..