mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
mllama filter crash fix
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
parent
d05a5c3f0a
commit
9f6d1704fe
@ -59,7 +59,7 @@ class MllamaCausalLMBatch(VlmCausalLMBatch):
|
|||||||
@tracer.start_as_current_span("filter")
|
@tracer.start_as_current_span("filter")
|
||||||
def filter(self, request_ids: List[int]):
|
def filter(self, request_ids: List[int]):
|
||||||
assert self.image_indices is not None
|
assert self.image_indices is not None
|
||||||
batch = super().filter(request_ids)
|
batch = super(VlmCausalLMBatch, self).filter(request_ids)
|
||||||
assert self.image_indices is not None
|
assert self.image_indices is not None
|
||||||
indices = []
|
indices = []
|
||||||
for i, request_id in enumerate(request_ids):
|
for i, request_id in enumerate(request_ids):
|
||||||
@ -85,6 +85,7 @@ class MllamaCausalLMBatch(VlmCausalLMBatch):
|
|||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
batch.cross_attention_states = None
|
batch.cross_attention_states = None
|
||||||
|
batch.pixel_values = None
|
||||||
return batch
|
return batch
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user