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
[PT FE] Keep tqdm below 4.70 for LLM model hub tests and re-enable the opt_gptq export test (#37890)
Evgeny Kotov8c70a5a561e8
diff --git a/tests/model_hub_tests/pytorch/envs/llm.txt b/tests/model_hub_tests/pytorch/envs/llm.txtindex 69865ec2884..73f512376e8 100644--- a/tests/model_hub_tests/pytorch/envs/llm.txt+++ b/tests/model_hub_tests/pytorch/envs/llm.txt@@ -17,6 +17,17 @@ huggingface-hub==1.10.1kernels==0.14.1kernels-data==0.14.1+# tqdm is pulled in transitively. 4.70.0 rewrote tqdm.contrib.concurrent: thread_map now raises+# "ValueError: min() arg is an empty sequence" for unsized iterables. huggingface-hub passes exactly+# such a generator to thread_map when downloading a kernel-type repository, so+# kernels.get_kernel("kernels-community/quantization-gptq") fails and gptqmodel falls back (the model+# still loads, only a warning is logged) from HFKernelLinear (fp32 reference math) to+# TorchFusedQuantLinear, which computes the reference in bfloat16. Its noise (~0.069) exceeds the+# accuracy tolerance of test_llm.py (atol=rtol=0.05), while the fp32 reference stays at ~0.004.+# A fix is proposed upstream (tqdm/tqdm#1805, #1802) but neither merged nor released; raise the bound+# only after verifying that the new tqdm release contains it.+tqdm<4.70+# quantized model depsautoawq==0.2.9; platform_system == "Linux" and platform_machine == "x86_64"triton==3.6.0; platform_system == "Linux" and platform_machine == "x86_64"diff --git a/tests/model_hub_tests/pytorch/test_llm.py b/tests/model_hub_tests/pytorch/test_llm.pyindex 6891056df61..29ef648032d 100644--- a/tests/model_hub_tests/pytorch/test_llm.py+++ b/tests/model_hub_tests/pytorch/test_llm.py@@ -690,7 +690,7 @@ class TestLLMModel(TestTorchConvertModel):]if platform.machine() not in ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64']:models.extend([- ("opt_gptq", "katuni4ka/opt-125m-gptq"),+ ("opt_gptq", "optimum-intel-internal-testing/opt-125m-gptq-4bit"),("llama", "TinyLlama/TinyLlama-1.1B-Chat-v1.0"),("llama_awq", "casperhansen/tinyllama-1b-awq"),("llama_compressed_tensors",@@ -754,14 +754,9 @@ class TestLLMModel(TestTorchConvertModel):def get_supported_export_precommit_models():if platform.machine() in ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64']:return []-- # Reason for "opt_gptq", "katuni4ka/opt-125m-gptq" skip: CVS-191720- # return [- # ("llama_awq", "casperhansen/tinyllama-1b-awq"),- # ("opt_gptq", "katuni4ka/opt-125m-gptq"),- # ]return [- ("llama_awq", "casperhansen/tinyllama-1b-awq")+ ("llama_awq", "casperhansen/tinyllama-1b-awq"),+ ("opt_gptq", "optimum-intel-internal-testing/opt-125m-gptq-4bit"),]@pytest.mark.parametrize("type,name", get_supported_export_precommit_models())