Skip to content

Commit 62eb21f

Browse files
Update NNCF commit; tweak number of FQ for albert
1 parent da2211b commit 62eb21f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/test_openvino.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
4141
pip install transformers==${{ matrix.transformers-version }}
4242
pip install -U --pre openvino==2024.5.0.dev20240923 openvino-tokenizers==2024.5.0.dev20240923 --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly/
43-
pip install git+https://github.com/openvinotoolkit/nncf.git@2efda7dd16276c8d8f70fabfb9a94b4bcd7af08f
4443
4544
- name: Test with Pytest
4645
env:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161

6262
EXTRAS_REQUIRE = {
6363
"neural-compressor": ["neural-compressor[pt]>3.0", "accelerate", "transformers<=4.43.2"],
64-
"openvino": ["openvino-nightly==2024.5.0.dev20240923", "nncf@git+https://github.com/openvinotoolkit/nncf.git@2efda7dd16276c8d8f70fabfb9a94b4bcd7af08f", "openvino-tokenizers[transformers]"],
65-
"nncf": ["nncf@git+https://github.com/openvinotoolkit/nncf.git@2efda7dd16276c8d8f70fabfb9a94b4bcd7af08f"],
64+
"openvino": ["openvino-nightly==2024.5.0.dev20240923", "nncf@git+https://github.com/nikita-savelyevv/nncf.git@release_2_13_1", "openvino-tokenizers[transformers]"],
65+
"nncf": ["nncf@git+https://github.com/nikita-savelyevv/nncf.git@release_2_13_1"],
6666
"ipex": ["intel-extension-for-pytorch", "transformers>=4.39,<4.45"],
6767
"diffusers": ["diffusers"],
6868
"quality": QUALITY_REQUIRE,

tests/openvino/test_quantization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ def test_ovmodel_4bit_auto_compression_with_config(
510510
with tempfile.TemporaryDirectory() as tmp_dir:
511511
quantization_config = OVWeightQuantizationConfig.from_dict(quantization_config)
512512
model = model_cls.from_pretrained(model_id, export=True, quantization_config=quantization_config)
513+
import openvino
514+
openvino.save_model(model.model, "test_opt/nncf_213/compressed.xml")
513515
if quantization_config.quant_method.lower() == "awq" or quantization_config.scale_estimation:
514516
# TODO: Check that AWQ and SE was actually applied
515517
pass
@@ -745,7 +747,7 @@ def preprocess_function(examples, tokenizer):
745747

746748

747749
class OVTrainerTest(unittest.TestCase):
748-
SUPPORTED_ARCHITECTURES_WITH_EXPECTED_QUANTIZED_MATMULS = (("albert", 64, 39),)
750+
SUPPORTED_ARCHITECTURES_WITH_EXPECTED_QUANTIZED_MATMULS = (("albert", 63, 39),)
749751

750752
@parameterized.expand(SUPPORTED_ARCHITECTURES_WITH_EXPECTED_QUANTIZED_MATMULS)
751753
def test_aware_training_quantization(self, model_name, expected_fake_quantize, expected_int8):

0 commit comments

Comments
 (0)