I can’t open iCloud…
In any case, I don’t think the cause is Transoformers, as it doesn’t usually cause a SegFault. I think the cause is PyTorch (especially version 2.3, which should not be used in practice…) or the underlying environment. For example, in the case of Apple MPS, there may be compatibility issues with iPython or Jupyter or so.
https://stackoverflow.com/questions/71338821/segmentation-fault-python-after-import-torch-on-mac-m1
https://stackoverflow.com/questions/77812375/pytorch-error-on-mps-apple-silicon-metal