File tree Expand file tree Collapse file tree 5 files changed +13
-15
lines changed
Expand file tree Collapse file tree 5 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 55TOP_DIR=$( cd $( dirname $0 ) ; pwd) /..
66
77if [[ -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"
99else
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"
1111fi
1212
1313# TensorRT restricts our pip version
Original file line number Diff line number Diff line change 11numpy
22packaging
33pybind11 == 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
88pyyaml
Original file line number Diff line number Diff 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]
5656dependencies = [
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 = [
6565dynamic = [" 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 " ]
7070monitoring-tools = [" rich >= 13.7.1" ]
7171jupyter = [" rich[jupyter] >= 13.7.1" ]
7272
Original file line number Diff line number Diff line change 11# type: ignore
2- import importlib
2+ import platform
33import unittest
44from 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
258257def test_base_int8 (ir ):
Original file line number Diff line number Diff line change @@ -9,6 +9,5 @@ pytest-xdist>=3.6.1
99pyyaml
1010timm >= 1.0.3
1111transformers == 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
You can’t perform that action at this time.
0 commit comments