-
Notifications
You must be signed in to change notification settings - Fork 538
Implement serialization of Summarizer #1293
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
This pull request was exported from Phabricator. Differential Revision: D58227186 |
This pull request was exported from Phabricator. Differential Revision: D58227186 |
Summary: Pull Request resolved: pytorch#1293 To save a checkpoint of a Feature Importance job, we will need to persistent below fields in https://www.internalfb.com/code/fbsource/[5e3ebcd68e0c]/fbcode/model_understanding/feature_importance/summarizer.py?lines=89-99 in order save the state of the job: ``` # Initialize summarizers self.input_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.input_coverage_summarizer = Summarizer([Mean()]) self.derived_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.derived_coverage_summarizer = Summarizer([Mean()]) self.neuron_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) # Initialize batch counts self.input_batch_count = 0 self.derived_batch_count = 0 self.neuron_batch_count = 0 ``` This diff implements (de)serialization of Summarizer. ### future diffs include: - save FI checkpoints to manifold - add the hook to Mast graceful preemption to save the checkpoint of Feature Importance Job - load checkpoint when initializing the Feature Importance Job Reviewed By: MarcioPorto Differential Revision: D58227186
@lurunming has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was exported from Phabricator. Differential Revision: D58227186 |
Summary: To save a checkpoint of a Feature Importance job, we will need to persistent below fields in https://www.internalfb.com/code/fbsource/[5e3ebcd68e0c]/fbcode/model_understanding/feature_importance/summarizer.py?lines=89-99 in order save the state of the job: ``` # Initialize summarizers self.input_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.input_coverage_summarizer = Summarizer([Mean()]) self.derived_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.derived_coverage_summarizer = Summarizer([Mean()]) self.neuron_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) # Initialize batch counts self.input_batch_count = 0 self.derived_batch_count = 0 self.neuron_batch_count = 0 ``` This diff implements (de)serialization of Summarizer. ### future diffs include: - save FI checkpoints to manifold - add the hook to Mast graceful preemption to save the checkpoint of Feature Importance Job - load checkpoint when initializing the Feature Importance Job Pull Request resolved: pytorch#1293 Reviewed By: MarcioPorto Differential Revision: D58227186 Pulled By: lurunming
This pull request was exported from Phabricator. Differential Revision: D58227186 |
Summary: To save a checkpoint of a Feature Importance job, we will need to persistent below fields in https://www.internalfb.com/code/fbsource/[5e3ebcd68e0c]/fbcode/model_understanding/feature_importance/summarizer.py?lines=89-99 in order save the state of the job: ``` # Initialize summarizers self.input_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.input_coverage_summarizer = Summarizer([Mean()]) self.derived_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.derived_coverage_summarizer = Summarizer([Mean()]) self.neuron_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) # Initialize batch counts self.input_batch_count = 0 self.derived_batch_count = 0 self.neuron_batch_count = 0 ``` This diff implements (de)serialization of Summarizer. ### future diffs include: - save FI checkpoints to manifold - add the hook to Mast graceful preemption to save the checkpoint of Feature Importance Job - load checkpoint when initializing the Feature Importance Job Pull Request resolved: pytorch#1293 Reviewed By: MarcioPorto Differential Revision: D58227186 Pulled By: lurunming
Summary: To save a checkpoint of a Feature Importance job, we will need to persistent below fields in https://www.internalfb.com/code/fbsource/[5e3ebcd68e0c]/fbcode/model_understanding/feature_importance/summarizer.py?lines=89-99 in order save the state of the job: ``` # Initialize summarizers self.input_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.input_coverage_summarizer = Summarizer([Mean()]) self.derived_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) self.derived_coverage_summarizer = Summarizer([Mean()]) self.neuron_attr_summarizer = Summarizer([Mean(), StdDev(order=0)]) # Initialize batch counts self.input_batch_count = 0 self.derived_batch_count = 0 self.neuron_batch_count = 0 ``` This diff implements (de)serialization of Summarizer. ### future diffs include: - save FI checkpoints to manifold - add the hook to Mast graceful preemption to save the checkpoint of Feature Importance Job - load checkpoint when initializing the Feature Importance Job Pull Request resolved: pytorch#1293 Reviewed By: MarcioPorto Differential Revision: D58227186 Pulled By: lurunming
This pull request was exported from Phabricator. Differential Revision: D58227186 |
@lurunming merged this pull request in 3f0cd93. |
Summary:
To save a checkpoint of a Feature Importance job, we will need to persistent below fields in https://www.internalfb.com/code/fbsource/[5e3ebcd68e0c]/fbcode/model_understanding/feature_importance/summarizer.py?lines=89-99 in order save the state of the job:
This diff implements (de)serialization of Summarizer.
future diffs include:
Differential Revision: D58227186