-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: add a --speedup option and tests (#75)
* add --speedup option to jit-compile model * fix typo in import alias * fix mypy complaint * cache output of load_model * do not cache model because weights it not hashable * use eval mode for model in laod_model * rename _jit_compile to jit_compile * fix control flow in jit_compile Test that the model works as we apply optimizations. If a certain step fails, return the model from the previous (successful) step. * add test_jit_compile * add tests on pytorch nightly * add ModelType type + use control flow for torch.compile * cast model to Module if jit_compile * using typing.cast instead of type.cast * run regtests with and without --speedup
- Loading branch information
Showing
5 changed files
with
130 additions
and
4 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