30 lines
885 B
Bash
30 lines
885 B
Bash
#!/usr/bin/env bash
|
|
# Stop the SGLang TPxDP server through the shared deployment layer.
|
|
# Usage: stop_sglang_docker.sh <TP> <DP>
|
|
set -Eeuo pipefail
|
|
|
|
TP="${1:-}"
|
|
DP="${2:-}"
|
|
if [[ -z "$TP" || -z "$DP" ]]; then
|
|
echo "Usage: $0 <TP> <DP>"
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# shellcheck source=/dev/null
|
|
source "${SCRIPT_DIR}/../../../scripts/common/lib.sh"
|
|
# shellcheck source=/dev/null
|
|
source "${SCRIPT_DIR}/../../../scripts/common/platform.sh"
|
|
# shellcheck source=/dev/null
|
|
source "${SCRIPT_DIR}/config.env"
|
|
# shellcheck source=/dev/null
|
|
source "${SCRIPT_DIR}/../../../scripts/common/deploy_cli.sh"
|
|
|
|
log "stopping SGLang server tp=${TP} dp=${DP} via deploy profile"
|
|
deploy_stop \
|
|
"${DEPLOY_PROFILE:-pro6000/kimi3_pro6000_sglang_tp32ep32}" \
|
|
"$TP" "$DP" \
|
|
"${SGLANG_PORT:-30000}" \
|
|
"$MODEL_PATH" \
|
|
"${EXPERIMENT}_sglang_tp${TP}_dp${DP}"
|