Segmentation faults are occurring with torch 1.12 and at least macOS. See this PR on transformers for more info - https://github.com/huggingface/transformers/pull/17925