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, group, 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.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

ddpw-5.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddpw-5.2.0.tar.gz
Algorithm Hash digest
SHA256 936c21d284b6e9033f6e62f9b2632e37ed2e7c6cb9510cd145a26a4856c0aaf2
MD5 5ad2dde606eaa57285f3f52ba055295c
BLAKE2b-256 2e337e201b0b570ad6216993d2b8a22e72aece6104acf5778c20024b50bed956

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddpw-5.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 425684a20e4a7a028f81d4959430bd3d9be459eb7a765637cebb740fe4314d2c
MD5 da48feffff4234baf06a573f6f157cb5
BLAKE2b-256 b051bf31bfa7ffd2be4c7f736b42c2cc86e4c8131d1450625fdc875a21f549dc

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