Skip to content

Commit

Permalink
change ipex transformers limited verison in setup (#1015)
Browse files Browse the repository at this point in the history
* change ipex transformers limited verison in setup
* fix inc tests

Signed-off-by: jiqing-feng <[email protected]>
  • Loading branch information
jiqing-feng authored Nov 22, 2024
1 parent ed35ffc commit a5c48a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
INSTALL_REQUIRE = [
"torch>=1.11",
"optimum~=1.23",
"transformers>=4.36,<4.46",
"transformers>=4.36,<4.47",
"datasets>=1.4.0",
"sentencepiece",
"setuptools",
Expand Down Expand Up @@ -62,9 +62,9 @@

EXTRAS_REQUIRE = {
"nncf": ["nncf>=2.11.0"],
"ipex": ["intel-extension-for-pytorch", "transformers>=4.39,<4.46"],
"openvino": ["nncf>=2.11.0", "openvino==2024.5.0", "openvino-tokenizers==2024.5.0"],
"neural-compressor": ["neural-compressor[pt]>3.0", "accelerate", "transformers<4.46"],
"ipex": ["intel-extension-for-pytorch", "transformers>=4.39,<4.46"],
"diffusers": ["diffusers"],
"quality": QUALITY_REQUIRE,
"tests": TESTS_REQUIRE,
Expand Down
1 change: 0 additions & 1 deletion tests/neural_compressor/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def test_string_type(self):
self.assertIsInstance(dynamic_api, str)
self.assertIsInstance(static_api, str)

@unittest.skip(reason="INC is going to deprecate, skip this failed test")
def test_cli(self):
with tempfile.TemporaryDirectory() as tempdir:
# TODO : enable
Expand Down
3 changes: 1 addition & 2 deletions tests/neural_compressor/test_ipex.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class IPEXQuantizationTest(INCTestMixin):
SUPPORTED_ARCHITECTURES_WITH_EXPECTED_QUANTIZED_MATMULS = (("text-classification", "bert", 21),)

@parameterized.expand(SUPPORTED_ARCHITECTURES_WITH_EXPECTED_QUANTIZED_MATMULS)
@unittest.skip(reason="INC is going to deprecate, skip this failed test")
def test_ipex_static_quantization_with_smoothquant(self, task, model_arch, expected_quantized_matmuls):
recipes = {"smooth_quant": True, "smooth_quant_args": {"alpha": 0.5}}
num_samples = 10
Expand Down Expand Up @@ -81,5 +80,5 @@ def test_ipex_static_quantization_with_smoothquant(self, task, model_arch, expec
is_static=True,
num_samples=num_samples,
load_inc_model=False,
load_ipex_model=True,
load_ipex_model=False,
)

0 comments on commit a5c48a8

Please sign in to comment.