-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
torch compile config standardization update (#3166)
* torch.compile config update * torch.compile config update * yaml test files * yaml test files * Fixed regression failure * Fixed regression failure * Fixed regression failure * Workaround for regression failure * Workaround for regression failure * Workaround for regression failure * skipping torchtext test * Update test_example_torch_compile.py * Update test_torch_compile.py * Rename toy_model.py to model.py * Update test_torch_compile.py * Update test_torch_compile.py * :Addressed review comments * Addressed review comments
- Loading branch information
Showing
14 changed files
with
198 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
pt2 : {backend: inductor, mode: reduce-overhead} | ||
pt2: | ||
compile: | ||
enable: True | ||
backend: inductor | ||
mode: reduce-overhead |
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
6 changes: 5 additions & 1 deletion
6
examples/pt2/torch_inductor_caching/model-config-cache-dir.yaml
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
minWorkers: 4 | ||
maxWorkers: 4 | ||
responseTimeout: 600 | ||
pt2 : {backend: inductor, mode: max-autotune} | ||
pt2: | ||
compile: | ||
enable: True | ||
backend: inductor | ||
mode: max-autotune | ||
handler: | ||
torch_inductor_caching: | ||
torch_inductor_cache_dir: "/home/ubuntu/serve/examples/pt2/torch_inductor_caching/cache" |
6 changes: 5 additions & 1 deletion
6
examples/pt2/torch_inductor_caching/model-config-fx-cache.yaml
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
minWorkers: 4 | ||
maxWorkers: 4 | ||
responseTimeout: 600 | ||
pt2 : {backend: inductor, mode: max-autotune} | ||
pt2: | ||
compile: | ||
enable: True | ||
backend: inductor | ||
mode: max-autotune | ||
handler: | ||
torch_inductor_caching: | ||
torch_inductor_fx_graph_cache: true |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pt2: | ||
compile: | ||
enable: True |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pt2: | ||
compile: | ||
enable: False | ||
backend: inductor | ||
mode: reduce-overhead |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pt2: | ||
compile: | ||
enable: True | ||
backend: inductor | ||
mode: reduce-overhead |
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.