Fix memory leak for chunked prefill 2 (#1858)

Co-authored-by: Liangsheng Yin <hnyls2002@gmail.com>
This commit is contained in:
Lianmin ZhengandLiangsheng Yin authored and GitHub committed 2024-10-31 14:51:51 -07:00
1 parent 8ce202a493
commit a2e0424abf
7 files changed
+138 -30

No files matched your search

+1 -3
View File
@@ -1,6 +1,4 @@
"""
Kill all SGLang processes and free the GPU memory.
"""
# Kill all SGLang processes and free the GPU memory.
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}')