Oobleck
Resilient Distributed Training Framework
Oobleck is a large-model training framework with fast fault recovery support utilizing the concept of pipeline templates.
It is the first training framework that realizes:
- Dynamic reconfiguration: Oobleck can reconfigure distributed training configurtation without restart after failures.
- Pipeline template instantiation: Oobleck pre-generates a set of pipeline templates, and then combine their instantiated pipelines to form a distributed execution plan. The same set of pipeline templates is reused and different pipelines are instantiated after failures.
Getting Started
Install
Use pip to install Oobleck:
pip install oobleck
Oobleck relies on cornstarch for pipeline template and Colossal-AI for training backend.
Optionally, install apex, xformers and flash-attn to boost throughput (follow instructions in each README).
Run
Please refer to this README.
Cluster Management
Oobleck provides a command line interface (CLI) that manages the cluster. Use oobleck to access the master agent:
$ oobleck --ip <master_ip> --port <master_port> <command> <command_options>
where master port can be found in stdout of running:
| INFO | __main__:serve:430 - Running master service on port 45145
Currently you can see the list of agents and send a request to gracefully terminate an agent:
$ oobleck --ip <master_ip> --port <master_port> get_agent_list
=== Agents ===
[0] IP: node1:10000 Status: up (device indices: 0,1)
[1] IP: node1:10000 Status: up (device indices: 2,3)
[2] IP: node2:10000 Status: up (device indices: 0,1)
[3] IP: node2:10000 Status: up (device indices: 2,3)
==============
$ oobleck --ip <master_ip> --port <master_port> kill_agent --agent_index 2
| INFO | __main__:KillAgent:340 - Terminating agent 2 on node1:10000
Citation
@inproceedings{oobleck-sosp23,
title = {Oobleck: Resilient Distributed Training of Large Models Using Pipeline Templates},
author = {Jang, Insu and Yang, Zhenning and Zhang, Zhen and Jin, Xin and Chowdhury, Mosharaf},
booktitle = {ACM SIGOPS 29th Symposium of Operating Systems and Principles (SOSP '23)},
year = {2023},
}
Metadata
Release files for oobleck 0.1.1
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 |
|---|---|---|---|---|
| oobleck-0.1.1.tar.gz | 34.3 kB | Without provenance | Details for oobleck-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oobleck-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.28+ x86-64 | Details for oobleck-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl |
Total release size: 980.9 kB
Release files / oobleck-0.1.1.tar.gz
| Download URL | oobleck-0.1.1.tar.gz |
|---|---|
| Size | 34.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c061c7012a52477f3ede642c616f4f425e7c081acec4dc40719ca55687a849f
|
|
BLAKE2b-256 checksum How to use checksums |
f2fdad26205344f09c5361542e3a48ed2ea7b4c5682890fd071f3463faa05e76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / oobleck-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | oobleck-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 946.6 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b9765947dc7c620104f1437e6d6bef014beb9fc4d0c06c56b96304456d678abe
|
|
BLAKE2b-256 checksum How to use checksums |
77bef97212c07bce6ff9b73037cbf20d19875fc7c59845b70046edb2d66838c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for oobleck 0.1.1
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.