Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Oct 23, 2024
1 parent 5c3efbc commit 82a6cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/text_generation_server/models/flash_causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,9 +1418,9 @@ def warmup(
)
max_total_tokens = available_blocks
else:
max_total_tokens = len(batch.input_ids)
max_total_tokens = sum(len(input_ids) for input_ids in batch.input_ids)
max_input_tokens = (
batch.num_blocks - 1
max_total_tokens - 1
if max_input_tokens is None
else max_input_tokens
)
Expand Down

0 comments on commit 82a6cb8

Please sign in to comment.