项目
在 GitHub 查看
cnstark/pytorch-docker
关于
纯 PyTorch Docker 镜像。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Pytorch Docker Images
Pure pytorch docker images with different os, cuda, and python versions.
Github: https://github.com/cnstark/pytorch-docker
Docker Hub: https://hub.docker.com/r/cnstark/pytorch
Changelog
- 2024/10/10: Support for pytorch 2.1.x 2.2.x 2.3.x 2.4.x (I'm back).
- 2023/07/10: Support for pytorch 2.0.1.
- 2023/05/04: Support for pytorch 2.0.
Usage
Preparation
- Docker
- Nvidia-docker (If a CUDA is required)
Use pytorch docker
As same as Pytorch Official.
docker run -it --rm \
--gpus all \
--net host
-v /path/to/project:/path/to/project \
-v /path/to/dataset:/path/to/dataset \
cnstark/pytorch:[TAG]
Note: /path/to/project and /path/to/dataset is your own project path and dataset path, should be replaced in use.
Image List (More images are on the way ~)
2.4.1
2.4.0
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.2
1.10.1
1.10.0
1.9.1
1.9.0
1.8.1
1.8.0
1.7.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.2.0
Other Images
Generate Build Script
Generate build script by following command (available versions see Available Versions):
python generate_build_script.py --os <ubuntu or centos> --os-version <e.g. 20.04, 8> --python <e.g. 3.9.12> --pytorch <e.g. 1.9.1> --cuda <e.g. 11.1, cpu>
usage: generate_build_script.py [-h] --os OS --os-version OS_VERSION --python PYTHON --pytorch PYTORCH [--cuda CUDA] [--cuda-flavor CUDA_FLAVOR]
Generate docker build script.
optional arguments:
-h, --help show this help message and exit
--os OS Operating system.
--os-version OS_VERSION
Operating system version.
--python PYTHON Python version.
--pytorch PYTORCH Pytorch version.
--cuda CUDA CUDA version, `cpu` means CPU version.
--cuda-flavor CUDA_FLAVOR
CUDA flavor, `runtime` or `devel`, default is None, means use base image
Build Pytorch Docker Image
scripts/build_xxx.sh
Commit the Version (Optional)
If you want to build and release specific versions using github actions, you can fork this repository and submit a pull request. The pull request should include only scripts/build_xxx.sh and .github/workflows/docker_build_xxx.yml generated by generate_build_script.py
Available Versions
OS Versions
| OS | OS version |
|---|---|
| Ubuntu | 22.04, 20.04, 18.04, 16.04, 14.04 |
| CentOS | 8, 7, 6 |
CUDA Versions
| CUDA | CuDNN | OS(version) |
|---|---|---|
| 11.8 | 8 | Ubuntu(22.04, 20.04, 18.04), CentOS(7) |
| 11.7 | 8 | Ubuntu(22.04, 20.04, 18.04), CentOS(7) |
| 11.6 | 8 | Ubuntu(20.04, 18.04), CentOS(7) |
| 11.3 | 8 | Ubuntu(20.04, 18.04, 16.04), CentOS(8, 7) |
| 11.2 | 8 | Ubuntu(20.04, 18.04, 16.04), CentOS(8, 7) |
| 11.1 | 8 | Ubuntu(20.04, 18.04, 16.04), CentOS(8, 7) |
| 11.0 | 8 | Ubuntu(18.04, 16.04), CentOS(8, 7) |
| 10.2 | 7 | Ubuntu(18.04, 16.04), CentOS(8, 7, 6) |
| 10.1 | 7 | Ubuntu(18.04, 16.04, 14.04), CentOS(7, 6) |
| 10.0 | 7 | Ubuntu(18.04, 16.04, 14.04), CentOS(7, 6) |
| 9.2 | 7 | Ubuntu(16.04, 14.04), CentOS(7, 6) |
Pytorch Versions
| Version | CUDA/CPU |
|---|---|
| 2.0.1 | cpu, 11.8, 11.7 |
| 2.0.0 | cpu, 11.8, 11.7 |
| 1.13.1 | cpu, 11.7, 11.6 |
| 1.13.0 | cpu, 11.7, 11.6 |
| 1.12.1 | cpu, 11.6, 11.3, 10.2 |
| 1.12.0 | cpu, 11.6, 11.3, 10.2 |
| 1.11.0 | cpu, 11.3, 10.2 |
| 1.10.2 | cpu, 11.3, 10.2 |
| 1.9.1 | cpu, 11.1, 10.2 |
| 1.9.0 | cpu, 11.1, 10.2 |
| 1.8.1 | cpu, 11,1, 10.2, 10.1 |
| 1.8.0 | cpu, 11.1, 10.2 |
| 1.7.1 | cpu, 11.0, 10.2, 10.1, 9.2 |
| 1.7.0 | cpu, 11.0, 10.2, 10.1, 9.2 |
| 1.6.0 | cpu, 10.2, 10.1, 9.2 |
| 1.5.1 | cpu, 10.2, 10.1, 9.2 |
| 1.5.0 | cpu, 10.2, 10.1, 9.2 |
| 1.4.0 | cpu, 10.1, 9.2 |
| 1.2.0 | cpu, 10.0, 9.2 |
探索相关项目
加载中…