Skip to content

Mooncake: EnsembleProblem tutorials still on Zygote #1424

Description

@ChrisRackauckas-Claude

Three tutorials still use AutoZygote because Mooncake's rule compiler fails on EnsembleProblem.__solve (MooncakeRuleCompilationError / stack overflow):

  • docs/src/examples/sde/optimization_sde.md (Example 1)
  • docs/src/examples/sde/SDE_control.md
  • docs/src/tutorials/data_parallel.md

The SDE_control tutorial also needs Zygote.@nograd CreateGrid replaced with Mooncake.@zero_adjoint Mooncake.DefaultCtx Tuple{typeof(CreateGrid), Any, Any}.

SciMLBase 3.2.0 added tmap/responsible_map Mooncake rrule!! for EnsembleProblem, which may resolve this once the ecosystem cascade (LinearSolve, DiffEqBase, OrdinaryDiffEq, DelayDiffEq, StochasticDiffEq) lands.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions