DDPW
Distributed Data Parallel Wrapper (DDPW) is a lightweight Python wrapper for PyTorch users.
DDPW handles basic logistical tasks such as creating threads on GPUs/SLURM nodes, setting up inter-process communication, etc., and provides simple, default utility methods to move modules to devices and get dataset samplers, allowing the user to focus on the main aspects of the task. It is written in Python 3.12. The documentation contains details on how to use this package.
Overview
Installation
# with uv
# to instal and add to pyroject.toml
uv add [--active] ddpw
# or to simply instal
uv pip install ddpw
# with pip
pip install ddpw
Examples
With the decorator wrapper
from ddpw import Platform, wrapper
platform = Platform(device="gpu", n_cpus_per_node=32, mem_per_node=64, n_gpus_per_node=4, verbose=True)
@wrapper(platform)
def run(*args, **kwargs):
# global and local ranks, and the process group in:
# kwargs['global_rank'], # kwargs['local_rank'], kwargs['group']
pass
if __name__ == '__main__':
run(*args, **kwargs)
As a callable
from ddpw import Platform, Wrapper
# some task
def run(*args, **kwargs):
# global and local ranks, and the process group in:
# kwargs['global_rank'], # kwargs['local_rank'], kwargs['group']
pass
if __name__ == '__main__':
# platform (e.g., 4 GPUs)
platform = Platform(device='gpu', n_gpus_per_node=4)
# wrapper
wrapper = Wrapper(platform=platform)
# start
wrapper.start(task, *args, **kwargs)
Metadata
Release files for ddpw 6.2.0.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ddpw-6.2.0.post2.tar.gz | 13.1 kB | Without provenance | Details for ddpw-6.2.0.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ddpw-6.2.0.post2-py3-none-any.whl | Python 3 | none | any | Details for ddpw-6.2.0.post2-py3-none-any.whl |
Total release size: 28.3 kB
Release files / ddpw-6.2.0.post2.tar.gz
| Download URL | ddpw-6.2.0.post2.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8413cc17e4755b94095b65536c014f8d9e2bb28be98ca0e0dba68a43336b2848
|
|
BLAKE2b-256 checksum How to use checksums |
814a649feaee3204583191c7bcb0cdeef6cc4353b593bf00786c58dffbd861d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ddpw-6.2.0.post2-py3-none-any.whl
| Download URL | ddpw-6.2.0.post2-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae9ceedff9870d555d497299174ff0c14be218c0ecac1c908c9547f9e6f14ae7
|
|
BLAKE2b-256 checksum How to use checksums |
bf854a01aed661dcb8edd2e102056fea4ba12f61ac0cfefab93bf82d8041c564
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ddpw 6.2.0.post2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.