[VLM] Keep track of whether prompt replacements have been applied (#13215)

This commit is contained in:
Cyrus Leung
2025-02-14 20:20:46 +08:00
committed by GitHub
parent 556ef7f714
commit 4da1f667e9
10 changed files with 372 additions and 328 deletions

View File

@@ -484,6 +484,14 @@ class GLM4VDummyInputsBuilder(BaseDummyInputsBuilder[GLM4VProcessingInfo]):
class GLM4VMultiModalProcessor(BaseMultiModalProcessor[GLM4VProcessingInfo]):
def _hf_processor_applies_repl(
self,
prompt_text: str,
mm_items: MultiModalDataItems,
hf_processor_mm_kwargs: Mapping[str, object],
) -> bool:
return False
def _get_mm_fields_config(
self,
hf_inputs: BatchFeature,