Closed EliasLum closed 2 years ago
Is it the System call, or the .fit call?
Did you try pytorch-lightning without asteroid?
I don't have an M1 but more info can only help.
It is the system not the fit call. And i can import pytorch-lightning, i did not try out to run a training with lightning without asteroid however. It seems that this folder does not exist in my directory (while it is expecting it) /site-packages/torch/distributed/_remote_device
However i moved away from using my M1 machine for this issue, so i'll also not spend more time on figuring this out and rather just use another machine for now.
Asteroid installation for M1
I am currently trying to use Asteroid on an Apple M1 MacBook Air (Big Sur 11.5.2). On ARM python the Asteroid training runs into an error when using:
asteroid.engine.System()
The torch.distributed._remote_device attribute seems not to be found.
To Reproduce
I installed tensorflow as suggested by Apple through miniforge: https://github.com/apple/tensorflow_macos/issues/153
Then i installed torchaudio as suggested in this post: https://github.com/pytorch/audio/issues/1573#issuecomment-962412479
Then pytorch and torchvision as suggested by the documentation: https://pytorch.org/get-started/locally/
Finally i installed asteroid using pip.
Then when i run the getting started script locally i get the above error when running:
from asteroid.engine import System
system = System(model, optimizer, loss, trainLoader, valLoader)
Expected behavior
No Error message during the System call
Environment
Package versions
asteroid-versions
:output of:
python version: