简体   繁体   中英

Sagemaker Studio Lab GPU not working with pytorch

I can't get the GPU to work even though i chose the GPU option with 4 hours at the start. Is there something to do in order to activate it?

在此处输入图像描述

edit:

I installed pytorch with cuda: %conda install pytorch torchvision torchaudio cudatoolkit=11.4 -c pytorch

Could you try building a custom environment via the YAML file option, using something like this (below is just an example file that works for me, you can add remove packages specific to your use case)

name: torch
channels:
    - pytorch
dependencies:
  - python=3.9
  - pip
  - pip:
    - ipywidgets
  - conda
  - conda:
    - ipykernel
    - pytorch
    - torchvision
    - torchaudio
    - torchserve
    - cudatoolkit=11.3
    - sklearn

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM