This commit is contained in:
Nicolas Patry 2024-10-23 15:23:39 +08:00
parent 0a01dde986
commit 5c3efbc763
No known key found for this signature in database
GPG Key ID: 788A1EA699458B2F

View File

@ -1418,7 +1418,7 @@ class FlashCausalLM(Model):
)
max_total_tokens = available_blocks
else:
max_total_tokens = batch.num_blocks
max_total_tokens = len(batch.input_ids)
max_input_tokens = (
batch.num_blocks - 1
if max_input_tokens is None