[MM] Simplify _apply_hf_processor_main (#53275)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-08-22 01:49:37 -07:00
committed by GitHub
parent 7ca49fbe4b
commit 0b19ebcacd
90 changed files with 1848 additions and 1706 deletions
+1 -4
View File
@@ -91,10 +91,7 @@ class BaseDummyInputsBuilder(ABC, Generic[_I]):
# prompt tokens.
dummy_prompt = []
else:
dummy_prompt = tokenizer.encode(
dummy_text,
**self.info.default_tok_params.get_encode_kwargs(),
)
dummy_prompt = tokenizer.encode(dummy_text, truncation=False)
return ProcessorInputs(
prompt=dummy_prompt,