mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-05-01 15:02:09 +00:00
Oops this doesn't belong here.
This commit is contained in:
parent
e6ee67f301
commit
f886747949
@ -291,11 +291,7 @@ impl State {
|
|||||||
None
|
None
|
||||||
}
|
}
|
||||||
Some(block_allocator) => {
|
Some(block_allocator) => {
|
||||||
if entry.request.input_length <= prefill_token_budget {
|
prefill_tokens += entry.request.input_length;
|
||||||
prefill_tokens += entry.request.input_length;
|
|
||||||
} else {
|
|
||||||
prefill_tokens = prefill_token_budget;
|
|
||||||
}
|
|
||||||
let max_new_tokens = match self.window_size {
|
let max_new_tokens = match self.window_size {
|
||||||
None => entry.request.stopping_parameters.max_new_tokens,
|
None => entry.request.stopping_parameters.max_new_tokens,
|
||||||
Some(window_size) => min(
|
Some(window_size) => min(
|
||||||
|
Loading…
Reference in New Issue
Block a user