mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 16:32:12 +00:00
fix
This commit is contained in:
parent
05464d26bf
commit
c7c2fdae8c
@ -190,6 +190,11 @@ class VlmCausalLMBatch(FlashCausalLMBatch):
|
|||||||
images.append(image)
|
images.append(image)
|
||||||
else:
|
else:
|
||||||
images.append([image])
|
images.append([image])
|
||||||
|
elif chunk_type == "video":
|
||||||
|
if config.model_type == "qwen2_vl":
|
||||||
|
# For now, treat video URLs as special tokens
|
||||||
|
# This will be processed in the text replacement section below
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise RuntimeError(f"Invalid chunk type {chunk_type}")
|
raise RuntimeError(f"Invalid chunk type {chunk_type}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user