Skip to content

Commit 46d2e28

Browse files
brettkooncejeffra
andauthored
docs: minor spelling tweaks (deepspeedai#623)
Co-authored-by: Jeff Rasley <jerasley@microsoft.com>
1 parent d38ad6a commit 46d2e28

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/_pages/features.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ DeepSpeed.
7979

8080
### Optimizer State and Gradient Partitioning
8181
Optimizer State and Gradient Partitioning in ZeRO reduces the memory consumption of the
82-
model states (optimizer states, gradients and parmaeters) by 8x compared to standard
82+
model states (optimizer states, gradients and parameters) by 8x compared to standard
8383
data parallelism by partitioning these states across data parallel process instead of
8484
replicating them.
8585

@@ -150,8 +150,8 @@ Please see the [core API doc](https://deepspeed.readthedocs.io/) for more detail
150150

151151
### Activation Checkpointing API
152152

153-
DeepSpeed's Activation Checkpoinitng API supports activation checkpoint partitioning,
154-
cpu checkpoiniting, and contiguous memory optimizations, while also allowing layerwise
153+
DeepSpeed's Activation Checkpointing API supports activation checkpoint partitioning,
154+
cpu checkpointing, and contiguous memory optimizations, while also allowing layerwise
155155
profiling. Please see the [core API doc](https://deepspeed.readthedocs.io/) for more details.
156156

157157

@@ -190,7 +190,7 @@ NVIDIA, or any training optimizer that extends torch's `torch.optim.Optimizer` c
190190
We introduce an efficient implementation of Adam optimizer on CPU that improves the parameter-update
191191
performance by nearly an order of magnitude. We use the AVX SIMD instructions on Intel-x86 architecture
192192
for the CPU-Adam implementation. We support both AVX-512 and AVX-2 instruction sets. DeepSpeed uses
193-
AVX-2 by defualt which can be switched to AVX-512 by setting the build flag, `DS_BUILD_AVX512` to 1 when
193+
AVX-2 by default which can be switched to AVX-512 by setting the build flag, `DS_BUILD_AVX512` to 1 when
194194
installing DeepSpeed. Using AVX-512, we observe 5.1x to 6.5x speedups considering the model-size between
195195
1 to 10 billion parameters with respect to torch-adam.
196196

docs/_posts/2020-09-08-sparse-attention-news.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ DeepSpeed offers sparse attention kernels, an instrumental technology to support
1212
* Brief overview, see our [press release]({{ site.press_release_v3 }}).
1313
* Detailed technology deep dive, see our [blog post](https://www.deepspeed.ai/news/2020/09/08/sparse-attention.html).
1414
* Tutorial on how to use sparse attention, see our [Sparse attention tutorial](https://www.deepspeed.ai/tutorials/sparse-attention/).
15-
* The source code for our sparse attention kernels can be found in the [DeepSpeed repo](https://github.com/microsoft/deepspeed) and BERT pre-training code useing sparse attention can be found in the [DeepSpeedExamples repo](https://github.com/microsoft/deepspeedexamples).
15+
* The source code for our sparse attention kernels can be found in the [DeepSpeed repo](https://github.com/microsoft/deepspeed) and BERT pre-training code using sparse attention can be found in the [DeepSpeedExamples repo](https://github.com/microsoft/deepspeedexamples).

docs/_tutorials/onebit-adam.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Alternatively, we show how the standard `mpirun` launcher can be used for launch
120120
mpirun -np [#processes] -ppn [#GPUs on each node] -hostfile [hostfile] [MPI flags] bash run_squad_mpi_onebitadam.sh
121121
```
122122
123-
For example, in order to use 32 GPUs (4GPUs/node, 8 nodes in total), with the support of InfiniBand, you can use the `mpirun` launcher packaged with the MVAPICH2 library. Please run the folowing command:
123+
For example, in order to use 32 GPUs (4GPUs/node, 8 nodes in total), with the support of InfiniBand, you can use the `mpirun` launcher packaged with the MVAPICH2 library. Please run the following command:
124124
125125
```shell
126126
mpirun -np 32 -ppn 4 -hostfile hosts -env MV2_USE_CUDA=1 -env MV2_SUPPORT_DL=1 -env MV2_ENABLE_AFFINITY=0 -env MV2_SMP_USE_CMA=0 bash run_squad_mpi_onebitadam.sh
@@ -166,7 +166,7 @@ We fixed the learning rate to 3e-5. The table below shows the F1 and the EM scor
166166
167167
***Training Speed and Scalability:***
168168
169-
1-bit Adam enables up to 2.7x overall speedup in training speed for SQuAD fine-tuning. This is made possible by up to 6.2x faster througput during the compressed stage of the algorithm as shown in Figure 1.
169+
1-bit Adam enables up to 2.7x overall speedup in training speed for SQuAD fine-tuning. This is made possible by up to 6.2x faster throughput during the compressed stage of the algorithm as shown in Figure 1.
170170
171171
![SQuAD Finetuning](/assets/images/squad-scaling.png){: .align-center}
172172

docs/_tutorials/pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ net = PipelineModule(layers=net, num_stages=2)
7575
```
7676
`PipelineModule` uses its `layers` argument as the sequence of layers that
7777
comprise the model. After initialization, `net` is divided into two pipeline
78-
stages and its layers moved to the correpsonding GPUs. If more than two GPUs
78+
stages and its layers moved to the corresponding GPUs. If more than two GPUs
7979
are present, DeepSpeed will also use hybrid data parallelism.
8080

8181
**Note:** The total number of GPUs must be divisible by the number of pipeline

docs/_tutorials/progressive_layer_dropping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Note that the above configuration assumes training on 64 X 32GB V100 GPUs. Each
9595

9696
Table 1. Pre-training hyperparameters
9797

98-
**Note:** DeepSpeed now supports PreLayerNorm as the default way for training BERT, because of its ability to avoid vanishing gradient, stablize optimization, and performance gains, as described in our fastest BERT training [blog post](https://www.deepspeed.ai/news/2020/05/27/fastest-bert-training.html). We therefore support the switchable Transformer block directly on the the BERT with PreLayerNorm. The implementation can be found at "example\bing_bert\nvidia\modelingpreln_layerdrop.py".
98+
**Note:** DeepSpeed now supports PreLayerNorm as the default way for training BERT, because of its ability to avoid vanishing gradient, stabilize optimization, and performance gains, as described in our fastest BERT training [blog post](https://www.deepspeed.ai/news/2020/05/27/fastest-bert-training.html). We therefore support the switchable Transformer block directly on the the BERT with PreLayerNorm. The implementation can be found at "example\bing_bert\nvidia\modelingpreln_layerdrop.py".
9999

100100
## Fine-tuning with DeepSpeed on GLUE Tasks
101101

docs/_tutorials/zero.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Next, we need to update the DeepSpeed json configuration, as shown below, to ena
7979
}
8080
```
8181

82-
In the above changes, we have set the _stage_ field to 2, and configured other optimization knobs that are available in ZeRO stage 2. For example, we have enabled _contiguous_gradients_ to reduce memory fragmenation during backward pass. A full description of these optimization knobs is available [here](/docs/config-json/#zero-optimizations-for-fp16-training). With these changes, we can now launch the training run.
82+
In the above changes, we have set the _stage_ field to 2, and configured other optimization knobs that are available in ZeRO stage 2. For example, we have enabled _contiguous_gradients_ to reduce memory fragmentation during backward pass. A full description of these optimization knobs is available [here](/docs/config-json/#zero-optimizations-for-fp16-training). With these changes, we can now launch the training run.
8383

8484
Here is a screenshot of the training log:
8585

0 commit comments

Comments
 (0)