File tree 5 files changed +13
-15
lines changed
5 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 5
5
TOP_DIR=$( cd $( dirname $0 ) ; pwd) /..
6
6
7
7
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"
9
9
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"
11
11
fi
12
12
13
13
# TensorRT restricts our pip version
Original file line number Diff line number Diff line change 1
1
numpy
2
2
packaging
3
3
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
7
7
--extra-index-url https://pypi.ngc.nvidia.com
8
8
pyyaml
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ requires = [
9
9
" typing-extensions>=4.7.0" ,
10
10
" future>=0.18.3" ,
11
11
" tensorrt-cu12==10.3.0" ,
12
- " torch >=2.5.0.dev ,<2.6.0" ,
12
+ " torch>=2.5.0,<2.6.0" ,
13
13
" pybind11==2.6.2" ,
14
14
" numpy" ,
15
15
]
@@ -54,7 +54,7 @@ keywords = [
54
54
" inference" ,
55
55
]
56
56
dependencies = [
57
- " torch >=2.5.0.dev ,<2.6.0" ,
57
+ " torch>=2.5.0,<2.6.0" ,
58
58
" tensorrt-cu12==10.3.0" ,
59
59
" tensorrt-cu12-bindings==10.3.0" ,
60
60
" tensorrt-cu12-libs==10.3.0" ,
@@ -65,8 +65,8 @@ dependencies = [
65
65
dynamic = [" version" ]
66
66
67
67
[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 " ]
70
70
monitoring-tools = [" rich >= 13.7.1" ]
71
71
jupyter = [" rich[jupyter] >= 13.7.1" ]
72
72
Original file line number Diff line number Diff line change 1
1
# type: ignore
2
- import importlib
2
+ import platform
3
3
import unittest
4
4
from importlib import metadata
5
5
@@ -250,9 +250,8 @@ def calibrate_loop(model):
250
250
251
251
252
252
@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" ,
256
255
)
257
256
@pytest .mark .unit
258
257
def test_base_int8 (ir ):
Original file line number Diff line number Diff line change @@ -9,6 +9,5 @@ pytest-xdist>=3.6.1
9
9
pyyaml
10
10
timm >= 1.0.3
11
11
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
14
13
--extra-index-url https://pypi.nvidia.com
You can’t perform that action at this time.
0 commit comments