Big bug fix, moving the prompt to match how training was done, 2.3 point boost on olmocr-bench

This commit is contained in:
Jake Poznanski 2025-05-14 19:51:00 +00:00
parent 28966b9f14
commit ffee4c9740

View File

@ -138,8 +138,8 @@ async def build_page_query(local_pdf_path: str, page: int, target_longest_image_
{
"role": "user",
"content": [
{"type": "text", "text": build_finetuning_prompt(anchor_text)},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_base64}"}},
{"type": "text", "text": build_finetuning_prompt(anchor_text)},
],
}
],