DeepSpeed/docs
Samyam Rajbhandari 0ad4fd880b
Update zero.md tutorial (#495)
* Update zero.md

Update to ZeRO tutorial to specify the use of activation checkpointing

* Update zero-offload.md

Use activation checkpointing with ZeRO-Offload

Co-authored-by: Jeff Rasley <jerasley@microsoft.com>
2020-11-11 15:29:02 -08:00
..
_data PLD documentation (#514) 2020-11-09 12:20:02 -08:00
_layouts DeepSpeed webinar announcement (#301) 2020-07-24 22:13:11 -07:00
_pages Add CPUAdam optimizer for zero-offload in deepspeed engine (#484) 2020-10-30 09:01:04 -07:00
_posts PLD release (#513) 2020-11-10 12:53:50 -08:00
_tutorials Update zero.md tutorial (#495) 2020-11-11 15:29:02 -08:00
assets Landing page updates (#395) 2020-09-10 02:04:17 -07:00
code-docs Add CPUAdam optimizer for zero-offload in deepspeed engine (#484) 2020-10-30 09:01:04 -07:00
news Web edits (#146) 2020-03-17 18:23:59 -07:00
404.html drafting Jekyll webpage (#143) 2020-03-17 13:49:48 -07:00
CNAME Restoring CNAME (#145) 2020-03-17 14:27:07 -07:00
Gemfile drafting Jekyll webpage (#143) 2020-03-17 13:49:48 -07:00
Gemfile.lock updating website dependencies (#475) 2020-10-19 16:11:22 -07:00
README.md Update installation instructions (#362) 2020-09-06 08:59:48 -07:00
_config.yml Update _config.yml 2020-09-10 13:07:08 -07:00
contributing.md Improving deepspeed.ai website (#269) 2020-06-23 17:13:01 -07:00
index.md PLD release (#513) 2020-11-10 12:53:50 -08:00

README.md

DeepSpeed Documentation

This directory includes the source code for the website and documentation of DeepSpeed. The code-docs/ directory is used to build deepspeed.readthedocs.io.

deepspeed.ai is the recommended way to read all DeepSpeed documentation. Directly viewing the Markdown files in this directory will not include images and other features.

Building the documentation locally

You can serve the DeepSpeed website locally. This is especially useful for development.

Prerequisites

The DeepSpeed website relies on Jekyll. There are several guides for installation. The instructions below assume you are in an Ubuntu environment and have been tested on WSL.

First ensure that you have the necessary packages (e.g., make and zlib).

sudo apt-get install build-essential zlib1g-dev ruby-full

Add these lines to your .bashrc or equivalent to ensure you have permissions to install Ruby packages without sudo.

export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"

Don't forget to source ~/.bashrc afterwards 😊.

Now we can install Jekyll and Bundler:

gem install jekyll bundler

Start a local webserver

We now need to install the required Ruby packages for the website.

NOTE: you should change to this folder (i.e., docs) before running the installation command to avoid this error:

Could not locate Gemfile

NOTE: this step frequently hangs when connected to a VPN (including MSVPN). Simply disconnect for the package installation.

bundle install

You can now start a local webserver via:

bundle exec jekyll serve

The website should now be accessible at http://localhost:4000