This commit is contained in:
Miquel Farre 2024-11-14 11:20:23 +00:00 committed by drbh
parent b4e096c080
commit f9ee2500cf
1 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,11 @@ class VlmCausalLMBatch(FlashCausalLMBatch):
images.append(image)
else:
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:
raise RuntimeError(f"Invalid chunk type {chunk_type}")