[gradient_checkpointing] default to use it for torch 2.3#28538
Conversation
gradient_checkpointing] default to use it for torch 2.3
|
Why do we use reentrant gc by default? It said the non-reentrant gc can be more advantageous than the reentrant version: https://pytorch.org/docs/2.0/checkpoint.html#torch.utils.checkpoint.checkpoint |
|
@hiyouga the use_reentrant=True is used by default in PT anyway so if you set it to |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
I upgrade transformers to latest, still got this warning, and this warning is logged every single step how to disable it? |
|
Can you open a new issue with a proper reproducer ? |
What does this PR do?
Fixes #28536 in preparation for next torch release