@YuyaHori

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

cuda12.2に対応したpytorch環境を構築したい

dockerを用いてpytorchの機械学習用のdevelのimageを作成したいのですが、cuda12.2の環境にあったpytorch/pytorchのタグがなくて困っています。cudaのバージョンを変えることはできないのですが、どのようにしたら良いでしょうか?
初学者なので検討外れな質問をしているかもしれませんが、そうでしたらそこも含めて教えてくださると幸いです。

参考:pytorch/pytorchのdockerhub
https://hub.docker.com/r/pytorch/pytorch/tags?page=&page_size=&ordering=&name=

0 likes

9Answer

Python 3.10 Pytorch 2.1.0 でいいならですが、NVIDIA NGC の pytorch はいかがでしょうか?
nvidia-container-toolkit が必要です。

下記の pytorch が使用できます。

nvcr.io/nvidia/pytorch:23.10-py3 がCUDA 12.2.2
nvcr.io/nvidia/pytorch:23.09-py3 がCUDA 12.2.1です。

1Like

Comments

  1. @YuyaHori

    Questioner

    回答ありがとうございます。
    重ねての質問になってしまって申し訳ないのですが、その環境を構築したいとき、Dockerfileにどのように記述すれば良いのか良ければ教えていただきたいです。

  2. NVIDIAがイメージを配布しているので、基本的には下記のように実行する感じですね。

    $ docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:23.10-py3
    

    上記のOverviewを確認していただければ、大体の使い方はわかると思います。

This answer has been deleted for violation of our Terms of Service.

This answer has been deleted for violation of our Terms of Service.

@slope game 特定の CUDA バージョン用の公式 pytorch/pytorch タグがない場合、CUDA 12.2 で PyTorch 用のカスタム Docker イメージを作成するには、どのような手順を踏めばよいでしょうか?

0Like

Comments

  1. CUDA12.2でPyTorchを独自にビルドして、pipパッケージを作成したものを使用し、カスタムDockerイメージを作成する手順になると思います。

This answer has been deleted for violation of our Terms of Service.

他に使える代替アプリはあるのでしょうか? Docker を使用して Pytorch 機械学習を開発することは、@Scratch Games 実際には人気のあるアプローチです。一緒に新しいスキルを学んで楽しみましょう

0Like

This answer has been deleted for violation of our Terms of Service.

This answer has been deleted for violation of our Terms of Service.

Your answer might help someone💌