Implement head_qa benchmark for inference evaluation pipeline - #46
Open
boysack wants to merge 9 commits into
Open
Implement head_qa benchmark for inference evaluation pipeline#46boysack wants to merge 9 commits into
boysack wants to merge 9 commits into
Conversation
…size for inference
…roved inference handling
…nce and compatibility
… activation, modified inference_pipeline.sh to support new benchmark
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.
Overview
This PR officially integrates the
head_qa(HEAlthcare Dataset) benchmark into the evaluation pipeline. This enables the evaluation of Meditron models against multi-choice questions derived from the Spanish healthcare system specialization exams.Core Implementation
HeadQAclass inbenchmarks.py, enabling the downloading, parsing, and execution of the dataset within the standardinference.pyandevaluate.pyworkflow.custom_preprocessingstatic method to accurately maphead_qa's nested question/answer structure into the standard A/B/C/D/E multiple-choice format expected by the Meditron evaluator.boysack/head_qa). This ensures the evaluation runs seamlessly out-of-the-box.meditron-7bandmeditron-7b-awqHugging Face paths directly into the mastercheckpointsdictionary ininference_pipeline.shso the benchmark can be run natively without passing manual URIs.Other fixes
meditron-7B-AWQ), bypassed FlashInfer warmup spikes (enforce_eager=True), capped VRAM utilization at0.8, and removed the hardcodedtensor_parallel_size.best_of,use_beam_search).namespace___resource(must be updated in the other benchmarks), patched the missinginstructions.jsontemplate, and fixed evaluation output routing.