Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDPA and memory saving tricks #23

Merged
merged 5 commits into from
Dec 28, 2024
Merged

SDPA and memory saving tricks #23

merged 5 commits into from
Dec 28, 2024

Conversation

murrellb
Copy link
Member

We either need to add a function that swaps the sdpa out for all layers then swapped at the top of the transformer, or, even better, make the sdpa come in with the model call instead of being a field in the layers.

@AntonOresten
Copy link
Member

AntonOresten commented Dec 28, 2024

Closes #18

lol nvm that only works for issues

Copy link

codecov bot commented Dec 28, 2024

Codecov Report

Attention: Patch coverage is 62.20472% with 48 lines in your changes missing coverage. Please review.

Project coverage is 55.64%. Comparing base (203938e) to head (43922d5).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/sdpa.jl 58.40% 47 Missing ⚠️
src/model.jl 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   54.47%   55.64%   +1.17%     
==========================================
  Files           7        8       +1     
  Lines         380      487     +107     
==========================================
+ Hits          207      271      +64     
- Misses        173      216      +43     

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

@murrellb murrellb merged commit 90447e3 into main Dec 28, 2024
5 checks passed
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.

2 participants