10000 fix finalize features floods CPU memory: remove log and load mapped gradients to device by JD-ETH · Pull Request #59 · MadryLab/trak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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
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 < junweid2@illinois.edu>
Co-authored-by: Jiadong Guo <jaedon.guo@gmail.com>
Co-authored-by: heale04 <136350745+heale04@users.noreply.github.com>
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
0