Skip to content

Stop Zygote from tracing MultidimRoPE's mod1 axis map. Zygote's mod1 … - #70

Open
mashu wants to merge 1 commit into
MurrellGroup:mainfrom
mashu:MultidimRoPEfix
Open

mashu wants to merge 1 commit into
MurrellGroup:mainfrom
mashu:MultidimRoPEfix

Conversation

@mashu

@mashu mashu commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Stop Zygote from tracing MultidimRoPE's mod1 axis map.
Under Zygore mod1(1...) becomes 0 and causes zero indexing error in backward pass, but this does not need to be differentiated.

…agrees with mod, so 1D coords gather at index 0.

The assignment is discrete; Q/K rotation stays differentiable.
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.11%. Comparing base (59f0dd9) to head (4632b3e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   39.94%   40.11%   +0.17%     
==========================================
  Files          73       73              
  Lines        2789     2777      -12     
==========================================
  Hits         1114     1114              
+ Misses       1675     1663      -12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant