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

fix finalize features floods CPU memory: remove log and load mapped gradients to device #59

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

JD-ETH
Copy link
Contributor

@JD-ETH JD-ETH commented Jan 1, 2024

loading data directly on device instead of moving from CPU to GPU in score computation steps

loading data directly on device instead of moving from CPU to GPU in score computation steps
@JD-ETH JD-ETH changed the title torch load gradients to device instead of CPU during finalize fix finalize features floods CPU memory: remove log and load mapped gradients to device Jan 1, 2024
@kristian-georgiev
Copy link
Member

Great catch @JD-ETH, thanks!

@kristian-georgiev kristian-georgiev changed the base branch from main to 0.3.2 January 5, 2024 09:09
@kristian-georgiev kristian-georgiev added the bug Something isn't working label Jan 5, 2024
@kristian-georgiev kristian-georgiev merged commit 1febdc9 into MadryLab:0.3.2 Jan 5, 2024
3 checks passed
kristian-georgiev added a commit that referenced this pull request Jan 17, 2024
* fix finalize features floods CPU memory: remove log and load mapped gradients to device  (#59)

* torch load gradients to device instead of CPU during finalize

loading data directly on device instead of moving from CPU to GPU in score computation steps

* Remove logging of raw tensors

* Remove dependency of proj_matrix during scoring (#61)

finalize feature deletes the proj_matrix, but basic projector assumes it exists. remove dependency.

* fix grads type check in iterative gradient computers

Co-authored-by: TheaperDeng <junweid2.illinois.edu>

* [added feature] regularization term for inv(xtx) calculation  (#63)

* Updated score_computers.py for lambda_reg

* Updated traker.py to include a lambda_reg term in arguments

* minor fixes

---------


Co-authored-by: Junwei Deng < [email protected]>
Co-authored-by: Jiadong Guo <[email protected]>
Co-authored-by: heale04 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants