mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-08 19:04:52 +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")
|
||||
def filter(self, request_ids: List[int]):
|
||||
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
|
||||
indices = []
|
||||
for i, request_id in enumerate(request_ids):
|
||||
@ -85,6 +85,7 @@ class MllamaCausalLMBatch(VlmCausalLMBatch):
|
||||
]
|
||||
else:
|
||||
batch.cross_attention_states = None
|
||||
batch.pixel_values = None
|
||||
return batch
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user