-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Update] layer prefix to be set at model level #1778
Merged
Merged
Commits on Oct 19, 2023
-
- Update
src/sparseml/modifiers/obcq/pytorch.py
to use layer prefix for from model - Remove `layer_prefix` from `SparseGPTModifier` base - Update ModelMetaData to include layer_prefix - Added a convenience function to update missing values in RecipeMetaData instance from another RecipeMetaData instance - Update simplify recipe to also include metadata - Update simplify_combine_recipes to include metadata - Add layer_prefix property to `ModifiableModel` - propagate `layer_prefix` to superclass - update session.py to set_layer_prefix on the model before initializing modifiers - Update example recipe to include layer_prefix in metadata
Configuration menu - View commit details
-
Copy full SHA for ce265a4 - Browse repository at this point
Copy the full SHA ce265a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fa0374 - Browse repository at this point
Copy the full SHA 9fa0374View commit details
Commits on Oct 25, 2023
-
- update docstring - add test for `update_missing_metadata`
Configuration menu - View commit details
-
Copy full SHA for 046b85d - Browse repository at this point
Copy the full SHA 046b85dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bcf3a0 - Browse repository at this point
Copy the full SHA 1bcf3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe367d3 - Browse repository at this point
Copy the full SHA fe367d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8206969 - Browse repository at this point
Copy the full SHA 8206969View commit details -
Configuration menu - View commit details
-
Copy full SHA for c45c745 - Browse repository at this point
Copy the full SHA c45c745View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c8f8a8 - Browse repository at this point
Copy the full SHA 2c8f8a8View commit details
Commits on Oct 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 19188fb - Browse repository at this point
Copy the full SHA 19188fbView commit details
Commits on Oct 30, 2023
-
[modifier refactor] Add constant pruning tests (#1752)
* Initial commit * Add end to end tests * Add e2e tests for constant pruning modifier * Move imports inside the test fuctions so that torch isn't imported unless running the tests * Update setup.py to not run modifier tests unless pytorch is specified * [Bugfix] .dict() method on Recipe (#1753) * Bugfix .dict() method on Recipe * Remove extraneous local test, [faulty commit] * [modifier refactor] Add serialization tests (#1755) * Add serialization tests * Clean up * Keep original stage and group names Clean up _get_yaml_dict * fix comment * Typo * [Unit Tests][Modifier Refactor] (#1756) * Move valid recipes to a helper file Add tests for session.py * Increase test coverage of src/sparseml/core/session.py to 100% Run Style Add logs to .gitignore * Increase coverage of tests/sparseml/core/test_state.py to 100% * add tests for lifecycle/event.py * Increase code coverage of lifecycle/event to 100% * increase lifecycle/session.py code coverage to 93% * Address review comments from @Satrat * Address review comments on 1752 (#1772) Update makefile to only ignore *pytorch.py files in modifier dir Fix order in test Add regex to makefile Add helper function to determine if torch tests should be run Check masks Make transformers import optional in sparsegpt.py * Fix merge conflict * Add more tests to check valid modifiers are created (#1774) * [Bug][ConstantPruningModifier] Fix mask de register bug (#1773) * Fix mask de-register logic * forgot to remove commented out line * Move tests inside pytorch directory as requested * Fix session reset (#1790)
Configuration menu - View commit details
-
Copy full SHA for 04d05c4 - Browse repository at this point
Copy the full SHA 04d05c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for da27e82 - Browse repository at this point
Copy the full SHA da27e82View commit details -
Add kvcache config for Mistral (#1766)
* Add kvcache config for Mistral * Update configs.py * Update configs.py
Configuration menu - View commit details
-
Copy full SHA for 037e302 - Browse repository at this point
Copy the full SHA 037e302View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaf80c3 - Browse repository at this point
Copy the full SHA aaf80c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b0b319 - Browse repository at this point
Copy the full SHA 3b0b319View commit details
Commits on Oct 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8b7d859 - Browse repository at this point
Copy the full SHA 8b7d859View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9734ef6 - Browse repository at this point
Copy the full SHA 9734ef6View commit details
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.