Oops this doesn't belong here.

This commit is contained in:
Nicolas Patry 2024-08-28 14:49:00 +02:00
parent e6ee67f301
commit f886747949
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -291,11 +291,7 @@ impl State {
None
}
Some(block_allocator) => {
if entry.request.input_length <= prefill_token_budget {
prefill_tokens += entry.request.input_length;
} else {
prefill_tokens = prefill_token_budget;
}
prefill_tokens += entry.request.input_length;
let max_new_tokens = match self.window_size {
None => entry.request.stopping_parameters.max_new_tokens,
Some(window_size) => min(