Skip to content

Lluo/fix merge issue #3162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading