multimodal: precompute hash for MultimodalDataItem (#14354)
Signed-off-by: Feng Su <sufeng@linux.alibaba.com> Signed-off-by: Junjie Mao <junjie.mao@linux.alibaba.com>
This commit is contained in:
@@ -243,6 +243,9 @@ class MultimodalDataItem:
|
||||
"""
|
||||
Set the pad value after first hashing the data
|
||||
"""
|
||||
if self.pad_value is not None:
|
||||
return
|
||||
|
||||
from sglang.srt.managers.mm_utils import hash_feature
|
||||
|
||||
if self.hash is None:
|
||||
|
||||
Reference in New Issue
Block a user