Updating VLM causal model with updated context.

This commit is contained in:
Nicolas Patry 2024-09-10 18:00:21 +02:00
parent 1bae63973a
commit aac91d1d26
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -367,9 +367,7 @@ class VlmCausalLM(FlashCausalLM):
with self._forward_context(
block_tables=block_tables,
cu_seqlen_prefill=cu_seqlen_prefill,
input_lengths=batch.input_lengths,
input_lengths_tensor=input_lengths,
prefix_lens=batch.prefix_lens,
prefix_lens_tensor=prefix_lens_tensor,
):
max_k = (input_lengths + prefix_lens_tensor).max().item()