From 4186f217c761554d854a8514a684af2435677db6 Mon Sep 17 00:00:00 2001 From: Ata Fatahi Date: Wed, 11 Dec 2024 23:33:54 -0800 Subject: [PATCH] fix comment Signed-off-by: Ata Fatahi --- scripts/killall_sglang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/killall_sglang.sh b/scripts/killall_sglang.sh index 69ad190564b..4057d2be2fb 100755 --- a/scripts/killall_sglang.sh +++ b/scripts/killall_sglang.sh @@ -8,7 +8,7 @@ kill -9 $(ps aux | grep 'sglang::' | grep -v 'grep' | awk '{print $2}') 2>/dev/n kill -9 $(ps aux | grep 'sglang.launch_server' | grep -v 'grep' | awk '{print $2}') 2>/dev/null kill -9 $(ps aux | grep 'sglang.bench' | grep -v 'grep' | awk '{print $2}') 2>/dev/null -# Clean all GPU processes +# Clean all GPU processes if any argument is provided if [ $# -gt 0 ]; then kill -9 $(nvidia-smi | sed -n '/Processes:/,$p' | grep " [0-9]" | awk '{print $5}') 2>/dev/null lsof /dev/nvidia* | awk '{print $2}' | xargs kill -9 2>/dev/null