-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Refactor/Pydantify comms config #2641
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
base: master
Are you sure you want to change the base?
Conversation
|
@Quentin-Anthony could you take a look at this PR? Also, do we have any unit tests that cover the comm logger? I couldn't find any and I'm wondering if you might be able to add some or help me add some? |
|
Yeah I can take a look. One immediate feedback is that 3bff0be will still fail because of the other checks in https://github.com/microsoft/DeepSpeed/blob/841ee593b943de4fd14db7d352d5bcb6b25f2ff9/deepspeed/comm/comm.py#L82 will fail here: https://github.com/microsoft/DeepSpeed/blob/841ee593b943de4fd14db7d352d5bcb6b25f2ff9/deepspeed/comm/comm.py#L97-L107 Lemme push a quick commit that replaces these assignments with |
|
There are no unit tests for the comms logger. I'll create some and commit them to this PR. |
I'm not sure I follow. The code block you linked to should create those attributes if they don't already exist. I think defining |
You're right. I misread the error log and got very confused, looks like. Ignore my comment :) |
@Quentin-Anthony Are you still able to do this? If not, I can put something together and get your input. |
My bad! This slipped my mind. Working on it now. |
|
I have tests in mrwyattii#1. Let me know if you have any comments :) |
|
@mrwyattii -- Anything else needed here? |
Thanks @Quentin-Anthony! These look great |
Add comms logger tests and missing comms_dict attribute to CommsLogger
Splitting work from #2210 to make it easier to review and merge.
Comms already used Pydantic, but updating it to use the DeepSpeedConfigModel like all other configs
TODO:
- [ ] Refactor how the config is used