File tree Expand file tree Collapse file tree
engine_integration/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -x
2+ set -euo pipefail
33
44SCRIPT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
55ENGINE_DIR=$( cd " $SCRIPT_DIR /.." && pwd)
@@ -44,7 +44,7 @@ setup_vllm() {
4444 popd
4545}
4646
47- setup_sgl () {
47+ setup_sglang () {
4848 pushd " $ENGINE_DIR "
4949
5050 git clone -b v0.4.6.post2 https://github.com/sgl-project/sglang.git sglang-v0.4.6.post2
@@ -70,8 +70,30 @@ setup_sgl() {
7070 popd
7171}
7272
73+ op=${1:- }
74+
75+ if [ -z " $op " ]; then
76+ echo " Usage: $0 <vllm|sglang|all>"
77+ exit 1
78+ fi
79+
7380# Check for uv before proceeding
7481check_uv
7582
76- setup_vllm
77- setup_sgl
83+ case " $op " in
84+ " vllm" )
85+ setup_vllm
86+ ;;
87+ " sglang" )
88+ setup_sglang
89+ ;;
90+ " all" )
91+ setup_vllm
92+ setup_sglang
93+ ;;
94+ * )
95+ echo " Error: Unknown option '$op '"
96+ echo " Usage: $0 <vllm|sglang|all>"
97+ exit 1
98+ ;;
99+ esac
You can’t perform that action at this time.
0 commit comments