hasktorch / hasktorch-datasets

5 stars 1 forks source link

Pytorch doesn't work on macos. #2

Open junjihashimoto opened 3 years ago

junjihashimoto commented 3 years ago

It seems that we can not get pytorch or transformer on macos. https://github.com/hasktorch/hasktorch-datasets/pull/1

junjihashimoto commented 3 years ago

There is no binary hash for macos. https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pytorch/binary-hashes.nix

tscholak commented 3 years ago

it's marked as broken on Darwin, https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pytorch/default.nix#L311

tscholak commented 3 years ago

oh, I see my name there, I guess I have to solve it ;)

junjihashimoto commented 3 years ago

If the cause of the broken is a dll symbol, this may fix it. https://github.com/hasktorch/libtorch-nix/blob/main/libtorch/generic.nix#L21-L39

junjihashimoto commented 3 years ago

So at this point, cache.nixos.org doesn't have pytorch cache for macos.

tscholak commented 3 years ago

issues persist after switching to poetry2nix: https://github.com/nix-community/poetry2nix/issues/337