Skip to content

Conversation

@rohan-varma
Copy link
Contributor

@rohan-varma rohan-varma commented Oct 5, 2022

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 5, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86331

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit a1fa22e:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Closes #86328

Adds `use_reentrant` argument to `checkpoint_sequential`.


[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 5, 2022
Closes #86328

Adds `use_reentrant` argument to `checkpoint_sequential`.


[ghstack-poisoned]
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Not sure about some of the doc update. SGTM otherwise.

the RNG state during each checkpoint.
Default: ``True``
use_reentrant(bool, optional): Use checkpointing
use_reentrant(bool, optional): Use (the default) checkpointing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure what that means? There is a Default: True in this section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this to indicate that reentrant is the default / original way of checkpointing. Usually the user would not be concerned about the implementation detail of checkpointing so clarifying which flag enables the current "default" seems valuable to me but can take this out if you prefer.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is already done by the Default: specification (note that we (try to) use this form consistently across the doc. So the user expects to find that information there already.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sg, will remove

Closes #86328

Adds `use_reentrant` argument to `checkpoint_sequential`.


[ghstack-poisoned]
facebook-github-bot pushed a commit that referenced this pull request Oct 7, 2022
Summary:
Closes #86328

Adds `use_reentrant` argument to `checkpoint_sequential`.

Pull Request resolved: #86331
Approved by: https://github.com/zhaojuanmao, https://github.com/albanD

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/7a411952fbb82cec38da936a7d863da49726699f

Reviewed By: seemethere

Differential Revision: D40167180

Pulled By: rohan-varma

fbshipit-source-id: 3bf67bced911af548f4d3c6e65a91017fe03e692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request cla signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants