Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix acc_conformance tests path issue on windows (#28971)

Wiktor Kobiela926e6a5e5855
diff --git a/tests/llm/accuracy_conformance.py b/tests/llm/accuracy_conformance.py
index e1394519186..c727c33b3ab 100644
--- a/tests/llm/accuracy_conformance.py
+++ b/tests/llm/accuracy_conformance.py
@@ -49,7 +49,7 @@ def init_test_scope():
tokenizer.save_pretrained(model_path)
ov_model = OVModelForCausalLM.from_pretrained(model_path, load_in_8bit=True)
- ov_model_path = model_path + os.path.join(tmp_dir, model_type + "_ov")
+ ov_model_path = os.path.join(tmp_dir, model_type + "_ov")
ov_model.save_pretrained(ov_model_path)
tokenizer.save_pretrained(ov_model_path)
del ov_model
@@ -59,9 +59,7 @@ def init_test_scope():
quantized_model = OVModelForCausalLM.from_pretrained(
model_path, quantization_config=quantization_config
)
- quantized_model_path = model_path = os.path.join(
- tmp_dir, model_type + "_ov_int4"
- )
+ quantized_model_path = os.path.join(tmp_dir, model_type + "_ov_int4")
quantized_model.save_pretrained(quantized_model_path)
tokenizer.save_pretrained(quantized_model_path)
del quantized_model