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

Disable enable_saved_for_backward_recomputation path by default #1659

Closed
wants to merge 2 commits into from

Conversation

IvanYashchuk
Copy link
Collaborator

Let's wait a bit before using the changes introduced in #1615 by default. The feature is available by passing enable_saved_for_backward_recomputation=True to thunder.jit.

Disabling auto-recomputation as suggested in #1658 (comment).

Copy link
Collaborator

@t-vi t-vi left a comment

Choose a reason for hiding this comment

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

No. We disable the auto-recomputation, which is in the setting of RECOMPUTE_IN_BACKWARD in trace_interpreter.
The enable_saved_for_backward_recomputation flag needs to go as soon as @riccardofelluga does not need it anymore.
Note that enable_saved_for_backward_recomputation is a noop when the option is not given and no tensor has that tag.

@t-vi t-vi mentioned this pull request Jan 19, 2025
@t-vi
Copy link
Collaborator

t-vi commented Jan 19, 2025

I would prefer to have #1661 instead. Does that work for you?

@IvanYashchuk
Copy link
Collaborator Author

Yes, it works. I didn't know where the code for the pass to be used only for checkpointed operators lives. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants