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

How can we access to the gradients while the model is training? #377

Open
BilgehanSel opened this issue Apr 19, 2023 · 0 comments
Open

How can we access to the gradients while the model is training? #377

BilgehanSel opened this issue Apr 19, 2023 · 0 comments

Comments

@BilgehanSel
Copy link

Does deepspeed offer an API to access the gradients while training for any of the stages (1-2-3). When I try to access the gradients, I only get None types. I'm mostly interested in the stage 3. If there is no such API, is there any chance to delve into the deepspeed code to access them somehow, I would also be glad if someone just points me to the right direction in the source code for this. I'm not that concerned about any slowdowns in the code as long as I have access to the gradients.

@BilgehanSel BilgehanSel changed the title How can we access to gradients while the model is training? How can we access to the gradients while the model is training? Apr 19, 2023
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

No branches or pull requests

1 participant