You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parallel requests will be processed in queue if set max_tokens(request param) == max_num_tokens(trtllm build param)? #2865
changed the title [-]Parallel request will be processed in queue if set max_tokens(request param) == max_num_tokens(trtllm build param)?[/-][+]Parallel requests will be processed in queue if set max_tokens(request param) == max_num_tokens(trtllm build param)?[/+]on Mar 8, 2025
For a single request, the max generated tokens will be truncated to ensure input_tokens + max_tokens <= sequence_length <= max_tokens, and you can check if there are any warning logs.
For a single request, the max generated tokens will be truncated to ensure input_tokens + max_tokens <= sequence_length <= max_tokens, and you can check if there are any warning logs.
Thanks for answering. But my true question is that when one request set very big max_tokens, other requests will be blocked when the request end. Is it normal?
According to the docs, the conditions for blocking a request mainly include reaching the max_batch_size or the max_num_tokens, I think your case is the latter.
Activity
[-]Parallel request will be processed in queue if set max_tokens(request param) == max_num_tokens(trtllm build param)?[/-][+]Parallel requests will be processed in queue if set max_tokens(request param) == max_num_tokens(trtllm build param)?[/+]zhangts20 commentedon Mar 9, 2025
For a single request, the max generated tokens will be truncated to ensure input_tokens + max_tokens <= sequence_length <= max_tokens, and you can check if there are any warning logs.
zhaocc1106 commentedon Mar 9, 2025
Thanks for answering. But my true question is that when one request set very big max_tokens, other requests will be blocked when the request end. Is it normal?
zhangts20 commentedon Mar 9, 2025
According to the docs, the conditions for blocking a request mainly include reaching the max_batch_size or the max_num_tokens, I think your case is the latter.
zhaocc1106 commentedon Mar 9, 2025
Alright. Will the request with big max_tokens param occupy all tokens in advance even though the answering len do not reach the max len?