Skip to content
Draft
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e7592c2
torch==2.11.0
AlexanderDokuchaev Mar 24, 2026
74fdad8
export_for_training to export
AlexanderDokuchaev Mar 24, 2026
936c3a2
disable_tf32_precision
AlexanderDokuchaev Mar 24, 2026
79193b4
cuda13
AlexanderDokuchaev Mar 24, 2026
b4c6224
onnx-ir==0.2.0
AlexanderDokuchaev Mar 24, 2026
ed7487d
fn
AlexanderDokuchaev Mar 24, 2026
a9a7a2b
Merge branch 'develop' into ad/pt2110
AlexanderDokuchaev Apr 23, 2026
2c1f094
13.2
AlexanderDokuchaev Apr 23, 2026
0b9fdf6
ids
AlexanderDokuchaev Apr 23, 2026
166068e
mypy
AlexanderDokuchaev Apr 23, 2026
ea59416
doc
AlexanderDokuchaev Apr 23, 2026
2feb92b
onnx-ir==0.2.1, onnxscript==0.7.0
AlexanderDokuchaev Apr 24, 2026
0913720
xfail
AlexanderDokuchaev Apr 24, 2026
d61205c
test
AlexanderDokuchaev Apr 24, 2026
26eae3b
override tests
AlexanderDokuchaev Apr 24, 2026
34b5b0c
rm
AlexanderDokuchaev Apr 24, 2026
b9ccd0d
disable gptmodel example
AlexanderDokuchaev Apr 24, 2026
bccc49d
test
AlexanderDokuchaev Apr 24, 2026
77319cf
f
AlexanderDokuchaev Apr 24, 2026
5167e15
fin
AlexanderDokuchaev Apr 24, 2026
7ed3ff5
del disable_tf32_precision
AlexanderDokuchaev Apr 24, 2026
be9efe1
r
AlexanderDokuchaev Apr 24, 2026
53dbd01
c
AlexanderDokuchaev Apr 24, 2026
0a25342
Merge branch 'develop' into ad/pt2110
AlexanderDokuchaev Jun 26, 2026
dc10e7c
test_runner
AlexanderDokuchaev Jun 26, 2026
3865946
ci: update container image to Ubuntu 24.04 for precommit workflow
AlexanderDokuchaev Jun 26, 2026
72c3958
t
AlexanderDokuchaev Jun 26, 2026
d092718
git
AlexanderDokuchaev Jun 26, 2026
f652726
t
AlexanderDokuchaev Jun 26, 2026
bf0bc93
t
AlexanderDokuchaev Jun 26, 2026
9e39f34
lfs
AlexanderDokuchaev Jun 26, 2026
f6ecd72
ca
AlexanderDokuchaev Jun 26, 2026
a656e77
f
AlexanderDokuchaev Jun 26, 2026
d1d9299
ca
AlexanderDokuchaev Jun 26, 2026
16af384
update-ca-certificates
AlexanderDokuchaev Jun 26, 2026
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 .github/workflows/call_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ jobs:
sudo apt-get --assume-yes install build-essential ninja-build libgl1-mesa-dev libglib2.0-0 wget make
- name: Download CUDA
run: |
wget -q https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run
sudo sh cuda_12.6.3_560.35.05_linux.run --toolkit --silent
wget -q https://developer.download.nvidia.com/compute/cuda/13.2.1/local_installers/cuda_13.2.1_595.58.03_linux.run
sudo sh cuda_13.2.1_595.58.03_linux.run --toolkit --silent
- name: Runner info
continue-on-error: true
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ jobs:
sudo apt-get --assume-yes install build-essential ninja-build libgl1-mesa-dev libglib2.0-0 wget make
- name: Download CUDA
run: |
wget -q https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run
sudo sh cuda_12.6.3_560.35.05_linux.run --toolkit --silent
wget -q https://developer.download.nvidia.com/compute/cuda/13.2.1/local_installers/cuda_13.2.1_595.58.03_linux.run
sudo sh cuda_13.2.1_595.58.03_linux.run --toolkit --silent
- name: Runner info
continue-on-error: true
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
sudo apt-get --assume-yes install build-essential ninja-build libgl1-mesa-dev libglib2.0-0 wget make virtualenv
- name: Download CUDA
run: |
wget -q https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run
sudo sh cuda_12.6.3_560.35.05_linux.run --toolkit --silent
wget -q https://developer.download.nvidia.com/compute/cuda/13.2.1/local_installers/cuda_13.2.1_595.58.03_linux.run
sudo sh cuda_13.2.1_595.58.03_linux.run --toolkit --silent
- name: Runner info
continue-on-error: true
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ calibration_dataset = nncf.Dataset(dataset_loader, transform_fn)

# Step 3: Export model to TorchFX
input_shape = (1, 3, 224, 224)
Comment thread
AlexanderDokuchaev marked this conversation as resolved.
Outdated
fx_model = torch.export.export_for_training(model, args=(ex_input,)).module()
fx_model = torch.export.export(model, args=(ex_input,)).module()
# or
# fx_model = torch.export.export(model, args=(ex_input,)).module()

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

