-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Module-level Adapters, Save-Restore and tests (#4114)
* First draft of model level tests and support for multiple types adapters in same model Signed-off-by: smajumdar <titu1994@gmail.com> * Add save restore tests for adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Add save restore tests for adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Add adapter only save and restore Signed-off-by: smajumdar <titu1994@gmail.com> * Update base adapter config Signed-off-by: smajumdar <titu1994@gmail.com> * Add tests Signed-off-by: smajumdar <titu1994@gmail.com> * Fix collection of get enabled adapters, limiting to each module's scope Signed-off-by: smajumdar <titu1994@gmail.com> * Update docs and add support for resolution of module adapter names Signed-off-by: smajumdar <titu1994@gmail.com> * Update ASR adapters to only support module adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Add state dict match test Signed-off-by: smajumdar <titu1994@gmail.com> * Fix name resolution for set_enabled_adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Correct case where name is none for set adapter Signed-off-by: smajumdar <titu1994@gmail.com> * Correct case where there are no adapters to save Signed-off-by: smajumdar <titu1994@gmail.com> * Update config for training Signed-off-by: smajumdar <titu1994@gmail.com> * Force update to internal config upon get or set Signed-off-by: smajumdar <titu1994@gmail.com> * Add spec augment update support to adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Correct config update Signed-off-by: smajumdar <titu1994@gmail.com> * Add dropout support to linear adapters Signed-off-by: smajumdar <titu1994@gmail.com> * Add type to config Signed-off-by: smajumdar <titu1994@gmail.com> * Add stochastic depth regularization to adapter merge strategy and related tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add support for dynamic strategy change Signed-off-by: smajumdar <titu1994@gmail.com> * Add support for dynamic strategy change Signed-off-by: smajumdar <titu1994@gmail.com> * Add more tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add more tests Signed-off-by: smajumdar <titu1994@gmail.com> * Remove logging of adapter name Signed-off-by: smajumdar <titu1994@gmail.com> * Update changes for reviews Signed-off-by: smajumdar <smajumdar@nvidia.com> * Refactor the utility methods Signed-off-by: smajumdar <smajumdar@nvidia.com> * Refactor the utility methods Signed-off-by: smajumdar <smajumdar@nvidia.com> * Fixed configs for optim and spec augment Signed-off-by: smajumdar <smajumdar@nvidia.com> * Fixed configs for optim and spec augment Signed-off-by: smajumdar <smajumdar@nvidia.com> * Rename method to subclassable private Signed-off-by: smajumdar <smajumdar@nvidia.com> * Add support for adapter module names to be pre-specified in config Signed-off-by: smajumdar <smajumdar@nvidia.com> * Fix imports Signed-off-by: smajumdar <smajumdar@nvidia.com> * Fix typos Signed-off-by: smajumdar <smajumdar@nvidia.com>
- Loading branch information
Showing
15 changed files
with
1,939 additions
and
130 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
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
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.