[Fix] Optimize the evaluation process for OCR-Reasoning#1413
Open
shannanyinxiang wants to merge 2 commits intoopen-compass:mainfrom
Open
[Fix] Optimize the evaluation process for OCR-Reasoning#1413shannanyinxiang wants to merge 2 commits intoopen-compass:mainfrom
shannanyinxiang wants to merge 2 commits intoopen-compass:mainfrom
Conversation
To accelerate the LLM judging process, delete the hardcoded "nproc=1" in the evaluation of OCR_Reasoning.
The OCR-Reasoning evaluation involves scoring of reasoning process. Moreover, the LLM judge is prompted to output explanatory text before final ratings (https://github.com/open-compass/VLMEvalKit/blob/2c25371d602909ae3d6d395185aff1bc9493262d/vlmeval/dataset/utils/ocr_reasoning.py#L7). Therefore, the original 1024 max_tokens setting is consistently insufficient, leading to unintended response truncation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix1: delete the hardcoded "nproc=1" in the evaluation of OCR_Reasoning
Delete the hardcoded "nproc=1" in the evaluation of OCR_Reasoning to accelerate the LLM judging process.
fix2: Increase max_tokens of the LLM Judge for OCR-Reasoning
The OCR-Reasoning evaluation involves scoring of reasoning processes where the LLM judge is prompted to output explanatory text before final ratings.
VLMEvalKit/vlmeval/dataset/utils/ocr_reasoning.py
Line 7 in 2c25371
Therefore, the original 1024 max_tokens setting is insufficient, constantly leading to unintended response truncation.