-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Summary
- Replace the current WIP vmap in rune/lib/vmap.ml with a clean implementation that matches the behaviour of Jax's vmap.
- Ensure the new design composes with higher-order transforms such as jit, grad, jvp, and nested vmap.
Problem
- The existing code in
rune/lib/vmap.mlis mostly AI-generated and fails the nested scenarios inrune/test/test_vmap.ml. - I suspect it currently does not compose well with jit or grad, preventing us from stacking transformations.
Proposed Scope
- Investigate design space for
vmapand propose an effect-based solution that's compatible with Jax semantics and compose well with our other effect handlers. - Implement the design in
vmap.mland expose throughRune.vmap. Make sure the implementation passes the tests attest_vmap.ml
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed