Skip to content

Commit

Permalink
show gpu status after clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Ata Fatahi <[email protected]>
  • Loading branch information
MrAta committed Dec 12, 2024
1 parent 9953c68 commit a469eb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/killall_sglang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ kill -9 $(ps aux | grep 'sglang.bench' | grep -v 'grep' | awk '{print $2}') 2>/d
# Clean all GPU processes
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

# Show GPU status after clean up
nvidia-smi

0 comments on commit a469eb1

Please sign in to comment.