-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[zero] Update method of grad store #2687
[zero] Update method of grad store #2687
Conversation
Your pre-commit check failed, follow the steps to run pre-commit on your file for code style consistency.
View your job at https://github.com/hpcaitech/ColossalAI/actions/runs/4164081624. |
Hi @yhna940 , thank you for your PR. Can you help to format your code with |
Hi, seems some Github updates broke our CI checks. I have fixed the CI and can you rebase your code with the latest code so that the correct CI can be triggered? |
Your pre-commit check failed, follow the steps to run pre-commit on your file for code style consistency.
View your job at https://github.com/hpcaitech/ColossalAI/actions/runs/4180912101. |
The code coverage for the changed files is 92%. Click me to view the complete report
|
📌 Checklist before creating the PR
[doc/gemini/tensor/...]: A concise description
🚨 Issue number
📝 What does this PR do?
It's not that important, but it seems more appropriate to call a method to modify the contents than to directly refer to the private member variable (
_averaged_gradients
) inself._grad_store
. So I introduced a method to add or change the value ofgrad_store
.💥 Checklist before requesting a review
⭐️ Do you enjoy contributing to Colossal-AI?
Tell us more if you don't enjoy contributing to Colossal-AI.