PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
add enable_torch_compile mark to SGLang and vLLM throughput tests (#2226)
Xin He4b7cc7e88709
diff --git a/test/e2e/test_cuda/test_sglang_throughput.py b/test/e2e/test_cuda/test_sglang_throughput.pyindex dcdaf05a2..880815163 100644--- a/test/e2e/test_cuda/test_sglang_throughput.py+++ b/test/e2e/test_cuda/test_sglang_throughput.py@@ -46,8 +46,6 @@ from typing import Listimport pytestimport torch-pytestmark = pytest.mark.enable_torch_compile-# ---------------------------------------------------------------------------# Output sink# ---------------------------------------------------------------------------@@ -94,6 +92,7 @@ pytestmark = [not torch.cuda.is_available(),reason="SGLang throughput tests require a CUDA GPU",),+ pytest.mark.enable_torch_compile,]diff --git a/test/e2e/test_cuda/test_vllm_throughput.py b/test/e2e/test_cuda/test_vllm_throughput.pyindex a13a339fe..d1367e4f8 100644--- a/test/e2e/test_cuda/test_vllm_throughput.py+++ b/test/e2e/test_cuda/test_vllm_throughput.py@@ -55,8 +55,6 @@ from typing import Listimport pytestimport torch-pytestmark = pytest.mark.enable_torch_compile-# ---------------------------------------------------------------------------# Output sink# ---------------------------------------------------------------------------@@ -83,6 +81,7 @@ pytestmark = [not torch.cuda.is_available(),reason="vLLM throughput tests require a CUDA GPU",),+ pytest.mark.enable_torch_compile,# The "low" preset fits on a 24 GiB card; the "large" preset needs ~40+ GiB.]