Skip to content

Commit

Permalink
Minor fix whitespace colon (#1272)
Browse files Browse the repository at this point in the history
More readability
  • Loading branch information
guspan-tanadi authored Apr 3, 2023
1 parent 3e304c4 commit 8b3e308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/package_reference/accelerator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ specific language governing permissions and limitations under the License.
# Accelerator

The [`Accelerator`] is the main class provided by 🤗 Accelerate.
It serves at the main entrypoint for the API.
It serves at the main entry point for the API.

## Quick adaptation of your code

Expand Down Expand Up @@ -45,7 +45,7 @@ you should search for and replace by the corresponding methods of your `accelera

### Printing

`print` statements should be replaced by [`~Accelerator.print`] to be printed once per process
`print` statements should be replaced by [`~Accelerator.print`] to be printed once per process:

```diff
- print("My thing I want to print!")
Expand Down Expand Up @@ -113,7 +113,7 @@ def do_my_thing():

### Synchronicity control

Use [`~Accelerator.wait_for_everyone`] to make sure all processes join that point before continuing. (Useful before a model save for instance)
Use [`~Accelerator.wait_for_everyone`] to make sure all processes join that point before continuing. (Useful before a model save for instance).

### Saving and loading

Expand Down Expand Up @@ -160,4 +160,4 @@ multi-device training, check if the step should actually be performed, and auto-

## Overall API documentation:

[[autodoc]] Accelerator
[[autodoc]] Accelerator

0 comments on commit 8b3e308

Please sign in to comment.