GithubHelp home page GithubHelp logo

leonardxie / pytorch-multi-gpu-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hongxinxiang/pytorch-multi-gpu-training-tutorial

0.0 0.0 0.0 59.02 MB

pytorch多GPU训练总结

License: MIT License

Python 100.00%

pytorch-multi-gpu-training's Introduction

Multi-GPU training tutorial based on PyTorch

News!

[2022/08/04] Chinese blogs completed

[2022/07/23] Chinese blogs are starting to be updated on 闪闪红星闪闪@知乎

[2022/07/20] Repository installation completed

Environment Installation

1. GPU environment

Ubuntu 18.04
CUDA 10.1
Python==3.7.3
PyTorch==1.8.1

2. Create a new conda environment

conda create -n pytorch-multi-GPU-training-tutorial python=3.7.3
conda activate pytorch-multi-GPU-training-tutorial

3. Download some packages

pip install https://download.pytorch.org/whl/cu101/torch-1.8.1%2Bcu101-cp37-cp37m-linux_x86_64.whl
pip install https://download.pytorch.org/whl/cu101/torchvision-0.9.1%2Bcu101-cp37-cp37m-linux_x86_64.whl

4. Run demo

To run the tutorial, please click the link below:

  1. Run single-machine-and-single-GPU.py

  2. Run single-machine-and-multi-GPU-DataParallel.py

  3. Run single-machine-and-multi-GPU-DistributedDataParallel-launch.py

  4. Run single-machine-and-multi-GPU-DistributedDataParallel-mp.py

Chinese Tutorial (闪闪红星闪闪@知乎)

The following tutorials are being published:

  1. 教程 | PyTorch 多 GPU 训练 - 入门与实践
  2. PyTorch 多GPU训练实践 (1) - 单机单 GPU
  3. PyTorch 多GPU训练实践 (2) - DP 代码修改
  4. PyTorch 多GPU训练实践 (3) - DDP 入门
  5. PyTorch 多GPU训练实践 (4) - DDP 进阶
  6. PyTorch 多GPU训练实践 (5) - DDP-torch.distributed.launch 代码修改
  7. PyTorch 多GPU训练实践 (6) - DDP-torch.multiprocessing 代码修改
  8. PyTorch 多GPU训练实践 (7) - slurm 集群安装
  9. PyTorch 多GPU训练实践 (8) - DDP- slurm 代码修改

pytorch-multi-gpu-training's People

Contributors

hongxinxiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.