ddpw-4.1.0


توضیحات

A utility package to scaffold PyTorch's DDP
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل ddpw-4.1.0
نام ddpw
نسخه کتابخانه 4.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sujal T.V.
ایمیل نویسنده -
آدرس صفحه اصلی https://ddpw.projects.sujal.tv
آدرس اینترنتی https://pypi.org/project/ddpw/
مجوز -
# DDPW [![AWS S3](https://img.shields.io/badge/documentation-sphinx-blue?link=https://ddpw.projects.sujal.tv)](https://ddpw.projects.sujal.tv) [![Conda](https://img.shields.io/conda/v/tvsujal/ddpw)](https://anaconda.org/tvsujal/ddpw) [![PyPI](https://img.shields.io/pypi/v/ddpw)](https://pypi.org/project/ddpw/) [![Publish documentation to AWS S3](https://github.com/sujaltv/ddpw/actions/workflows/s3_publish.yaml/badge.svg)](https://github.com/sujaltv/ddpw/actions/workflows/s3_publish.yaml) [![Publish to Anaconda](https://github.com/sujaltv/ddpw/actions/workflows/conda_publish.yaml/badge.svg)](https://github.com/sujaltv/ddpw/actions/workflows/conda_publish.yaml) [![Publish to PyPI](https://github.com/sujaltv/ddpw/actions/workflows/pypi_publish.yaml/badge.svg)](https://github.com/sujaltv/ddpw/actions/workflows/pypi_publish.yaml) --- **Distributed Data Parallel Wrapper (DDPW)** is created as a utility package to encapsulate the scaffolding for PyTorch's Distributed Data Parallel. This code is written in Python. The [DDPW documentation](https://ddpw.projects.sujal.tv) contains details on how to use this package. ## Overview ### Installation ```bash conda install -c tvsujal ddpw # with conda pip install ddpw # with pip from PyPI ``` ### Usage ```python from ddpw.platform import Platform, PlatformConfig from ddpw.artefacts import ArtefactsConfig from ddpw.job import JobConfig, JobMode from ddpw.wrapper import Wrapper from torchvision.datasets.mnist import MNIST from src import MyModel, MyTrainer # dataset train_set = MNIST(root='./data/MNSIT', train=True) # platform p_config = PlatformConfig(platform=Platform.GPU, n_gpus=4, cpus_per_task=2) # model and dataset a_config = ArtefactsConfig(train_set=train_set, model=MyModel()) # call the job wrapper = Wrapper(p_config, a_config) wrapper.start(MyTrainer()) ```


نیازمندی

مقدار نام
>=1.22.2 numpy
>=1.2.1 submitit
>=2.0.0 torch


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl ddpw-4.1.0:

    pip install ddpw-4.1.0.whl


نصب پکیج tar.gz ddpw-4.1.0:

    pip install ddpw-4.1.0.tar.gz