TorchElastic
TorchElastic allows you to launch distributed PyTorch jobs in a fault-tolerant and elastic manner. For the latest documentation, please refer to our website.
Requirements
torchelastic requires
- python3 (3.8+)
- torch
- etcd
Installation
pip install torchelastic
Quickstart
Fault-tolerant on 4 nodes, 8 trainers/node, total 4 * 8 = 32 trainers.
Run the following on all nodes.
python -m torchelastic.distributed.launch
--nnodes=4
--nproc_per_node=8
--rdzv_id=JOB_ID
--rdzv_backend=etcd
--rdzv_endpoint=ETCD_HOST:ETCD_PORT
YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...)
Elastic on 1 ~ 4 nodes, 8 trainers/node, total 8 ~ 32 trainers. Job
starts as soon as 1 node is healthy, you may add up to 4 nodes.
python -m torchelastic.distributed.launch
--nnodes=1:4
--nproc_per_node=8
--rdzv_id=JOB_ID
--rdzv_backend=etcd
--rdzv_endpoint=ETCD_HOST:ETCD_PORT
YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...)
Contributing
We welcome PRs. See the CONTRIBUTING file.
License
torchelastic is BSD licensed, as found in the LICENSE file.
Metadata
Release files for torchelastic 0.2.2
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 |
|---|---|---|---|---|
| torchelastic-0.2.2.tar.gz | 90.7 kB | Without provenance | Details for torchelastic-0.2.2.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchelastic-0.2.2-py3.8.egg | Legacy Egg format | - | - | Details for torchelastic-0.2.2-py3.8.egg |
| torchelastic-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for torchelastic-0.2.2-py3-none-any.whl |
Total release size: 448.0 kB
Release files / torchelastic-0.2.2.tar.gz
| Download URL | torchelastic-0.2.2.tar.gz |
|---|---|
| Size | 90.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd214aa807bf50120ff7a6544fd6b12a7996bf4767438998242f8b8b6959e11f
|
|
BLAKE2b-256 checksum How to use checksums |
4fb56b598fe8881a2de40e5a01100ab5932c8b791b9249ccc99c0d5006443c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.4
|
Release files / torchelastic-0.2.2-py3.8.egg
| Download URL | torchelastic-0.2.2-py3.8.egg |
|---|---|
| Size | 245.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cb4f1d7844987ba95fa09ef00774f09ab3a5bf0ffeb61a4b330ca0d3fcbc1f74
|
|
BLAKE2b-256 checksum How to use checksums |
becc9e30a540a55a568673bfef28ed74c8e155ab82f9f3a1d72a26d45cf4dfc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.4
|
Release files / torchelastic-0.2.2-py3-none-any.whl
| Download URL | torchelastic-0.2.2-py3-none-any.whl |
|---|---|
| Size | 111.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99c9f67f371c73e4c80b1ec71c36be91e5fdd106edcf4c848415bf55cfed6416
|
|
BLAKE2b-256 checksum How to use checksums |
0fcfa1c438dce530fee452acbce43a561c1cbbd8c158a1766b927184a1692fee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.4
|
Security for torchelastic 0.2.2
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.