Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PT] bump torch to 2.5.1 #3037

Merged
merged 56 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
f9e5d7c
Update torch_fx_backend.py
anzr299 Aug 20, 2024
5b11455
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Aug 26, 2024
0eff5cb
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Aug 30, 2024
c7b9093
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Aug 30, 2024
e7097bd
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Aug 30, 2024
2665666
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 2, 2024
1b4a926
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 10, 2024
74d8f4c
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 12, 2024
415a222
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 18, 2024
939a560
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 24, 2024
cc544ff
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 24, 2024
9a359ab
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 26, 2024
f3047c9
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Sep 27, 2024
85ec57e
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Oct 3, 2024
7ad1586
Merge branch 'openvinotoolkit:develop' into develop
anzr299 Oct 24, 2024
1a24d92
bump up torch version init
anzr299 Oct 24, 2024
f90e279
fix mypy issue
anzr299 Oct 24, 2024
7d5c6f5
include pytorch in imports to avoid patchign problem due to impor ord…
anzr299 Oct 28, 2024
9b97db1
remove ndoes which are not directly or indirectly connected to output…
anzr299 Oct 28, 2024
31c7bd1
update cuda version
anzr299 Oct 28, 2024
862f900
Merge branch 'openvinotoolkit:develop' into torch250
anzr299 Oct 28, 2024
743e427
Add test for new function for getting connected nodes.
anzr299 Oct 28, 2024
c972f03
update cuda version in CI
anzr299 Oct 29, 2024
07f0a6b
fix precommit
anzr299 Oct 29, 2024
b298c62
update helpers for torch test
anzr299 Oct 29, 2024
66323df
Add conditional check before importing torchvision in JIT patching fu…
anzr299 Oct 29, 2024
b8cb518
pre-commit fix
anzr299 Oct 29, 2024
dcbce98
fix conditional import for torchvision
anzr299 Oct 29, 2024
14397dd
Fix issue with example
anzr299 Oct 30, 2024
7e4b771
minor fix of import
anzr299 Oct 30, 2024
ee64fe4
update transformations for impure nodes.
anzr299 Oct 31, 2024
75b7742
Merge branch 'develop' into torch250
anzr299 Oct 31, 2024
12c1c46
isolate patching problematic function and move it to nncf/torch/__ini…
anzr299 Oct 31, 2024
d262e55
pre-commit
anzr299 Oct 31, 2024
0bb9f67
pre-commit fix
anzr299 Oct 31, 2024
7295284
Fix pytorch requirements
anzr299 Oct 31, 2024
5c604df
Fix dependency
anzr299 Oct 31, 2024
99a0bf3
check pytorch version before importing polyfills loader
anzr299 Oct 31, 2024
f9d771e
Suggested fixes
anzr299 Oct 31, 2024
035c0d1
Merge branch 'openvinotoolkit:develop' into torch250
anzr299 Nov 1, 2024
b3d0d39
Fix OV torch import
anzr299 Nov 1, 2024
9fce84b
fix reference values for timm models with CUDA torch backend
anzr299 Nov 1, 2024
946abfa
precommit fix
anzr299 Nov 1, 2024
810322c
Merge branch 'develop' into torch250
anzr299 Nov 2, 2024
afcd92a
Merge branch 'openvinotoolkit:develop' into torch250
anzr299 Nov 6, 2024
a565967
Skip torch fx tests in windows
anzr299 Nov 6, 2024
2146597
pre commit fix
anzr299 Nov 6, 2024
a335213
remove extra from gitignore
anzr299 Nov 6, 2024
0cb74e5
fix ONNX version in docs
anzr299 Nov 6, 2024
fffe59c
add description on why we import openvino.torch
anzr299 Nov 6, 2024
3c33dc9
fix ticket reference
anzr299 Nov 6, 2024
fb00608
move torch version up to torch 2.5.1
anzr299 Nov 7, 2024
e79c82e
Merge branch 'develop' into torch250
anzr299 Nov 7, 2024
23bd35a
pre-commit fix
anzr299 Nov 7, 2024
868ea6b
update reference graph
anzr299 Nov 7, 2024
99f6a75
Update README.md
AlexanderDokuchaev Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ conda install -c conda-forge nncf
- Ubuntu\* 18.04 or later (64-bit)
- Python\* 3.9 or later
- Supported frameworks:
- PyTorch\* >=2.3, <2.5
- PyTorch\* >=2.3, <2.6
- TensorFlow\* >=2.8.4, <=2.15.1
- ONNX\* ==1.16.0
- OpenVINO\* >=2022.3.0

This repository is tested on Python* 3.10.14, PyTorch* 2.4.0 (NVidia CUDA\* Toolkit 12.1) and TensorFlow* 2.12.1 (NVidia CUDA\* Toolkit 11.8).
This repository is tested on Python* 3.10.14, PyTorch* 2.5.0 (NVidia CUDA\* Toolkit 12.1) and TensorFlow* 2.12.1 (NVidia CUDA\* Toolkit 11.8).
alexsu52 marked this conversation as resolved.
Show resolved Hide resolved

## NNCF Compressed NNCF Model Zoo

Expand Down
4 changes: 2 additions & 2 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
openvino==2024.4.0

# Pytorch
torch==2.4.0
torchvision==0.19.0
torch==2.5.0
torchvision==0.20.0

# ONNX
onnx==1.16.2
Expand Down
2 changes: 1 addition & 1 deletion docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ as well as the supported versions of Python:

| NNCF | OpenVINO | PyTorch | ONNX | TensorFlow | Python |
|-----------|------------|----------|----------|------------|--------|
| `develop` | `2024.4.0` | `2.4.0` | `1.16.0` | `2.15.1` | `3.10` |
| `develop` | `2024.4.0` | `2.5.0` | `1.16.0` | `2.15.1` | `3.10` |
alexsu52 marked this conversation as resolved.
Show resolved Hide resolved
| `2.13.0` | `2024.4.0` | `2.4.0` | `1.16.0` | `2.15.1` | `3.8`* |
| `2.12.0` | `2024.3.0` | `2.3.0` | `1.16.0` | `2.15.1` | `3.8`* |
| `2.11.0` | `2024.2.0` | `2.3.0` | `1.16.0` | `2.12.0` | `3.8` |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fastdownload==0.0.7
openvino==2024.4
scikit-learn
torch==2.4.0
torchvision==0.19.0
torch==2.5.0
torchvision==0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fastdownload==0.0.7
onnx==1.16.0
openvino==2024.4
pycocotools==2.0.7
torch==2.4.0
torch==2.5.0
torchmetrics==1.0.1
torchvision==0.19.0
torchvision==0.20.0
numpy<2
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.0
torchvision==0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(self, model: nn.Module, hook_storage: HookStorage) -> None:
:param model: The PyTorch model to which the hooks will be applied.
:param hook_storage: Storage for hooks to be executed.
"""
super().__init__() # type: ignore
super().__init__()
self.hook_storage: HookStorage = hook_storage
self.model: nn.Module = model
self.module_call_stack: List[nn.Module] = []
Expand Down
2 changes: 1 addition & 1 deletion nncf/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
__version__ = "2.14.0"


BKC_TORCH_SPEC = "==2.4.*"
BKC_TORCH_SPEC = "==2.5.*"
BKC_TF_SPEC = "==2.15.*"
STRICT_TF_SPEC = ">=2.9.3,<2.16.0"
Loading