You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs/src/examples/ode/second_order_adjoints.md uses Mooncake for Phase 1 (Adam) but still uses Zygote for Phase 2 (NewtonTrustRegion) because Mooncake has no working forward-over-reverse path through SciMLSensitivity + OrdinaryDiffEq.
SecondOrder(AutoMooncake(), AutoMooncake()) raises "reverse-over-reverse not supported" (ArgumentError from build_derived_rrule).
SecondOrder(AutoForwardDiff(), AutoMooncake()) is blocked on Mooncake's IEEEFloat-only gradient interface — it rejects ForwardDiff.Dual as the primal type (ValueAndGradientReturnTypeError).
Mooncake's native prepare_hvp_cache / value_and_hvp!! works on simple functions (Rosenbrock), but on the neural ODE loss through OrdinaryDiffEq it hits:
docs/src/examples/ode/second_order_adjoints.mduses Mooncake for Phase 1 (Adam) but still uses Zygote for Phase 2 (NewtonTrustRegion) because Mooncake has no working forward-over-reverse path through SciMLSensitivity + OrdinaryDiffEq.SecondOrder(AutoMooncake(), AutoMooncake())raises "reverse-over-reverse not supported" (ArgumentErrorfrombuild_derived_rrule).SecondOrder(AutoForwardDiff(), AutoMooncake())is blocked on Mooncake'sIEEEFloat-only gradient interface — it rejectsForwardDiff.Dualas the primal type (ValueAndGradientReturnTypeError).Mooncake's native
prepare_hvp_cache/value_and_hvp!!works on simple functions (Rosenbrock), but on the neural ODE loss through OrdinaryDiffEq it hits::jl_get_world_counterand:jl_matching_methods— fixed in Add frule!!/rrule!! for :jl_get_world_counter and :jl_matching_methods chalk-lab/Mooncake.jl#1142.UndefRefErrorin_build_output_tangent_cartesianforIdDicttangent construction (Memory{Any} has#undefslots) — separate Mooncake bug.ArgumentError: Tangent types do not match primal typesfor ComponentArray closures captured intoHVPCache's grad_f — separate Mooncake/CA issue.Once Mooncake's forward-over-reverse matures, both phases can use Mooncake.
🤖 Generated with Claude Code