Fix edge case for truncated (#1747)
This commit is contained in:
1 parent
1f26e8b8e4
commit
17536e7e3d
1 file changed
+1
-1
@@ -416,7 +416,7 @@ class Scheduler:
|
||||
)
|
||||
|
||||
# Truncate prompts that are too long
|
||||
if len(req.origin_input_ids) >= self.max_req_input_len:
|
||||
if len(req.origin_input_ids) > self.max_req_input_len:
|
||||
logger.warning(
|
||||
"Request length is longer than the KV cache pool size or "
|
||||
"the max context length. Truncated!!!"
|
||||
|
||||
Reference in new issue
Block a user