Fix prefill oom (#1743)
This commit is contained in:
1 parent
09603c6dc9
commit
efb099cdee
1 file changed
+1
-1
@@ -427,7 +427,7 @@ class Scheduler:
|
|||||||
if req.sampling_params.max_new_tokens is not None
|
if req.sampling_params.max_new_tokens is not None
|
||||||
else 1 << 30
|
else 1 << 30
|
||||||
),
|
),
|
||||||
self.max_req_input_len - 1 - len(req.origin_input_ids),
|
self.max_req_input_len - len(req.origin_input_ids),
|
||||||
)
|
)
|
||||||
|
|
||||||
self.waiting_queue.append(req)
|
self.waiting_queue.append(req)
|
||||||
|
|||||||
Reference in new issue
Block a user