[Misc] Move config fields to MultiModalConfig (#17343)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-04-29 14:37:21 +08:00
committed by GitHub
parent cde384cd92
commit ebb3930d28
8 changed files with 62 additions and 36 deletions

View File

@@ -51,8 +51,7 @@ class Processor:
self.mm_input_cache_client = MirroredProcessingCache(self.model_config)
# Multi-modal hasher (for images)
self.use_hash = (
not self.model_config.disable_mm_preprocessor_cache) or \
self.use_hash = self.mm_input_cache_client.use_cache or \
self.cache_config.enable_prefix_caching
def _validate_logprobs(