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 task
def task(global_rank, local_rank, args):
    print(f'This is GPU {global_rank}(G)/{local_rank}(L); args = {args}') 

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

# wrapper
wrapper = Wrapper(platform=platform)

# start
wrapper.start(task, ('example',))

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

Uploaded Source

Built Distribution

ddpw-5.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddpw-5.1.1.tar.gz
  • Upload date:
  • Size: 10.2 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.1.tar.gz
Algorithm Hash digest
SHA256 8d4429490a18f7d52b1f963e45741adb0ad66112c475785b6646f3bd2d4fa717
MD5 b3c3b8cb7fffd76fa4cb38cac853a520
BLAKE2b-256 3019fc7cf2f967d8b05aac3c30f775c542be78dddf2c393ccbd2803104434aed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddpw-5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81acc038f911867d9bf79c942c1b04f32e604315ba77634aaec95b0740868508
MD5 0701c32973a072e00d7fb4745019b17b
BLAKE2b-256 6b9bd36d61bdf7b010d3adbafe53612a5664a380db7cd62040fd6f4d03da2008

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