Add completions_logprob endpoint and extend BYOB scorers/datasets for Sovereign benchmarks - #1
Closed
kanishks-23 wants to merge 3 commits into
Closed
kanishks-23 wants to merge 3 commits into
kanishks-23 wants to merge 3 commits into
Conversation
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
2 times, most recently
from
April 29, 2026 14:31
d5f1ed8 to
4a0cee3
Compare
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
from
April 30, 2026 10:08
af194da to
3ac7a3e
Compare
wprazuch
approved these changes
Apr 30, 2026
wprazuch
reviewed
Apr 30, 2026
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
from
May 3, 2026 14:28
b241165 to
ca07cb8
Compare
7 tasks
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
from
May 4, 2026 15:15
ca07cb8 to
cdaa77a
Compare
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
2 times, most recently
from
May 5, 2026 07:57
5ae25d7 to
bb06b86
Compare
Add support for logprob-based multiple-choice evaluation within the BYOB framework, plus several new scorers and dataset-loading enhancements. Endpoint and runner: - Add completions_logprob as a supported endpoint type with Pydantic validation, CLI support, and health-check handling - Logprob scoring uses /v1/completions with max_tokens=0, echo=true, logprobs=1 to score candidate answers - New call_model_loglikelihood helper in runner.py Scorers: - multiple_choice_acc: logprob-based MCQ scoring - mcq_letter_extract: parse first A-D letter from free-form responses - gsm8k_answer: GSM8K-style numeric answer extraction - boolean_yesno: yes/no task scorer - chrf / chrF++ (sacreBLEU-style character n-gram F-score) - Extended ROUGE support Datasets: - HuggingFace loader parses additional query parameters - trust_remote_code=true enabled where required Signed-off-by: kanishks <kanishks@nvidia.com>
kanishks-23
force-pushed
the
kanishks/sovereign_benchmarks
branch
from
May 5, 2026 08:57
bb06b86 to
45e9484
Compare
When @benchmark(choices_field=...) is set but the row doesn't expose that field, eval_logic silently falls back to @benchmark(choices=...). That makes mis-named or missing fields hard to diagnose. Emit a warning with sample_id and choices_field so the fallback is visible in run logs. Signed-off-by: kanishks <kanishks@nvidia.com>
HuggingFaceFetcher.fetch built the cache filename from (dataset_name, config, split, filters) only, so URIs that differ only in their data_files= / field= query params collided on the same cache entry. The first fetch's content was returned for every subsequent language regardless of which file was actually requested. This silently broke per-language datasets that share a single HF repo but split content across files (e.g. IndicGenBench / FLORES_in's flores_en_<lang>_test.json, IndicGenBench / CrossSum_in's crosssum_english-<lang>_test.json). Every language's task evaluated against whichever language was fetched first. Append `datafile-<value>` and `field-<value>` segments to the cache filename when those options are present so each (data_files, field) pair gets a distinct on-disk cache entry. Adds a regression test that fetches three different data_files= URIs and asserts each lands in its own cache file with its own contents. Signed-off-by: kanishks <kanishks@nvidia.com>
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.
BYOB support for logprob-based multiple-choice evaluation and extends dataset loading/scoring utilities needed by the Sovereign benchmark suite.