Skip to content

Commit a662599

Browse files
release 2.5 branch cut (#3161)
1 parent 5719928 commit a662599

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

docker/dist-build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -x
55
TOP_DIR=$(cd $(dirname $0); pwd)/..
66

77
if [[ -z "${USE_CXX11}" ]]; then
8-
BUILD_CMD="python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/nightly/cu124 -w dist"
8+
BUILD_CMD="python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/test/cu124 -w dist"
99
else
10-
BUILD_CMD="python -m pip wheel . --config-setting="--build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/nightly/cu124 -w dist"
10+
BUILD_CMD="python -m pip wheel . --config-setting="--build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/test/cu124 -w dist"
1111
fi
1212

1313
# TensorRT restricts our pip version

py/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
numpy
22
packaging
33
pybind11==2.6.2
4-
--extra-index-url https://download.pytorch.org/whl/nightly/cu124
5-
torch>=2.5.0.dev,<2.6.0
6-
torchvision>=0.20.0.dev,<0.21.0
4+
--extra-index-url https://download.pytorch.org/whl/test/cu124
5+
torch>=2.5.0,<2.6.0
6+
torchvision>=0.20.0,<0.21.0
77
--extra-index-url https://pypi.ngc.nvidia.com
88
pyyaml

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires = [
99
"typing-extensions>=4.7.0",
1010
"future>=0.18.3",
1111
"tensorrt-cu12==10.3.0",
12-
"torch >=2.5.0.dev,<2.6.0",
12+
"torch>=2.5.0,<2.6.0",
1313
"pybind11==2.6.2",
1414
"numpy",
1515
]
@@ -54,7 +54,7 @@ keywords = [
5454
"inference",
5555
]
5656
dependencies = [
57-
"torch >=2.5.0.dev,<2.6.0",
57+
"torch>=2.5.0,<2.6.0",
5858
"tensorrt-cu12==10.3.0",
5959
"tensorrt-cu12-bindings==10.3.0",
6060
"tensorrt-cu12-libs==10.3.0",
@@ -65,8 +65,8 @@ dependencies = [
6565
dynamic = ["version"]
6666

6767
[project.optional-dependencies]
68-
torchvision = ["torchvision >=0.20.dev,<0.21.0"]
69-
quantization = ["nvidia-modelopt[all]>=0.15.1"]
68+
torchvision = ["torchvision>=0.20.0,<0.21.0"]
69+
quantization = ["nvidia-modelopt[deploy,hf,torch]~=0.17.0"]
7070
monitoring-tools = ["rich >= 13.7.1"]
7171
jupyter = ["rich[jupyter] >= 13.7.1"]
7272

tests/py/dynamo/models/test_models_export.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# type: ignore
2-
import importlib
2+
import platform
33
import unittest
44
from importlib import metadata
55

@@ -250,9 +250,8 @@ def calibrate_loop(model):
250250

251251

252252
@unittest.skipIf(
253-
not importlib.util.find_spec("modelopt")
254-
or Version(metadata.version("nvidia-modelopt")) < Version("0.16.1"),
255-
"modelopt 0.16.1 or later is required Int8 quantization is supported in modelopt since 0.16.1 or later",
253+
modelopt.__version__ < "0.16.1",
254+
"Int8 quantization is supported in modelopt since 0.16.1 or later",
256255
)
257256
@pytest.mark.unit
258257
def test_base_int8(ir):

tests/py/requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ pytest-xdist>=3.6.1
99
pyyaml
1010
timm>=1.0.3
1111
transformers==4.40.2
12-
# TODO @lanlao-nvidia Renable when modelopt can be install properly to run the tests
13-
# "nvidia-modelopt[all]">=0.16.1,<0.17.0
12+
nvidia-modelopt[deploy,hf,torch]~=0.17.0
1413
--extra-index-url https://pypi.nvidia.com

0 commit comments

Comments
 (0)