[3/N] Support and implement merged input processor for LLaVA model (#10676)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Co-authored-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
Cyrus Leung
2024-12-07 00:50:58 -08:00
committed by GitHub
co-authored by Roger Wang
parent acf092d348
commit 955fa9533a
10 changed files with 631 additions and 426 deletions
+1
View File
@@ -12,6 +12,7 @@ class MMInputMapper:
model_config: ModelConfig,
mm_registry: MultiModalRegistry = MULTIMODAL_REGISTRY,
):
self.model_config = model_config
self.mm_registry = mm_registry
self.multi_modal_input_mapper = mm_registry.create_input_mapper(
model_config)