-
Notifications
You must be signed in to change notification settings - Fork 487
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
[fix] Reduce saved model size #1425
Conversation
I removed some attributes, but really unsure where the data is saved. In
|
Codecov Report
@@ Coverage Diff @@
## main #1425 +/- ##
==========================================
- Coverage 89.88% 89.85% -0.04%
==========================================
Files 38 38
Lines 5071 5084 +13
==========================================
+ Hits 4558 4568 +10
- Misses 513 516 +3
|
Model Benchmark
|
I think I found it! In _trainer there was saved some unecessary information! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good fix!
Do you think we should just include "_trainer"
in attrs_to_remove = ["trainer"]
?
Or is there a relevant scenario where "_trainer"
needs to be saved, but "trainer"
not?
If not, we can skip the 'minimal' option and keep the code more lean.
@ourownstory no probably not, I think so too, we should drop the minimal version and keep the code lean, will change that soon |
🔬 Background
See #1415
🔮 Key changes
removed attribute
_trainer