Fix the image-to-text accuray issue

Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
yuanwu 2025-05-11 15:21:15 +00:00
parent 1a5ff1dc5f
commit a27039bc51
2 changed files with 478 additions and 347 deletions

View File

@ -338,6 +338,9 @@ class FlashVlmCausalLMBatch(FlashCausalLMBatch):
image_id += 1
full_text = image_text_replacement_fixup(config, full_text)
log_master(
logger.debug, f"full_text: {full_text}"
)
input_ids = tokenizer(
full_text,
truncation=True,