[Model] Siglip2 Model Support (#27566)
Signed-off-by: piood <2477084691@qq.com>
This commit is contained in:
@@ -174,9 +174,11 @@ class SiglipMultiModalProcessor(BaseMultiModalProcessor[SiglipProcessingInfo]):
|
||||
@cached_property
|
||||
def image_token_id(self) -> int:
|
||||
tokenizer = self.info.get_tokenizer()
|
||||
dummy_token_id = 0
|
||||
|
||||
assert dummy_token_id not in tokenizer.all_special_ids
|
||||
dummy_token_id = next(
|
||||
token_id
|
||||
for token_id in range(tokenizer.vocab_size)
|
||||
if token_id not in tokenizer.all_special_ids
|
||||
)
|
||||
|
||||
return dummy_token_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user