DeepSpeed是一个深度学习优化库,它使分布式训练和推理变得简单、高效。

Olatunji Ruwase b0cba77652 Merge with saksham-zero1-fixes branch 3 年之前
DeepSpeedExamples @ fd869ae1c9 de0523d414 bump DSE (#317) 4 年之前
azure b84a1fa410 Web edits (#147) 4 年之前
bin 20ff66a0c1 Azure tutorial updates and cleanup (#43) 4 年之前
csrc 734d8991c8 Transformer kernel release (#242) 4 年之前
deepspeed 6a4db4bf1f Fix incorrect communication interval schema in checkpointing logic 3 年之前
docs 903a41a59d updates website gems after kramdown alert (#311) 4 年之前
tests cd68e6e55a Fix+tests for get_lr from lr_scheduler before training starts (#310) 4 年之前
third_party 3ce531c979 Upgrade apex version, turn off legacy fusion (#205) 4 年之前
.clang-format 734d8991c8 Transformer kernel release (#242) 4 年之前
.gitignore f2ac7eafd5 ZeRO-2 (#217) 4 年之前
.gitmodules 4ee043cd1c Updating DeepSpeedExamples to track master. (#44) 4 年之前
.pre-commit-config.yaml 734d8991c8 Transformer kernel release (#242) 4 年之前
.pylintrc 78bbde7711 submodule and style dot files 4 年之前
.style.yapf 78bbde7711 submodule and style dot files 4 年之前
CODE_OF_CONDUCT.md 42f3834f0d Initial CODE_OF_CONDUCT.md commit 4 年之前
CONTRIBUTING.md 4eb20eb574 Doc edits, typos, etc. (#53) 4 年之前
Dockerfile e50b8838e0 Fix nv_peer_mem version (#304) 4 年之前
LICENSE c72cb69012 Initial LICENSE commit 4 年之前
README.md 29c5fe2611 Add webinar link (#309) 4 年之前
SECURITY.md b8301c2c53 Initial SECURITY.md commit 4 年之前
azure-pipelines-docker.yml e6c37c043d Azure pipeline for docker image build (#78) 4 年之前
azure-pipelines.yml fba92f196e Hotfix ZeRO-1 memory/convergence fixes (#527) 3 年之前
basic_install_test.py 734d8991c8 Transformer kernel release (#242) 4 年之前
install.sh f5025506de install update: no-sudo + clean build files (#258) 4 年之前
requirements.txt e50b8838e0 Fix nv_peer_mem version (#304) 4 年之前
setup.py 871f7e6305 Update setup.py (#298) 4 年之前

README.md

Build Status Documentation Status License MIT Docker Pulls

DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.

10x Larger Models

10x Faster Training

Minimal Code Change

DeepSpeed can train deep learning models with over a hundred billion parameters on current generation of GPU clusters, while achieving over 10x in system performance compared to the state-of-art. Early adopters of DeepSpeed have already produced a language model (LM) with over 17B parameters called Turing-NLG, establishing a new SOTA in the LM category.

DeepSpeed is an important part of Microsoft’s new AI at Scale initiative to enable next-generation AI capabilities at scale, where you can find more information here.

For further documentation, tutorials, and technical deep-dives please see deepspeed.ai!

News

Table of Contents

Section Description
Why DeepSpeed? DeepSpeed overview
Features DeepSpeed features
Further Reading DeepSpeed documentation, tutorials, etc.
Contributing Instructions for contributing to DeepSpeed
Publications DeepSpeed publications

Why DeepSpeed?

Training advanced deep learning models is challenging. Beyond model design, model scientists also need to set up the state-of-the-art training techniques such as distributed training, mixed precision, gradient accumulation, and checkpointing. Yet still, scientists may not achieve the desired system performance and convergence rate. Large model sizes are even more challenging: a large model easily runs out of memory with pure data parallelism and it is difficult to use model parallelism. DeepSpeed addresses these challenges to accelerate model development and training.

Features

Below we provide a brief feature list, see our detailed feature overview for descriptions and usage.

Further Reading

All DeepSpeed documentation can be found on our website: deepspeed.ai

Article Description
DeepSpeed Features DeepSpeed features
Getting Started First steps with DeepSpeed
DeepSpeed JSON Configuration Configuring DeepSpeed
API Documentation Generated DeepSpeed API documentation
CIFAR-10 Tutorial Getting started with CIFAR-10 and DeepSpeed
Megatron-LM Tutorial Train GPT2 with DeepSpeed and Megatron-LM
BERT Pre-training Tutorial Pre-train BERT with DeepSpeed
Learning Rate Range Test Tutorial Faster training with large learning rates
1Cycle Tutorial SOTA learning schedule in DeepSpeed

Contributing

DeepSpeed welcomes your contributions! Please see our contributing guide for more details on formatting, testing, etc.

Contributor License Agreement

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Publications

  1. Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He. (2019) ZeRO: Memory Optimization Towards Training A Trillion Parameter Models. ArXiv:1910.02054