Skip to content

Commit 9ada98e

Browse files
Remove torchvision default dependency
Signed-off-by: Keval Morabia <[email protected]>
1 parent e062038 commit 9ada98e

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

examples/cnn_qat/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
torchvision

examples/llm_eval/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ openai>=0.28.1
44
peft>=0.5.0
55
rwkv>=0.7.3
66
tiktoken
7+
torchvision

examples/onnx_ptq/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ datasets>=2.14.4
22
optimum
33
sentencepiece
44
timm
5+
torchvision

examples/pruning/cifar_resnet.ipynb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
"Let's first install `Model Optimizer` following the [installation steps](https://nvidia.github.io/TensorRT-Model-Optimizer/getting_started/2_installation.html)."
2323
]
2424
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": null,
28+
"metadata": {},
29+
"outputs": [],
30+
"source": [
31+
"! pip install nvidia-modelopt torchvision"
32+
]
33+
},
2534
{
2635
"cell_type": "code",
2736
"execution_count": 2,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"safetensors",
3939
"torch>=2.6",
4040
"torchprofile>=0.0.4",
41-
"torchvision",
4241
]
4342

4443
optional_deps = {
@@ -79,6 +78,7 @@
7978
"pytest-cov",
8079
"pytest-timeout",
8180
"timm",
81+
"torchvision",
8282
"tox>4.18",
8383
"tox-current-env>=0.0.12",
8484
],

0 commit comments

Comments
 (0)