mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-19 22:02:06 +00:00
fmt
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
parent
22ed5703de
commit
48067e4a0d
@ -1595,7 +1595,9 @@ class FlashCausalLM(Model):
|
||||
if max_total_tokens is None:
|
||||
if get_support_chunking():
|
||||
model_max_length = self.tokenizer.model_max_length
|
||||
max_position_embeddings = getattr(self.config, "max_position_embeddings", model_max_length)
|
||||
max_position_embeddings = getattr(
|
||||
self.config, "max_position_embeddings", model_max_length
|
||||
)
|
||||
max_total_tokens = min(
|
||||
num_blocks * BLOCK_SIZE, model_max_length, max_position_embeddings
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user