Skip to content

Commit 962f5e1

Browse files
authored
[token_merging] update torch version (#1029)
* update torch version * updated torchvision * +onnxscript * dynamo=False * macos-15-intel-large * fixed mac runner name * macos-15-large
1 parent d131b42 commit 962f5e1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
defaults:
2626
run:
2727
shell: bash
28-
runs-on: 'macos-13-large'
28+
runs-on: 'macos-15-large'
2929
env:
3030
CMAKE_BUILD_TYPE: 'Release'
3131
MACOSX_DEPLOYMENT_TARGET: '11.0'

modules/token_merging/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import find_packages, setup
55

66
EXTRAS_REQUIRE = {
7-
"tests": ["onnx", "onnxruntime", "accelerate", "diffusers", "openvino", "optimum", "optimum-intel", "open-clip-torch","timm", "pytest"],
7+
"tests": ["onnx", "onnxruntime", "onnxscript", "accelerate", "diffusers", "openvino", "optimum", "optimum-intel", "open-clip-torch","timm", "pytest"],
88
}
99

1010
setup(
@@ -13,7 +13,7 @@
1313
author="Alexander Kozlov",
1414
url="https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/token_merging",
1515
description="Token Merging for OpenVINO",
16-
install_requires=["torch~=2.4", "torchvision~=0.19.1"],
16+
install_requires=["torch~=2.6", "torchvision~=0.21"],
1717
dependency_links=["https://download.pytorch.org/whl/cpu"],
1818
extras_require=EXTRAS_REQUIRE,
1919
packages=find_packages(exclude=("examples", "build")),

modules/token_merging/tests/test_precommit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def test_timm(self):
7474
dynamic_axes={
7575
"image": {0: "batch"},
7676
"output": {0: "batch"},
77-
}
77+
},
78+
dynamo=False, # This keeps using the classic ONNX exporter (works in PyTorch 1.x – 2.5+).
7879
)
7980
compiled_model = ov.compile_model(model_file)
8081
self.assertTrue(compiled_model)

0 commit comments

Comments
 (0)