# Pytorch
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
torchao==0.17.0

# ONNX
onnx==1.21.0
onnx-ir==0.1.15
onnx-ir==0.2.1
onnxruntime==1.23.2; python_version < '3.11'
onnxruntime==1.24.3; python_version >= '3.11'
onnxscript==0.6.2
onnxscript==0.7.0

# Tests and examples
pytest==9.0.3
Expand Down
4 changes: 2 additions & 2 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ as well as the supported versions of Python:

| NNCF | OpenVINO | PyTorch | ONNX | TensorFlow | Python |
|-----------|------------|----------|----------|------------|--------|
| `develop` | `2026.1.0` | `2.10.0` | `1.21.0` | | `3.12` |
| `develop` | `2026.1.0` | `2.11.0` | `1.21.0` | | `3.12` |
| `3.1.0` | `2026.1.0` | `2.10.0` | `1.21.0` | | `3.10` |
| `3.0.0` | `2026.0.0` | `2.9.0` | `1.17.0` | | `3.10` |
| `2.19.0` | `2025.4.0` | `2.8.0` | `1.17.0` | `2.15.1` | `3.10` |
Expand All @@ -72,4 +72,4 @@ as well as the supported versions of Python:

> (*) Python 3.9 or higher is required for TensorFlow 2.15.1

This repository is tested on Python* 3.12, PyTorch* 2.10.0 (NVidia CUDA\* Toolkit 12.6).
This repository is tested on Python* 3.12, PyTorch* 2.11.0 (NVidia CUDA\* Toolkit 13.2).
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ optimum==2.1.0
onnx==1.21.0
onnxruntime==1.23.2; python_version < '3.11'
onnxruntime==1.24.3; python_version >= '3.11'
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch==2.10.0
torch==2.11.0
transformers==4.53.0
openvino==2026.1.0
optimum-intel[openvino]==1.27.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ optimum-onnx==0.1.0
optimum==2.1.0
transformers==4.53.0
onnx==1.21.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ optimum-onnx==0.1.0
optimum==2.1.0
transformers==4.53.0
onnx==1.21.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ optimum-onnx==0.1.0
optimum==2.1.0
transformers==4.53.0
onnx==1.21.0
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ openvino==2026.1.0
optimum-intel[openvino]==1.27.0
optimum-onnx==0.1.0
optimum==2.1.0
torch==2.10.0
torch==2.11.0
transformers==4.53.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ optimum-onnx==0.1.0
optimum==2.1.0
transformers==4.53.0
onnx==1.21.0
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch==2.10.0
torch==2.11.0
datasets==4.6.1
numpy>=1.23.5,<2
openvino==2026.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tensorboard==2.20.0
torch==2.10.0
torch==2.11.0
torchao==0.17.0
numpy>=1.23.5,<2
openvino==2026.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tensorboard==2.20.0
torch==2.10.0
torch==2.11.0
numpy>=1.23.5,<2
openvino==2026.1.0
optimum-intel==1.27.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def convert_and_export_with_cache(model: PreTrainedModel) -> tuple[ExportedProgr

dynamic_shapes = {"input_ids": {1: torch.export.Dim.DYNAMIC}, "cache_position": {0: torch.export.Dim.DYNAMIC}}

exported_program = torch.export.export_for_training(
exported_program = torch.export.export(
model,
args=(
example_input_ids,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ transformers==4.53.0
datasets==4.6.1
openvino==2026.1.0
optimum==2.1.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
torchao==0.17.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
fastdownload==0.0.7
fastprogress==1.0.5
fastcore==1.11.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ onnx==1.21.0
onnxruntime==1.23.2; python_version < '3.11'
onnxruntime==1.24.3; python_version >= '3.11'
openvino==2026.1.0
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ultralytics==8.4.21
onnx==1.21.0
openvino==2026.1.0
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ultralytics==8.3.221
onnx==1.21.0
openvino==2026.1.0
torch==2.10.0
torch==2.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ fastprogress==1.0.5
fastcore==1.11.5
openvino==2026.1.0
scikit-learn
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fastcore==1.11.5
onnx==1.21.0
openvino==2026.1.0
pycocotools==2.0.7
torch==2.10.0
torch==2.11.0
torchmetrics==1.0.1
torchvision==0.25.0
torchvision==0.26.0
numpy<2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ fastdownload==0.0.7
fastprogress==1.0.5
fastcore==1.11.5
openvino==2026.1.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
torchao==0.17.0
4 changes: 2 additions & 2 deletions examples/pruning/torch/resnet18/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ fastdownload==0.0.7
fastprogress==1.0.5
fastcore==1.11.5
openvino==2026.1.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
anomalib==2.2.0
torch==2.10.0
torch==2.11.0
openvino==2025.3.0
requests==2.33.0
matplotlib==3.10.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ fastdownload==0.0.7
fastprogress==1.0.5
fastcore==1.11.5
openvino==2026.1.0
torch==2.10.0
torchvision==0.25.0
torch==2.11.0
torchvision==0.26.0
Loading
Loading