Skip to content

Commit

Permalink
Lluo/fix merge issue (#3162)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanluo-nvidia authored Sep 15, 2024
1 parent a662599 commit 6717ddc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/py/dynamo/models/test_models_export.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# type: ignore
import importlib
import platform
import unittest
from importlib import metadata
Expand Down Expand Up @@ -250,8 +251,10 @@ def calibrate_loop(model):


@unittest.skipIf(
modelopt.__version__ < "0.16.1",
"Int8 quantization is supported in modelopt since 0.16.1 or later",
not importlib.util.find_spec("modelopt")
or platform.system() != "Linux"
or Version(metadata.version("nvidia-modelopt")) < Version("0.17.0"),
"Int8 quantization is supported in modelopt since 0.17.0 or later for Linux",
)
@pytest.mark.unit
def test_base_int8(ir):
Expand Down

0 comments on commit 6717ddc

Please sign in to comment.