-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adding Pipeline methods [WIP] #114
base: master
Are you sure you want to change the base?
Conversation
methods. | ||
|
||
:param: steps (list) list of KD_Lib.KD or KD_Lib.Pruning or KD_Lib.Quantization | ||
:param: epochs (int) number of iterations through whole batch for each method in |
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.
We can remove this parameter right? Since each individual method will have epochs in its initialization
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.
Distillation specifies these parameters in train_student
method instead of class constructor.
KD_Lib/utils/pipeline.py
Outdated
if hasattr(process, 'train_student'): | ||
process.train_student(self.epochs, self.plot_losses, self.save_model, self.save_model_path) | ||
elif hasattr(proces, 'prune'): | ||
process.prune() | ||
elif hasattr(process, 'quantize'): | ||
process.quantize() | ||
else: | ||
raise TypeError("{} is not supported by the pipeline yet." |
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.
Save the final model after all the steps in the process
ccddfb9
to
a999eed
Compare
Codecov Report
@@ Coverage Diff @@
## master #114 +/- ##
==========================================
- Coverage 55.83% 0.79% -55.05%
==========================================
Files 60 61 +1
Lines 2115 2012 -103
==========================================
- Hits 1181 16 -1165
- Misses 934 1996 +1062
|
No description provided.