mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 03:14:53 +00:00
Fix the image-to-text accuray issue
Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
parent
1a5ff1dc5f
commit
a27039bc51
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user