Skip to main content

A lightweight wrapper that scaffolds PyTorch's (Distributed Data) Parallel.

Project description

DDPW

AWS S3 Conda PyPI

Publish documentation to AWS S3 Publish to Anaconda Publish to PyPI


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, args):
    print(f'This is node {global_rank}, device {local_rank}; args = {args}') 

# platform (e.g., 4 GPUs)
platform = Platform(device='gpu', n_gpus=4)

# wrapper
wrapper = Wrapper(platform=platform)

# start
wrapper.start(run, (0, 'example', [0.1, 0.2], {'a': 0}))

Project details


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.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

ddpw-5.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ddpw-5.1.0.tar.gz.

File metadata

  • Download URL: ddpw-5.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ddpw-5.1.0.tar.gz
Algorithm Hash digest
SHA256 b2b55b85f6972c06255535d814c8ce211240dc69b2a031077a73cc416aa5560f
MD5 6ac03b4b9dd1ccdcc3fdd70ff6d57de5
BLAKE2b-256 573bf47b9297c5d6ee138ad0a17ce7f1a309b9c605e9bf202c1ee95b03687fcc

See more details on using hashes here.

File details

Details for the file ddpw-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: ddpw-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ddpw-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14c6c004640f693fc093b62724f503beb4a81ad83bbcd11d3a29220cfbea84e6
MD5 395d78da4ed61e785f7d004412d04d45
BLAKE2b-256 bc3a15a4f0b00f742c711dd13cc2636f2d121ce9861ffd2529cffd7fa35d6ea5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page