-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Model Patcher Class (#55)
* set main to track current plugin versions * move model_patcher to framework * replace local patching with model_patcher * add additional unit tests * remove redundant patch function * shifted patch summary logging to framework plugin and patch id renames * modified unit tests from PR comments * incremental refactor of unit tests * changes to mp trigger unit tests * additional changes to trigger unit tests * adding MP Rule unit tests * add context manager to isolate patching unit tests * some fixes * clarified comments * modelpatcher unit tests * added forward_builder fn unit test * lint changes * more lint changes * file renaming and added license headers on new files * added guard to patch model only if model exist in framework plugin callback * replaced buggy partial wrapping on ModelPatcher.patch and set tox env to allow triton access to global constexpr * additional linting * shifted patch trigger to main framework class * additional modifications to foak patch rules * linting * additional changes from comments * fixes to mp unit test * updated with new benchmark results --------- Co-authored-by: Yu Chin Fabian Lim <[email protected]>
- Loading branch information
Showing
33 changed files
with
1,500 additions
and
487 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "fms-acceleration-peft" | ||
version = '0.0.1' | ||
version = '0.1.0.1.dev' | ||
description = "FMS Acceleration for PeFT" | ||
authors = [ | ||
{name = "Fabian Lim", email = "[email protected]"}, | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "fms-acceleration" | ||
version = '0.1.1.dev' | ||
version = '0.1.2.dev' | ||
description = "FMS Acceleration Plugin Framework" | ||
authors = [ | ||
{name = "Fabian Lim", email = "[email protected]"}, | ||
|
@@ -27,6 +27,7 @@ dependencies = [ | |
"transformers<4.40", | ||
"peft", | ||
"accelerate", | ||
"pandas", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.