Use simulate acc len from sglang.environ (#10771)

This commit is contained in:
Liangsheng Yin
2025-09-23 12:59:50 +08:00
committed by GitHub
parent 16adf3dcab
commit 632b7d8cc9
3 changed files with 31 additions and 13 deletions
+14
View File
@@ -7,9 +7,23 @@ from sglang.srt.entrypoints.http_server import launch_server
from sglang.srt.server_args import prepare_server_args
from sglang.srt.utils import kill_process_tree
MOVE_ENVS_WARN = """
########################################################################
# For contributors and developers: #
# Please move environment variable definitions to 'sglang/environ.py' #
# using the following pattern: #
# SGLANG_XXX = EnvBool(False) #
# #
########################################################################
"""
if __name__ == "__main__":
server_args = prepare_server_args(sys.argv[1:])
from sglang.srt.server_args import print_deprecated_warning
print_deprecated_warning(MOVE_ENVS_WARN)
try:
launch_server(server_args)
finally: