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

Improve the control of streaming and improve the first token latency in streaming #117

Merged
merged 3 commits into from
Jan 30, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
improve docs
  • Loading branch information
merrymercy committed Jan 30, 2024
commit 60d795ee1cb071e24dd8102c31837dc889583be1
4 changes: 2 additions & 2 deletions python/sglang/srt/server_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ServerArgs:
schedule_heuristic: str = "lpm"
schedule_conservativeness: float = 1.0
random_seed: int = 42
stream_interval: int = 6
stream_interval: int = 8
disable_log_stats: bool = False
log_stats_interval: int = 10
log_level: str = "info"
Expand Down Expand Up @@ -132,7 +132,7 @@ def add_cli_args(parser: argparse.ArgumentParser):
"--stream-interval",
type=int,
default=ServerArgs.stream_interval,
help="The interval in terms of token length for streaming",
help="The interval (or buffer size) for streaming in terms of the token length. A smaller value makes streaming smoother, while a larger value makes the throughput higher",
)
parser.add_argument(
"--log-level",
Expand Down