-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Changes 1. Change Torch Version from 2.4.0 -> 2.5.0 2. Update `nncf/experimental/torch/fx/transformations.py` for merging bias and linear/conv nodes to eliminate dead subgraph and nodes. Created `_get_connected_nodes()` to get the list of nodes directly or indirectly connected to the output node. 3. Import `torchvision` in NNCF patching for jit. 4. Update `MAP_BACKEND_PACKAGES` in `tests/cross_fw/shared/helpers.py` to include `torch` and `torchvision`. ### Reason for changes 1. Migration 2. Since the dead subgraphs and nodes were not being removed from the model after merging bias and conv/linear nodes, Only nodes which are directly or indirectly connected to the output node were kept. 3. This was done because import order with torchvision also affected the operators. 4. After change 3, it is required to pass `test_force_cuda_build` in `tests/torch/test_extensions_build.py`. ### Related tickets #3036 ### Tests `test_get_connected_nodes()` is added in `tests/torch/fx/test_model_transformer.py` to test `_get_connected_nodes()` function. ### Constrains Torch FX tests for windows are skipped (CVS-156781) since `torch._export.capture_pre_autograd_graph` does not support windows in torch 2.5 --------- Co-authored-by: Alexander Dokuchaev <[email protected]>
- Loading branch information
1 parent
c17b6ed
commit 058dce6
Showing
18 changed files
with
1,001 additions
and
937 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
2 changes: 1 addition & 1 deletion
2
examples/llm_compression/openvino/tiny_llama_synthetic_data/requirements.txt
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,4 +1,4 @@ | ||
torch==2.4.0 | ||
torch==2.5.1 | ||
datasets==3.0.1 | ||
numpy>=1.23.5 | ||
openvino==2024.4 | ||
|
4 changes: 2 additions & 2 deletions
4
examples/post_training_quantization/torch/mobilenet_v2/requirements.txt
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,6 +1,6 @@ | ||
fastdownload==0.0.7 | ||
openvino==2024.4 | ||
scikit-learn | ||
torch==2.4.0 | ||
torchvision==0.19.0 | ||
torch==2.5.1 | ||
torchvision==0.20.1 | ||
setuptools<=72.1.0 |
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
4 changes: 2 additions & 2 deletions
4
examples/post_training_quantization/torch_fx/resnet18/requirements.txt
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,4 +1,4 @@ | ||
fastdownload==0.0.7 | ||
openvino==2024.4 | ||
torch==2.4.0 | ||
torchvision==0.19.0 | ||
torch==2.5.1 | ||
torchvision==0.20.1 |
4 changes: 2 additions & 2 deletions
4
examples/quantization_aware_training/torch/resnet18/requirements.txt
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,5 +1,5 @@ | ||
fastdownload==0.0.7 | ||
openvino==2024.4 | ||
torch==2.4.0 | ||
torchvision==0.19.0 | ||
torch==2.5.1 | ||
torchvision==0.20.1 | ||
setuptools<=72.1.0 |
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.