PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
Fix ruff SIM117 in eval CLI test (#2523)
Sun, Xuehaoc2dbac79c388
diff --git a/test/unit/common/eval/test_eval_cli.py b/test/unit/common/eval/test_eval_cli.pyindex 35c58892f..ffa8bd275 100644--- a/test/unit/common/eval/test_eval_cli.py+++ b/test/unit/common/eval/test_eval_cli.py@@ -574,9 +574,11 @@ class TestEvalWithVllm:vllm_args=None,)- with patch("auto_round.utils.DEVICE_ENVIRON_VARIABLE_MAPPING", {"cuda": "CUDA_VISIBLE_DEVICES"}):- with pytest.raises(RuntimeError, match="Failed to set multiprocessing start method to 'spawn'"):- eval_cli.eval_with_vllm(args)+ with (+ patch("auto_round.utils.DEVICE_ENVIRON_VARIABLE_MAPPING", {"cuda": "CUDA_VISIBLE_DEVICES"}),+ pytest.raises(RuntimeError, match="Failed to set multiprocessing start method to 'spawn'"),+ ):+ eval_cli.eval_with_vllm(args)class TestEvalTaskByTask: