Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add foreground argument #343

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/launch_triton_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def parse_arguments():
'-f',
action='store_true',
help='launch tritonserver regardless of other instances running')
parser.add_argument(
'--foreground',
action='store_true',
help='launch tritonserver in the foreground',
)
parser.add_argument('--log',
action='store_true',
help='log triton server stats into log_file')
Expand Down Expand Up @@ -98,4 +103,6 @@ def get_cmd(world_size, tritonserver, grpc_port, http_port, metrics_port,
cmd = get_cmd(int(args.world_size), args.tritonserver, args.grpc_port,
args.http_port, args.metrics_port, args.model_repo, args.log,
args.log_file, args.tensorrt_llm_model_name)
subprocess.Popen(cmd)
proc = subprocess.Popen(cmd)
if args.foreground:
proc.wait()