A utility package to scaffold PyTorch's DDP
Project description
DDPW
Distributed Data Parallel Wrapper (DDPW) is a lightweight wrapper that scaffolds PyTorch's (Distributed Data) Parallel.
This code is written in Python 3.10. The DDPW documentation contains details on how to use this package.
Overview
Installation
conda install -c tvsujal ddpw # with conda
pip install ddpw # with pip from PyPI
Usage
from ddpw import Platform, Wrapper
# some job
def run(global_rank, local_rank):
print(f'This is node {global_rank}, device {local_rank}')
# platform (e.g., 4 GPUs)
platform = Platform(device='gpu', n_gpus=4)
# wrapper
wrapper = Wrapper(platform=platform)
# start
wrapper.start(run)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ddpw-5.0.0.tar.gz
(9.5 kB
view details)
Built Distribution
ddpw-5.0.0-py3-none-any.whl
(9.9 kB
view details)
File details
Details for the file ddpw-5.0.0.tar.gz
.
File metadata
- Download URL: ddpw-5.0.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4293321d27aa45122c12fed47fa45fbdebe13c8c25078bc1f443225453049754 |
|
MD5 | 795c3a8cd8e3e5cc5271743ac7ebc503 |
|
BLAKE2b-256 | b22f42176df79986fb18c5df75c55a2abfb3900664f570d1c926c1a97a9fd364 |
File details
Details for the file ddpw-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: ddpw-5.0.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8575c71c1049916dd3721c53b0145ca89c5c2164de8b2ee94a1f546a8e7801f |
|
MD5 | 8e2e2e74d977ad3fc97fa8a287a7b3f1 |
|
BLAKE2b-256 | 1966ccef5c34162ad18bd862301b1a0291e6e1ca363791ccc106a5ab2950945c |