From 8c97e47878dbf10d406d7ce6f3412ec4d7ada1f0 Mon Sep 17 00:00:00 2001 From: David Yastremsky Date: Sat, 7 Oct 2023 00:01:20 -0700 Subject: [PATCH 1/2] Add Python backend when vLLM backend built. --- build.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.py b/build.py index 7de2d95449..3ae50c2dbb 100755 --- a/build.py +++ b/build.py @@ -2504,6 +2504,11 @@ def enable_all(): log('backend "{}" at tag/branch "{}"'.format(parts[0], parts[1])) backends[parts[0]] = parts[1] + if "vllm" in backends: + if "python" not in backends: + log("vLLM backend requires Python backend, adding Python backend with tag {}".format(backends["vllm"])) + backends["python"] = backends["vllm"] + # Initialize map of repo agents to build and repo-tag for each. repoagents = {} for be in FLAGS.repoagent: From 334f3d3572cd1437592c486ef79d76fb2c2afd85 Mon Sep 17 00:00:00 2001 From: David Yastremsky Date: Sat, 7 Oct 2023 00:10:38 -0700 Subject: [PATCH 2/2] Run pre-commit hook --- build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 3ae50c2dbb..db73632c1d 100755 --- a/build.py +++ b/build.py @@ -2506,7 +2506,11 @@ def enable_all(): if "vllm" in backends: if "python" not in backends: - log("vLLM backend requires Python backend, adding Python backend with tag {}".format(backends["vllm"])) + log( + "vLLM backend requires Python backend, adding Python backend with tag {}".format( + backends["vllm"] + ) + ) backends["python"] = backends["vllm"] # Initialize map of repo agents to build and repo-tag for each.