Add trap bundle collection/ablation utilities, tests, and bump version to 0.8.4#368
Open
charlesmartin14 wants to merge 1 commit intomasterfrom
Open
Add trap bundle collection/ablation utilities, tests, and bump version to 0.8.4#368charlesmartin14 wants to merge 1 commit intomasterfrom
charlesmartin14 wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
weightwatcher/trap_bundles.pymodule withTrapAnalysisBundledataclass and functionsanalyze_traps_bundle,save_trap_bundle,load_trap_bundle,remove_single_trap_from_bundle,remove_traps_from_bundle, andrun_trap_bundle_ablation_experimentto collect, serialize, and apply bundle-based ablations.weightwatcher/trap_analysis.pyto accept an optionalbundle_collectorand to populate it with SVD and permutation artifacts for each analyzed layer, usingsvd_fulland safepermute_idshandling.tests/test_trap_bundles.pywith unit tests covering round-trip bundle save/load, seed-independence of ablation vs fresh analysis, mismatch validation, and legacy API behavior; tests are skipped whentorchis not available.weightwatcher/__init__.pyfrom0.8.3to0.8.4.Testing
pytest -q tests/test_trap_bundles.py, and tests passed on environments withtorchinstalled and were skipped whentorchwas not available.Codex Task