Unverified Commit 5812e845 authored by Shaden Smith's avatar Shaden Smith Committed by GitHub
Browse files

readthedocs yaml configuration (#410)


Co-authored-by: default avatarJeff Rasley <jerasley@microsoft.com>
parent 4fef478f
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*~ *~
*.swp *.swp
*.log *.log
deepspeed/git_version_info.py deepspeed/git_version_info_installed.py
# Build + installation data # Build + installation data
build/ build/
......
# Required
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/code-docs/source/conf.py
fail_on_warning: false
# Optionally build your docs in additional formats such as PDF
formats:
- pdf
# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: requirements/requirements-readthedocs.txt
try:
# This is populated by setup.py
from .git_version_info_installed import *
except ModuleNotFoundError:
# Will be missing from checkouts that haven't been installed (e.g., readthedocs)
version = '0.3.0+[none]'
git_hash = '[none]'
git_branch = '[none]'
installed_ops = {
'lamb': False,
'transformer': False,
'sparse-attn': False,
'cpu-adam': False
}
...@@ -10,7 +10,7 @@ DeepSpeed's training engine provides hybrid data and pipeline parallelism and ...@@ -10,7 +10,7 @@ DeepSpeed's training engine provides hybrid data and pipeline parallelism and
can be further combined with model parallelism such as can be further combined with model parallelism such as
[Megatron-LM](https://github.com/NVIDIA/Megatron-LM). [Megatron-LM](https://github.com/NVIDIA/Megatron-LM).
An illustration of An illustration of
3D parallelism is shown below. Our latest [results](linklinklink) 3D parallelism is shown below. Our latest [results]({{ site.press_release_v3 }})
demonstrate that this 3D parallelism enables training models with over a demonstrate that this 3D parallelism enables training models with over a
**trillion** parameters. **trillion** parameters.
......
sphinx
recommonmark
sphinx-rtd-theme
...@@ -34,6 +34,7 @@ autodoc_member_order = 'bysource' ...@@ -34,6 +34,7 @@ autodoc_member_order = 'bysource'
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'recommonmark', 'recommonmark',
'sphinx_rtd_theme', 'sphinx_rtd_theme',
] ]
...@@ -78,11 +79,4 @@ add_module_names = True ...@@ -78,11 +79,4 @@ add_module_names = True
autoclass_content = 'both' autoclass_content = 'both'
autodoc_mock_imports = [ autodoc_mock_imports = ["torch", "apex", "mpi4py", "tensorboardX", "numpy"]
"torch",
"apex",
"mpi4py",
"tensorboardX",
"deepspeed_transformer_cuda",
"deepspeed_stochastic_transformer_cuda",
]
DeepSpeed
=========
.. automodule:: deepspeed
:members:
:undoc-members:
:show-inheritance:
...@@ -28,7 +28,6 @@ Optimizer Step ...@@ -28,7 +28,6 @@ Optimizer Step
-------------- --------------
.. autofunction:: deepspeed.DeepSpeedEngine.step .. autofunction:: deepspeed.DeepSpeedEngine.step
Gradient Accumulation Gradient Accumulation
--------------------- ---------------------
.. autofunction:: deepspeed.DeepSpeedEngine.is_gradient_accumulation_boundary .. autofunction:: deepspeed.DeepSpeedEngine.is_gradient_accumulation_boundary
...@@ -137,7 +137,7 @@ rm_if_exist() { ...@@ -137,7 +137,7 @@ rm_if_exist() {
if [ "$no_clean" == "0" ]; then if [ "$no_clean" == "0" ]; then
# remove deepspeed build files # remove deepspeed build files
rm_if_exist deepspeed/git_version_info.py rm_if_exist deepspeed/git_version_info_installed.py
rm_if_exist dist rm_if_exist dist
rm_if_exist build rm_if_exist build
rm_if_exist deepspeed.egg-info rm_if_exist deepspeed.egg-info
......
...@@ -2,3 +2,6 @@ pytest ...@@ -2,3 +2,6 @@ pytest
pytest-forked pytest-forked
pre-commit pre-commit
clang-format clang-format
sphinx
recommonmark
sphinx-rtd-theme
...@@ -297,7 +297,7 @@ else: ...@@ -297,7 +297,7 @@ else:
git_hash = "unknown" git_hash = "unknown"
git_branch = "unknown" git_branch = "unknown"
print(f"version={VERSION}+{git_hash}, git_hash={git_hash}, git_branch={git_branch}") print(f"version={VERSION}+{git_hash}, git_hash={git_hash}, git_branch={git_branch}")
with open('deepspeed/git_version_info.py', 'w') as fd: with open('deepspeed/git_version_info_installed.py', 'w') as fd:
fd.write(f"version='{VERSION}+{git_hash}'\n") fd.write(f"version='{VERSION}+{git_hash}'\n")
fd.write(f"git_hash='{git_hash}'\n") fd.write(f"git_hash='{git_hash}'\n")
fd.write(f"git_branch='{git_branch}'\n") fd.write(f"git_branch='{git_branch}'\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment