-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove training_trick_connector.py
#10112
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
Conversation
I know there isn't much code in some of these connectors but moving all of them to trainer isn't a good idea IMO. Makes the trainer more conjested. I mean right now these are clustered in their own classes which makes it easy to add new features or do refactors. But after these let's say something new comes in future then again we will think of moving these to separate classes. |
training_tricks_connector.py
training_tricks_connector.py
@rohitgr7 I hear your point. Right now we are only moving the very small connectors to the trainer or elsewhere, not the larger ones like data_connector, accelerator_connector, etc. Regarding making the trainer more congested please read #8946 (comment) I think @ananthsub makes a great point there which is, the trainer is currently a god class with a lot of complication. Keeping that complication in different connectors doesn't actually fix the problem, but just moves it out of sight. To start improving things we can first consolidate the code in the trainer and then slowly simplify it over time. We are only doing this for very small connectors right now, for large connectors we will come up with a well designed plan for them. |
Codecov Report
@@ Coverage Diff @@
## master #10112 +/- ##
========================================
- Coverage 92% 89% -4%
========================================
Files 180 179 -1
Lines 16146 16136 -10
========================================
- Hits 14933 14307 -626
- Misses 1213 1829 +616 |
training_tricks_connector.py
training_trick_connector.py
What does this PR do?
Fixes #10108
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