Compare commits

...

4 Commits

Author SHA1 Message Date
95c4676c93 Release v0.4.0 2021-08-10 04:32:09 -04:00
6ffe974894 Little mention 2021-08-10 04:11:40 -04:00
44567077ad Update docs/source/quicktour.rst
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
2021-08-10 10:08:06 +02:00
d11d52264d DeepSpeed documentation 2021-08-10 03:55:42 -04:00
5 changed files with 20 additions and 4 deletions

View File

@ -25,7 +25,7 @@ copyright = "2020, The Hugging Face Team, Licenced under the Apache License, Ver
author = "huggingface"
# The short X.Y version
version = "0.4.0.dev0"
version = "0.4.0"
# -- General configuration ---------------------------------------------------

View File

@ -136,7 +136,7 @@ Supported integrations
- multi-GPU on several nodes (machines)
- TPU
- FP16 with native AMP (apex on the roadmap)
- DeepSpeed (experimental)
- DeepSpeed (experimental support)
.. toctree::
:maxdepth: 2

View File

@ -381,6 +381,22 @@ this:
lr_scheduler.step()
DeepSpeed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DeepSpeed support is experimental, so the underlying API will evolve in the near future and may have some slight
breaking changes. In particular, 🤗 Accelerate does not support DeepSpeed config you have written yourself yet, this
will be added in a next version.
One main caveat for the DeepSpeed integration is that the DeepSpeed launcher always passes a ``local_rank`` variable to
the training script, so your training script should accept it (whether you launch training with the DeepSpeed launcher
or ``accelerate launch``).
.. Warning::
The :func:`~accelerate.notebook_launcher` does not support the DeepSpeed integration yet.
Internal mechanism
-----------------------------------------------------------------------------------------------------------------------

View File

@ -37,7 +37,7 @@ extras["sagemaker"] = [
setup(
name="accelerate",
version="0.4.0.dev0",
version="0.4.0",
description="Accelerate",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",

View File

@ -2,7 +2,7 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
__version__ = "0.4.0.dev0"
__version__ = "0.4.0"
from .accelerator import Accelerator
from .kwargs_handlers import DistributedDataParallelKwargs, GradScalerKwargs