Skip to content

Complete revamp of the docs#495

Merged
muellerzr merged 137 commits intomainfrom
docs-revamp
Aug 1, 2022
Merged

Complete revamp of the docs#495
muellerzr merged 137 commits intomainfrom
docs-revamp

Conversation

@muellerzr
Copy link
Contributor

@muellerzr muellerzr commented Jul 7, 2022

This is a complete revamp of the Accelerate docs, that mimics the format of Datasets and Evaluate 🤗

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 7, 2022

The documentation is not available anymore as the PR was closed or merged.

+accelerator = Accelerator(gradient_accumulation_steps=2)
```

From here you can use the [`Accelerator.accumulate`] context manager from inside your training loop to automatically perform the gradient accumulation for you!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing the use of the context manager below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😄 Should be set now, appreciate your thorough review on it! 🙇

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking forward to this feature!

@muellerzr muellerzr requested review from pacman100 and sgugger July 11, 2022 11:47
@muellerzr muellerzr requested a review from sgugger July 31, 2022 18:59
@muellerzr muellerzr added the documentation Improvements or additions to documentation label Jul 31, 2022
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job, thanks a lot for revamping this completely!

@muellerzr muellerzr merged commit 447ad0e into main Aug 1, 2022
@muellerzr muellerzr deleted the docs-revamp branch August 1, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants