Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions router/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,6 @@ async fn main() -> Result<(), RouterError> {

let supports_chunking = shard_info.chunked_prefill;
let max_batch_total_tokens = max_supported_batch_total_tokens;
if max_input_length as u32 > max_batch_prefill_tokens && !supports_chunking {
return Err(RouterError::ArgumentValidation(format!("`max_batch_prefill_tokens` must be >= `max_input_length`. Given: {max_batch_prefill_tokens} and {max_input_length}")));
}
if max_batch_prefill_tokens > max_batch_total_tokens {
return Err(RouterError::ArgumentValidation(format!("`max_batch_prefill_tokens` must be <= `max_batch_total_tokens`. Given: {max_batch_prefill_tokens} and {max_batch_total_tokens}")));
}
Expand Down
Loading