-
Notifications
You must be signed in to change notification settings - Fork 1k
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
some accelerator enhancements #366
Comments
Nice idea! @sgugger WDYT of instead having this wrap around AcceleratorState directly, rather than having this be attached to Accelerator? |
I don't mind having wrappers on the Accelerator for those. As long as the naming is clear, it's not a bad thing to have multiple properties/methods/context managers for different use cases :-) |
I do think In this case, should Property gives better support in elastic training, variable is more consitent with existing design. |
There is no way to set it and make it work (you can't transform the training in distributed mode suddenly), so it should be a property. |
Ohh, by property I meant the Though as PyTorch is supporting elastic training, maybe other values (e.g. num_processes) should be set to a property? |
I understood properly, and I still stand by the fact it should be a property, decorated by |
Should we makee other variables (e.g. |
@ZhiyuanChen I'd say it couldn't hurt I think! |
Hi sorry for this late reply.... but do you mean if changing doesn't hurt or not changing doesn't hurt...@muellerzr |
Changing it! 😄 |
Haha will do |
I believe everything has been merged now, so I'm gonna close this issue. Thanks again for this grate work! |
Hi,
My main code base have been switched to be based on accelerate for a while, it works grate! Thank you guys so much!
There are a few things I think it's a common need.
The first is
.distsibuted
attributes, which is basically.num_processes > 1
. I mean, it's not a lot of works but .... I'm an extremely lazy person.Besides, these two decorators are often used in my code when saving models and downloading datasets, I think it could be useful.
The text was updated successfully, but these errors were encountered: