Commit 6496b96
authored
Bump pytorch 2.9.0 (#3690)
### Changes
- Updated `torch` to version 2.9.0 and `torchvision` to version 0.24.0
- some examples still used 2.8.0 until update optimum
```
from torch.onnx.symbolic_opset14 import ( # noqa: E402
ImportError: cannot import name '_attention_scale' from 'torch.onnx.symbolic_opset14' (/tmp/pytest-of-runner/pytest-0/test_examples_llm_compression_0/venv/lib/python3.10/site-packages/torch/onnx/symbolic_opset14.py)
```
- Set `dynamo=False` in all calls to `torch.onnx.export` throughout the
codebase and tests to ensure compatibility with PyTorch 2.9.0 and work
around issues with the `ultralytics` library.
- Applied a workaround in scripts using `ultralytics` to set the default
value for the `dynamo` parameter in `torch.onnx.export`, with a TODO to
remove after upstream fixes.
- Use `check_guards=False` for FX model to no add extra function to
model
- Update referenced FX graphs, in reason of fused `slice` and `select`
operations
### Tests
manual/job/post_training_quantization/738/
https://github.com/openvinotoolkit/nncf/actions/runs/18719524116
https://github.com/openvinotoolkit/nncf/actions/runs/18720059603
nightly/job/torch_nightly/687/1 parent d103052 commit 6496b96
File tree
93 files changed
+31507
-33048
lines changed- docs
- examples
- llm_compression
- openvino/tiny_llama_find_hyperparams
- torch_fx/tiny_llama
- post_training_quantization
- onnx
- mobilenet_v2
- yolov8_quantize_with_accuracy_control
- openvino
- yolov8_quantize_with_accuracy_control
- yolov8
- torch_fx/resnet18
- torch
- mobilenet_v2
- ssd300_vgg16
- pruning/torch/resnet18
- quantization_aware_training/torch/resnet18
- src/nncf
- torch
- tests
- onnx
- quantization
- openvino/native
- post_training
- pipelines
- torch2
- data/fx
- OpenVINOQuantizer
- X86InductorQuantizer
- XNNPACKQuantizer
- ao_export_quantization_OpenVINOQuantizer
- dynamic_shapes
- post_quantization_compressed
- quantized
- post_quantization_compressed
- quantized
- reference_metatypes
- transformed
- function_hook
- quantization
- strip
- fx
- torch
- quantization
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
93 files changed
+31507
-33048
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
0 commit comments