Skip to content

Commit

Permalink
Fix chunked prefill size for bench_offline_throughput (#2234)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Nov 28, 2024
1 parent b79fffd commit 09798b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/server_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __post_init__(self):
if self.served_model_name is None:
self.served_model_name = self.model_path

if self.chunked_prefill_size <= 0:
if self.chunked_prefill_size is not None and self.chunked_prefill_size <= 0:
# Disable chunked prefill
self.chunked_prefill_size = None

Expand Down

0 comments on commit 09798b3

Please sign in to comment.