Skip to content

feat: Add forward mode Mooncake#110

Merged
ChrisRackauckas merged 5 commits intomainfrom
gd/forward_mooncake
Aug 13, 2025
Merged

feat: Add forward mode Mooncake#110
ChrisRackauckas merged 5 commits intomainfrom
gd/forward_mooncake

Conversation

@gdalle
Copy link
Collaborator

@gdalle gdalle commented Jun 5, 2025

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This PR adds the AutoMooncakeForward type, in anticipation of chalk-lab/Mooncake.jl#389 landing. It is different from the existing AutoMooncake because otherwise we would have had to replace mode(::AutoMooncake) = ForwardMode() with mode(::AutoMooncake) = ForwardOrReverseMode(), which can be considered breaking.

cc @willtebbutt

AutoGTPSA,
AutoModelingToolkit,
AutoMooncake,
AutoMooncakeForward,
Copy link

Choose a reason for hiding this comment

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

For completeness, I suggest we consider introducing AutoMooncakeBackward, then alias AutoMooncake = AutoMooncakeBackward.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think having two names for the same thing introduces unneeded confusion. We can remove AutoMooncakeForward at the next breaking release of ADTypes if there ever is one

@gdalle gdalle marked this pull request as ready for review August 13, 2025 06:06
@gdalle gdalle requested a review from ChrisRackauckas August 13, 2025 06:06
Copy link
Member

@ChrisRackauckas ChrisRackauckas left a comment

Choose a reason for hiding this comment

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

Reasonable enough to me.

@ChrisRackauckas
Copy link
Member

Though I'd be willing to do that breaking change "soon" so that it's before Mooncake adoption is big.

@ChrisRackauckas ChrisRackauckas merged commit 6b866e9 into main Aug 13, 2025
8 checks passed
@ChrisRackauckas ChrisRackauckas deleted the gd/forward_mooncake branch August 13, 2025 09:08
@gdalle
Copy link
Collaborator Author

gdalle commented Aug 13, 2025

It seems TagBot didn't work, although the new version was registered?

@ChrisRackauckas
Copy link
Member

Maybe it just takes a bit longer? Or do you see a failed run?

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.

3 participants