未验证 提交 b7cc7c8e 编写于 作者: M Manuel R. Ciosici 提交者: GitHub

Add documentation for bfloat16 (git commit 648f7bfa) (#1516)

Co-authored-by: NJeff Rasley <jerasley@microsoft.com>
上级 488105eb
......@@ -233,6 +233,36 @@ Example of <i>**scheduler**</i>
| ----------------------------------------------------------------------------------------------------- | ------- |
| <i>**min_loss_scale**</i> is a **fp16** parameter representing the minimum dynamic loss scale value. | `1000` |
### BFLOAT16 options
**Note:** this mode cannot be combined with the `amp` mode described below.
{: .notice--warning}
**Note:** this mode cannot be combined with the `fp16` mode described above.
{: .notice--warning}
**Note:** this mode is only compatible with ZeRO stage 2.
{: .notice--warning}
<i>**bfloat16**</i>: [dictionary]
| Description | Default |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Configuration for using [bfloat16](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format) floating-point format as an alternative to FP16. BFLOAT16 requires hardware support (e.g., NVIDIA A100). An example, including the available dictionary keys is illustrated below. Training with bfloat16 does not require loss scaling. | None |
```json
"bfloat16": {
"enabled": true
}
```
<i>**bfloat16:enabled**</i>: [boolean]
| Description | Default |
| ------------------------------------------------------------------------------------------- | ------- |
| <i>**enabled**</i> is a **bfloat16** parameter indicating whether or not BFLOAT16 training enabled. | `false` |
### Automatic mixed precision (AMP) training options
**Note:** this mode cannot be combined with the `fp16` mode described above. In addition this mode is not currently compatible with ZeRO.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册