I followed the website instructions:
pip install transformers torch accelerate
After the installation, the following code works
import torch
But, the performance was slow in Mac M1. I then installed
pip install pytorch
Without any code modification, the program seems okay.
Are torch and pytorch totally different? Is torch a warp library for lua's torch?