0

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?

Ajeet Verma
  • 2,938
  • 3
  • 13
  • 24
SBMVNO
  • 582
  • 3
  • 13
  • 1
    This [answer](https://stackoverflow.com/a/75836941/10732351) should cover all of your questions. – CuCaRot Aug 01 '23 at 05:17

0 Answers0