Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix whitespace colon #1272

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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