OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] enable e2e precommit test for GPU (#32211)
Mingyu Kim4b3d6a7d2046
diff --git a/tests/llm/accuracy_conformance.py b/tests/llm/accuracy_conformance.pyindex 0d84cf127b8..a857a534d60 100644--- a/tests/llm/accuracy_conformance.py+++ b/tests/llm/accuracy_conformance.py@@ -34,8 +34,8 @@ def add_test_case(catalog, model, gpu_int8_ref, gpu_int4_ref, cpu_int8_ref, cpu_TEST_CATALOG = {}NOTEST=0.0# NAME, GPU_i8, GPU_i4, CPU_i8, CPU_i4-add_test_case(TEST_CATALOG, "TinyLlama/TinyLlama-1.1B-Chat-v1.0", NOTEST, NOTEST, 0.94, 0.77)-add_test_case(TEST_CATALOG, "Qwen/Qwen2-0.5B-Instruct", NOTEST, NOTEST, 0.82, 0.68)+add_test_case(TEST_CATALOG, "TinyLlama/TinyLlama-1.1B-Chat-v1.0", 0.97, 0.88, 0.95, 0.89)+add_test_case(TEST_CATALOG, "Qwen/Qwen2-0.5B-Instruct", 0.92, 0.75, 0.91, 0.73)# Extract configuration from catalogMODEL_IDS = list(TEST_CATALOG.keys())@@ -142,7 +142,7 @@ def setup_model(model_id):# Prepare ground truth dataset_seed(42)- use_chat_template = False # (tokenizer is not None and tokenizer.chat_template is not None)+ use_chat_template = tokenizer is not None and tokenizer.chat_template is not Nonegt_path = get_gt_path(model_id, use_chat_template)if not os.path.exists(gt_path):logger.info(f'Creating ground truth data: {gt_path}')@@ -200,7 +200,7 @@ def test_accuracy_conformance(model_id, precision, device):# Get expected values from catalog (use original device for lookup)expected_reference = get_reference(model_id, device, precision)if expected_reference == NOTEST:- pytest.xfail(f'Test is skipped for {model_id}, {precision}, {device}. Ticket 172236')+ pytest.xfail(f'Test is skipped for {model_id}, {precision}, {device}.')return# Ensure model is set up@@ -208,7 +208,7 @@ def test_accuracy_conformance(model_id, precision, device):logger.info(f"Model {model_id} not found in downloaded models, setting up now...")setup_model(model_id)- # os.environ["OV_GPU_DYNAMIC_QUANTIZATION_THRESHOLD"] = "1"+ os.environ["OV_GPU_DYNAMIC_QUANTIZATION_THRESHOLD"] = "1"task = 'text'ov_config = None@@ -222,7 +222,7 @@ def test_accuracy_conformance(model_id, precision, device):tokenizer = AutoTokenizer.from_pretrained(model_path)- use_chat_template = False # (tokenizer is not None and tokenizer.chat_template is not None)+ use_chat_template = tokenizer is not None and tokenizer.chat_template is not Nonegt_data = get_gt_path(model_id, use_chat_template)evaluator = wwb.Evaluator(diff --git a/tests/llm/requirements.txt b/tests/llm/requirements.txtindex 2d191289091..994dae16658 100644--- a/tests/llm/requirements.txt+++ b/tests/llm/requirements.txt@@ -3,4 +3,5 @@optimum-intelnncfwhowhatbench @ git+https://github.com/openvinotoolkit/openvino.genai.git#subdirectory=tools/who_what_benchmark-pytest\ No newline at end of file+pytest+jinja2>=3.1.0