Python-pytorch slow

  • Open
  • quality assurance status badge
Details
2 participants
  • Cayetano Santos
  • Spencer Skylar Chan
Owner
unassigned
Submitted by
Cayetano Santos
Severity
normal
C
C
Cayetano Santos wrote on 7 Aug 2023 16:50
(address . bug-guix@gnu.org)
87bkfi29ck.fsf@inventati.org
Hi guix,

I just noticed that the following line (latest guix, as for today)

guix shell -C --emulate-fhs --network python python-pytorch python-torchvision -- python3 quickstart_tutorial.py

with


is noticeably slower than the version of the torch suite provided by
conda, for example.

Thanks,

Cayetano Santos
S
S
Spencer Skylar Chan wrote on 9 Aug 2023 16:01
(address . 65127@debbugs.gnu.org)
CAOEsZhR4Dvy5V4FpSpT_Ojn9_C=yF+a8VJRJCi3jpXwUzA5hEA@mail.gmail.com
Hi Cayento,

Pytorch in Guix is not built with GPU support, so it will always use
the CPU even if a GPU is available. You can check the configuration
with =guix shell python-pytorch python -- python3 -c 'import torch;
print(torch.__config__.show())'=

Best,
Skylar
C
C
Cayetano Santos wrote on 23 Aug 2023 14:21
(address . bug-guix@gnu.org)
87o7iyne31.fsf@inventati.org
Toggle quote (15 lines)
>lun. 07 août 2023 at 16:50, Cayetano Santos <csantosb@inventati.org> wrote:

> Hi guix,
>
> I just noticed that the following line (latest guix, as for today)
>
> guix shell -C --emulate-fhs --network python python-pytorch python-torchvision -- python3 quickstart_tutorial.py
>
> with
>
> https://raw.githubusercontent.com/pytorch/tutorials/main/beginner_source/basics/quickstart_tutorial.py
>
> is noticeably slower than the version of the torch suite provided by
> conda, for example.

By this I meant when only using CPU, not GPU.

C.
?