Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/sglang/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Common utilities."""
"""Common utilities"""

import base64
import gc
Expand Down
4 changes: 4 additions & 0 deletions scripts/killall_sglang.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Kill all SGLang processes and free the GPU memory.

nvidia-smi
kill -9 $(ps aux | grep 'multiprocessing.spawn' | grep -v 'grep' | awk '{print $2}')
kill -9 $(ps aux | grep 'sglang.launch_server' | grep -v 'grep' | awk '{print $2}')
kill -9 $(ps aux | grep 'sglang.bench' | grep -v 'grep' | awk '{print $2}')

# Kill all processes occupying GPU memory, and enable it when needed.
# kill -9 $(nvidia-smi | sed -n '/Processes:/,$p' | grep " [0-9]" | awk '{print $5}')
Loading