From 3176bd381568b3533532ab82417a49973e8b7189 Mon Sep 17 00:00:00 2001 From: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com> Date: Thu, 30 Oct 2025 10:41:37 +0800 Subject: [PATCH] [None][fix] Fix UnboundLocalError. (#8756) Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com> --- tests/integration/defs/perf/test_perf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/integration/defs/perf/test_perf.py b/tests/integration/defs/perf/test_perf.py index beb0880b6d..82793bb200 100644 --- a/tests/integration/defs/perf/test_perf.py +++ b/tests/integration/defs/perf/test_perf.py @@ -1646,7 +1646,6 @@ class MultiMetricPerfTest(AbstractPerfScriptTestClass): benchmark_cmd += [f"--streaming"] #use default yaml config if self._config.backend == "pytorch": - import yaml pytorch_config_path = os.path.join(engine_dir, "extra-llm-api-config.yml") if not os.path.exists(pytorch_config_path): @@ -1658,7 +1657,6 @@ class MultiMetricPerfTest(AbstractPerfScriptTestClass): yaml.dump(config, f, default_flow_style=False) benchmark_cmd += [f"--extra_llm_api_options={pytorch_config_path}"] elif self._config.backend == "_autodeploy": - import yaml autodeploy_config_path = os.path.join(engine_dir, "extra_llm_api_options.yaml") if not os.path.exists(autodeploy_config_path):