Unverified Commit 5fc4b600 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

Add sanity check for max_running_requests (#5016)

parent b868526d
......@@ -116,6 +116,7 @@ class TpModelWorker:
),
self.model_runner.req_to_token_pool.size,
)
assert self.max_running_requests > 0, "max_running_request is zero"
self.max_req_len = min(
self.model_config.context_len - 1,
self.max_total_num_tokens - 1,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment