mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
fix multi-modality concatenate
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
parent
acc02aeb3e
commit
dbb24255c3
@ -262,8 +262,8 @@ class FlashVlmCausalLMBatch(FlashCausalLMBatch):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@tracer.start_as_current_span("concatenate")
|
@tracer.start_as_current_span("concatenate")
|
||||||
def concatenate(cls, batches):
|
def concatenate(cls, batches, padded_total_bs: int = 0):
|
||||||
batch = super(FlashVlmCausalLMBatch, cls).concatenate(batches)
|
batch = super(FlashVlmCausalLMBatch, cls).concatenate(batches, padded_total_bs)
|
||||||
batch.pixel_values = None
|
batch.pixel_values = None
|
||||||
batch.pixel_attention_mask = None
|
batch.pixel_attention_mask = None
|
||||||
batch.image_sizes = None
|
batch.image_sizes = None
|
||||||
|
@ -48,8 +48,8 @@ class FlashMllamaCausalLMBatch(FlashVlmCausalLMBatch):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@tracer.start_as_current_span("concatenate")
|
@tracer.start_as_current_span("concatenate")
|
||||||
def concatenate(cls, batches):
|
def concatenate(cls, batches, padded_total_bs: int = 0):
|
||||||
batch = super().concatenate(batches)
|
batch = super().concatenate(batches, padded_total_bs)
|
||||||
batch.pixel_values = None
|
batch.pixel_values = None
|
||||||
batch.pixel_attention_mask = None
|
batch.pixel_attention_mask = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user