Datasets:
task_id stringlengths 15 53 | repo stringclasses 36
values | base_commit stringlengths 40 40 | language stringclasses 10
values | query_type stringclasses 2
values | changed_lines int32 3 250 | query stringlengths 60 6.02k | query_terse_ide stringlengths 33 139 | query_noisy_casual stringlengths 62 196 | query_symptom_debug stringlengths 81 415 | query_agent_handoff stringlengths 92 335 | query_feature_plan stringlengths 103 375 | query_arch_how stringlengths 66 283 | gt_files listlengths 1 6 | gt_spans listlengths 1 68 | neutral_files listlengths 0 20 | merged_at stringdate 2016-09-28 15:58:00 2026-11-25 00:47:37 | pr_url stringlengths 38 76 | issue_urls listlengths 0 2 | paths_scrubbed bool 2
classes | in_swebench_verified bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EleutherAI__lm-evaluation-harness-46 | EleutherAI/lm-evaluation-harness | c7e7a0503f8960c86a8bf4940ec34176cf160164 | python | real_issue_pr | 4 | Implement the RACE evaluation
From the GPT-3 paper
> Next we evaluate GPT-3 on the task of reading comprehension. We use a suite of 5 datasets including abstractive, multiple choice, and span based answer formats in both dialog and single question settings. We observe a wide spread in GPT-3’s performance across these... | where is the RACE multiple-choice task and evaluation wired up? | need RACE eval in the harness, middle/high school multiple choice + data processing already done — where's the task cfg and scoring impl? | RACE evaluation isn't available, so I can't run the middle- and high-school multiple-choice reading comprehension task. Where are task definitions and evaluation behavior connected? | Find how BoolQ defines its task interface and evaluation flow. Identify the production code to add RACE dataset processing and multiple-choice evaluation. | I want to add RACE as a reading-comprehension task with multiple-choice evaluation for middle- and high-school exam questions. Where does the task configuration connect to dataset processing and scoring? | How does a task like BoolQ flow from dataset loading through prompt construction to evaluation? How are multiple-choice reading-comprehension tasks represented in the harness? | [
"lm_eval/tasks/race.py"
] | [
{
"file": "lm_eval/tasks/race.py",
"start": 4,
"end": 4,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/race.py",
"start": 22,
"end": 42,
"symbol": "RACE._collate_data"
}
] | [
"lm_eval/tasks/common.py",
"lm_eval/utils_stream.py"
] | 2020-10-22T22:57:02Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/46 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/21"
] | true | false |
EleutherAI__lm-evaluation-harness-56 | EleutherAI/lm-evaluation-harness | dcadfa7c0861030847b9d683415072f1a0b7a17c | python | real_issue_pr | 31 | Implement the Natural Language Inference (NLI) evaluation
From the GPT-3 paper
> Natural Language Inference (NLI) [Fyo00] concerns the ability to understand the relationship between two sentences. In practice, this task is usually structured as a two or three class classification problem where the model classifies wh... | where is NLI evaluation wired for RTE and ANLI, following BoolQ? | NLI data processing is there, eval still missing — find the BoolQ-style task setup for RTE/ANLI | NLI data processing is implemented, but the evaluation task is missing. Where does BoolQ define the evaluation flow to mirror for RTE and ANLI? | Trace the BoolQ task implementation and identify the production code needed to add NLI evaluation for RTE and ANLI. Focus on task configuration and scoring. | We need to add NLI evaluation for binary RTE and three-class ANLI, using the existing data processing and modeling the task after BoolQ. Where does the task wiring live? | How does a task such as BoolQ flow from dataset processing through evaluation and scoring? How would that mechanism apply to NLI datasets like RTE and ANLI? | [
"lm_eval/tasks/lambada.py",
"lm_eval/tasks/superglue.py"
] | [
{
"file": "lm_eval/tasks/lambada.py",
"start": 8,
"end": 45,
"symbol": "Lambada"
},
{
"file": "lm_eval/tasks/superglue.py",
"start": 268,
"end": 284,
"symbol": "SGWinogradSchemaChallenge.evaluate"
}
] | [
"lm_eval/base.py",
"lm_eval/tasks/common.py",
"lm_eval/utils.py"
] | 2020-10-24T19:56:22Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/56 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/23"
] | true | false |
EleutherAI__lm-evaluation-harness-59 | EleutherAI/lm-evaluation-harness | fb5aaf5120c4b6f6533d5f17c38d5c5784f0b198 | python | real_issue_pr | 11 | Add flag to allow the evaluations to be carried out on a subset of the eval tasks | how do i run evaluations on only a subset of tasks? | need a flag to eval just selected tasks, not the whole task set — where's task selection wired? | I want to run an evaluation on only a few tasks, but it runs the full task set. Where are tasks selected and passed into evaluation? | Find the CLI and evaluation wiring for selecting tasks. Identify how to add a flag that runs only a chosen subset. | We need to support evaluating a user-selected subset of tasks instead of always running the full set. Where are task arguments parsed and connected to the evaluation runner? | How does the harness discover evaluation tasks and pass the selected tasks through the CLI to execution? | [
"main.py"
] | [
{
"file": "main.py",
"start": 4,
"end": 4,
"symbol": "<module>"
},
{
"file": "main.py",
"start": 22,
"end": 26,
"symbol": "limit"
},
{
"file": "main.py",
"start": 29,
"end": 56,
"symbol": "main"
}
] | [
"lm_eval/__init__.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py"
] | 2020-11-23T23:59:11Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/59 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/60"
] | true | false |
EleutherAI__lm-evaluation-harness-80 | EleutherAI/lm-evaluation-harness | afc614fe28a746708ebd3c039e73ec777550f38f | python | real_issue_pr | 232 | Implement the SAT evaluation
From the GPT-3 paper:
> To test GPT-3 on another task that is somewhat unusual relative to the typical distribution of text, we collected a set of 374 “SAT analogy” problems [TLBS03]. Analogies are a style of multiple choice question that constituted a section of the SAT college entrance ... | where is the SAT analogy evaluation implemented, following the BoolQ task interface? | need SAT eval for the 374 SAT analogy problems, multiple choice word pairs; model it on BoolQ | The SAT analogy evaluation is still missing; it should score five-choice word-pair questions. Where are task prompts and answer scoring wired for BoolQ-style evaluations? | Find the evaluation task interface and BoolQ implementation. Identify where to add SAT analogy prompt construction, choice scoring, and few-shot support. | I want to add the GPT-3 paper's SAT analogy benchmark, with zero-shot, one-shot, and few-shot evaluation over five answer choices. Where does the harness define task data, prompts, and metrics? | How does a multiple-choice evaluation task flow through the harness, from examples and prompt construction to scoring? Use BoolQ as a reference for how task implementations connect to the evaluation interface. | [
"lm_eval/tasks/sat.py"
] | [
{
"file": "lm_eval/tasks/sat.py",
"start": 1,
"end": 100,
"symbol": "<module>"
}
] | [
"lm_eval/base.py",
"lm_eval/utils.py"
] | 2021-01-08T00:23:35Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/80 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/27"
] | true | false |
EleutherAI__lm-evaluation-harness-85 | EleutherAI/lm-evaluation-harness | 0e4139b879f9ea0608e59ea02a25aa46ada15325 | python | real_issue_pr | 193 | Implement the SuperGLUE evaluation
From the GPT-3 paper
> In order to better aggregate results on NLP tasks and compare to popular models such as BERT and RoBERTa in a more systematic way, we also evaluate GPT-3 on a standardized collection of datasets, the SuperGLUE benchmark [WPN+19] [WPN+19] [CLC+19] [DMST19] [RBG... | where is SuperGLUE evaluation wired up, following the BoolQ task interface? | SuperGLUE data processing is done but eval still missing — find the BoolQ-style task impl and scoring setup | SuperGLUE data processing is implemented, but there’s no evaluation yet. Where are task evaluation and scoring defined for BoolQ-style tasks? | Find the task interface and BoolQ implementation, then trace how evaluation and scoring are wired so SuperGLUE can be added consistently. | We need evaluation support for the SuperGLUE tasks, building on the existing data processing and matching the BoolQ task interface. Where does task registration and metric computation live? | How does a task such as BoolQ flow from dataset processing through evaluation and score aggregation? I’m trying to understand where SuperGLUE fits into that mechanism. | [
"lm_eval/base.py",
"lm_eval/tasks/__init__.py",
"lm_eval/tasks/superglue.py"
] | [
{
"file": "lm_eval/base.py",
"start": 1,
"end": 9,
"symbol": "<module>"
},
{
"file": "lm_eval/base.py",
"start": 183,
"end": 184,
"symbol": "median"
},
{
"file": "lm_eval/tasks/__init__.py",
"start": 16,
"end": 51,
"symbol": "<module>"
},
{
"file": "lm... | [
"lm_eval/tasks/anli.py",
"lm_eval/tasks/arc.py",
"lm_eval/tasks/common.py",
"lm_eval/tasks/glue.py",
"lm_eval/tasks/hellaswag.py",
"lm_eval/tasks/naturalqs.py",
"lm_eval/tasks/openbookqa.py",
"lm_eval/tasks/quac.py",
"lm_eval/tasks/race.py",
"lm_eval/tasks/sat.py",
"lm_eval/tasks/squad.py",
"l... | 2021-01-16T23:31:36Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/85 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/22"
] | true | false |
EleutherAI__lm-evaluation-harness-101 | EleutherAI/lm-evaluation-harness | 7031c324359ba49ad1c5570982a7b9739d408ba3 | python | real_issue_pr | 89 | Implement the LAMBADA evaluation
> The LAMBADA dataset [PKL+16] tests the modeling of long-range dependencies in text – the model is asked to predict the last word of sentences which require reading a paragraph of context. It has recently been suggested that the continued scaling of language models is yielding diminis... | where can i add zero-shot LAMBADA last-word prediction evaluation? | need LAMBADA eval impl — read paragraph context, score the model's final-word prediction, ideally zero-shot | I can't run a LAMBADA evaluation for zero-shot last-word prediction. Where are benchmark task definitions and scoring wired up? | Find how evaluation tasks and metrics are registered. Identify the production code needed to add LAMBADA paragraph-context, final-word prediction scoring. | I want to add LAMBADA support: given paragraph context, evaluate whether a model predicts the sentence's last word in a zero-shot setting. Where does task configuration connect to dataset loading and scoring? | How do evaluation tasks flow from dataset loading through prompt construction to scoring in a zero-shot run? I'm interested in how a LAMBADA-style final-word prediction task would fit. | [
"lm_eval/tasks/__init__.py",
"lm_eval/tasks/lambada.py"
] | [
{
"file": "lm_eval/tasks/__init__.py",
"start": 15,
"end": 15,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/__init__.py",
"start": 17,
"end": 67,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/lambada.py",
"start": 1,
"end": 1,
"symbol": "<module>"
},
... | [
"lm_eval/tasks/anli.py",
"lm_eval/tasks/arc.py",
"lm_eval/tasks/arithmetic.py",
"lm_eval/tasks/glue.py",
"lm_eval/tasks/hellaswag.py",
"lm_eval/tasks/naturalqs.py",
"lm_eval/tasks/openbookqa.py",
"lm_eval/tasks/quac.py",
"lm_eval/tasks/race.py",
"lm_eval/tasks/sat.py",
"lm_eval/tasks/squad.py",
... | 2021-01-29T05:57:44Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/101 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/6"
] | true | false |
EleutherAI__lm-evaluation-harness-104 | EleutherAI/lm-evaluation-harness | e48b60828ac3a6e4bb96541d7925e0a451dac90a | python | real_issue_pr | 59 | Implement the RACE evaluation
From the GPT-3 paper
> Next we evaluate GPT-3 on the task of reading comprehension. We use a suite of 5 datasets including abstractive, multiple choice, and span based answer formats in both dialog and single question settings. We observe a wide spread in GPT-3’s performance across these... | where is race evaluation wired to the old nlp package instead of datasets? | race task still on old nlp, need datasets like the other tasks; where's the eval/data impl? | RACE evaluation is implemented, but its data loading still uses the old nlp package. Where is that loader defined, and how do other tasks use datasets? | Find the RACE task's data-loading and evaluation wiring. Identify how to replace the old nlp package with datasets, following the existing task pattern. | I want to add RACE evaluation using datasets rather than the old nlp package, consistent with other tasks. Where does the task's data processing connect to its evaluation interface? | How does the RACE task load and process its data with the old nlp package, and how does that flow into evaluation? Compare the pattern with BoolQ and tasks using datasets. | [
"lm_eval/tasks/__init__.py",
"lm_eval/tasks/race.py"
] | [
{
"file": "lm_eval/tasks/__init__.py",
"start": 11,
"end": 72,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/race.py",
"start": 1,
"end": 108,
"symbol": "RACE"
}
] | [
"lm_eval/tasks/anli.py",
"lm_eval/tasks/arc.py",
"lm_eval/tasks/arithmetic.py",
"lm_eval/tasks/common.py",
"lm_eval/tasks/glue.py",
"lm_eval/tasks/hellaswag.py",
"lm_eval/tasks/lambada.py",
"lm_eval/tasks/naturalqs.py",
"lm_eval/tasks/openbookqa.py",
"lm_eval/tasks/piqa.py",
"lm_eval/tasks/quac.... | 2021-01-30T20:13:53Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/104 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/21",
"https://github.com/EleutherAI/lm-evaluation-harness/issues/44"
] | true | false |
EleutherAI__lm-evaluation-harness-107 | EleutherAI/lm-evaluation-harness | 0f30237a22cdc234bfc4a89984cd35381587029c | python | real_issue_pr | 71 | Implement the TriviaQA evaluation
From the GPT-3 paper:
> In this section we measure GPT-3’s ability to answer questions about broad factual knowledge. Due to the immense amount of possible queries, this task has normally been approached by using an information retrieval system to find relevant text in combination wi... | where is TriviaQA closed-book evaluation wired into the task interface? | need TriviaQA eval impl like BoolQ — same splits, closed-book QA, few/one/zero-shot; where's task wiring? | TriviaQA data processing is implemented, but its evaluation task still needs to be added. Where are task prompts, splits, and scoring defined for the existing BoolQ-style interface? | Trace the task interface and BoolQ implementation, then identify where TriviaQA evaluation should define its dataset splits, closed-book prompts, and answer scoring. | I’m adding TriviaQA evaluation using the same splits as the closed-book QA work, with few-shot, one-shot, and zero-shot support. Where does the task configuration connect to the evaluation interface? | How does a task flow from dataset loading through prompting and scoring in the lm-evaluation-harness? Use BoolQ as the example and explain where TriviaQA would fit. | [
"lm_eval/tasks/__init__.py",
"lm_eval/tasks/triviaqa.py"
] | [
{
"file": "lm_eval/tasks/__init__.py",
"start": 18,
"end": 18,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/__init__.py",
"start": 21,
"end": 74,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/triviaqa.py",
"start": 4,
"end": 4,
"symbol": "<module>"
},... | [
"lm_eval/base.py",
"lm_eval/tasks/anli.py",
"lm_eval/tasks/arc.py",
"lm_eval/tasks/arithmetic.py",
"lm_eval/tasks/glue.py",
"lm_eval/tasks/hellaswag.py",
"lm_eval/tasks/lambada.py",
"lm_eval/tasks/naturalqs.py",
"lm_eval/tasks/openbookqa.py",
"lm_eval/tasks/piqa.py",
"lm_eval/tasks/quac.py",
"... | 2021-01-30T20:42:06Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/107 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/11"
] | false | false |
EleutherAI__lm-evaluation-harness-140 | EleutherAI/lm-evaluation-harness | caba51e18093d9d41262e2ae7e6082e89fbd3add | python | real_issue_pr | 91 | Implement the SQuAD evaluation
From the GPT-3 paper
> Next we evaluate GPT-3 on the task of reading comprehension. We use a suite of 5 datasets including abstractive, multiple choice, and span based answer formats in both dialog and single question settings. We observe a wide spread in GPT-3’s performance across thes... | where should i implement SQuAD 2.0 evaluation using the BoolQ task interface? | SQuAD data processing is done, eval still missing — find the BoolQ-style task setup and scoring bits | SQuAD data processing is implemented, but there’s no evaluation yet. Where does the BoolQ task define its evaluation behavior? | Find the task implementation pattern used by BoolQ and identify how to wire in SQuAD evaluation. Focus on production code for task configuration and scoring. | We need to add evaluation for SQuAD 2.0 after its data processing. Where does the harness connect task definitions to metrics, and how does BoolQ model that interface? | How does a task like BoolQ flow from processed examples through evaluation and metric calculation in the harness? | [
"lm_eval/evaluator.py",
"lm_eval/tasks/__init__.py",
"lm_eval/tasks/squad.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 6,
"end": 93,
"symbol": "evaluate"
},
{
"file": "lm_eval/tasks/__init__.py",
"start": 107,
"end": 117,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/squad.py",
"start": 1,
"end": 1,
"symbol": "<module>"
},
{
... | [
"lm_eval/tasks/anli.py",
"lm_eval/tasks/arc.py",
"lm_eval/tasks/arithmetic.py",
"lm_eval/tasks/common.py",
"lm_eval/tasks/coqa.py",
"lm_eval/tasks/drop.py",
"lm_eval/tasks/ethics.py",
"lm_eval/tasks/glue.py",
"lm_eval/tasks/headqa.py",
"lm_eval/tasks/hellaswag.py",
"lm_eval/tasks/lambada.py",
... | 2021-03-28T19:35:30Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/140 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/20"
] | true | false |
EleutherAI__lm-evaluation-harness-286 | EleutherAI/lm-evaluation-harness | e18ef6e162e5b7f5d9582d998fa9c980703a3540 | python | real_issue_pr | 14 | BUG: TypeError: create_from_arg_string() takes 2 positional arguments but 3 were given
I am getting this error when trying the dummy model on master branch (commit ed6931e7e6c422bd17029c13a61cbbeef11e453c)
```
(venv) julius@big-bertha:~/Documents/projects/lm-evaluation-harness$ python <file> --model dummy --tasks hell... | why does --model dummy fail with create_from_arg_string() takes 2 positional arguments but 3 were given? | dummy model + --tasks hellaswag on master, init blows up: create_from_arg_string gets 3 args not 2 — where's this wired? | Running `python ... --model dummy --tasks hellaswag` raises `TypeError: create_from_arg_string() takes 2 positional arguments but 3 were given`. Where does model creation pass the extra argument? | Trace the `--model dummy` creation path and find where `create_from_arg_string` is called with three positional arguments. Identify the expected signature and the caller mismatch. | The dummy model should initialize with `--model dummy` and `--tasks hellaswag`, but model creation currently passes too many arguments to `create_from_arg_string`. Where should the caller and model interface be aligned? | How does `--model dummy` flow from CLI arguments through `create_from_arg_string` to model initialization? What arguments does that interface pass end-to-end? | [
"lm_eval/models/dummy.py"
] | [
{
"file": "lm_eval/models/dummy.py",
"start": 5,
"end": 36,
"symbol": "DummyLM"
}
] | [
"lm_eval/base.py"
] | 2022-02-12T07:58:16Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/286 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/255"
] | true | false |
EleutherAI__lm-evaluation-harness-414 | EleutherAI/lm-evaluation-harness | 44275ae98f0d70ef2bf8a8cf164a0f5e3874ce53 | python | real_issue_pr | 41 | Support For Peft Adapters
Hi all!
Thanks for a great repo, it's really really an awesome piece of software :)
I made a quick change to the `HuggingFaceAutoLM` class to allow for [peft](https://github.com/huggingface/peft) adapters to be added to a base model.
Is this something that would you al would be interested ... | where does HuggingFaceAutoLM load models, and how could it support PEFT adapters? | HuggingFaceAutoLM only handles the base model right now — where's the init flow to wire in PEFT adapters? | I can't add a PEFT adapter through HuggingFaceAutoLM; it only loads the base model. Where is model initialization handled? | Trace how HuggingFaceAutoLM initializes its base model. Identify the adapter-loading integration points for adding PEFT support. | I want HuggingFaceAutoLM to load PEFT adapters on top of a base model. Where does model construction happen, and how is that setup exposed to users? | How does HuggingFaceAutoLM load a base model end-to-end? How does that model-loading flow relate to PEFT adapter support? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 1,
"end": 10,
"symbol": "<module>"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 57,
"end": 355,
"symbol": "HuggingFaceAutoLM"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 358,
"end": 419,
... | [
"lm_eval/__init__.py",
"lm_eval/base.py",
"lm_eval/utils.py"
] | 2023-04-17T23:21:42Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/414 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/413"
] | true | false |
EleutherAI__lm-evaluation-harness-427 | EleutherAI/lm-evaluation-harness | 977b281aa70c1f7c3b6fbc2a62ac046f4da9b342 | python | real_issue_pr | 60 | Where is the application of utils.select_continuation_from_batch_left_padding()
In <file> line 417, implementation of utils.select_continuation_from_batch_left_padding() can't be found | where is utils.select_continuation_from_batch_left_padding() implemented? | can't find impl for utils.select_continuation_from_batch_left_padding() — where's it defined and used? | I found a call to utils.select_continuation_from_batch_left_padding(), but can't find its implementation. Where is this function defined, and how does the call resolve? | Search for the definition and call sites of utils.select_continuation_from_batch_left_padding(). Trace how the implementation is imported or exposed. | I need to understand the continuation selection helper used with left-padded batches. Where is utils.select_continuation_from_batch_left_padding() implemented and wired into the harness? | How does utils.select_continuation_from_batch_left_padding() work end to end? Trace its definition, imports, and usage in continuation selection. | [
"lm_eval/models/__init__.py",
"lm_eval/models/gpt2.py",
"lm_eval/models/huggingface.py",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/models/__init__.py",
"start": 7,
"end": 15,
"symbol": "<module>"
},
{
"file": "lm_eval/models/gpt2.py",
"start": 8,
"end": 86,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 364,
"end": 413,
"symbol": "Huggi... | [
"lm_eval/__init__.py",
"lm_eval/base.py",
"lm_eval/models/dummy.py",
"lm_eval/models/gpt3.py",
"lm_eval/models/textsynth.py"
] | 2023-04-23T23:10:38Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/427 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/408"
] | true | false |
EleutherAI__lm-evaluation-harness-490 | EleutherAI/lm-evaluation-harness | f71bffb0ce2c91d193797332fe69c171dbc0c5ad | python | real_issue_pr | 39 | Pulling loglikelihood tasks from cache crashes
Pulling loglikelihood tasks from the cache currently crashes. To reproduce:
`python -m <file> --model hf-causal-experimental --model_args pretrained=EleutherAI/pythia-410m-deduped --tasks winogrande`
Then, run again:
`python -m <file> --model hf-causal-experimental --m... | where does cached winogrande loglikelihood hit `re_ord.get_reordered()`? | winogrande cache rerun blows up, `re_ord.get_reordered()` is empty when no new requests run — where's that flow? | The second `winogrande` run with `--model hf-causal-experimental` and `pretrained=EleutherAI/pythia-410m-deduped` crashes with `IndexError: list index out of range`. Where does cached loglikelihood handling assume `re_ord.get_reordered()` has an item? | Trace the cached loglikelihood request flow for `winogrande` and find where `re_ord.get_reordered()` is indexed. Identify how the no-new-requests cache-hit case reaches that code. | We need cached loglikelihood runs to handle an empty `re_ord.get_reordered()` result when the cache supplies all requests, rather than crashing. Where does request reordering connect to cache retrieval and result assembly? | How do cached loglikelihood requests flow through reordering and result assembly? In particular, how does the harness handle a cache hit with no new requests to run? | [
"lm_eval/base.py"
] | [
{
"file": "lm_eval/base.py",
"start": 237,
"end": 369,
"symbol": "BaseLM._loglikelihood_tokens"
}
] | [
"lm_eval/__init__.py",
"lm_eval/metrics.py",
"lm_eval/utils.py"
] | 2023-05-10T17:33:21Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/490 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/489"
] | true | false |
EleutherAI__lm-evaluation-harness-551 | EleutherAI/lm-evaluation-harness | 92929bd2a0a23b98da63fc250d5895f6f718aef7 | python | real_issue_pr | 11 | Problem when running with hf-seq2seq
Hi @StellaAthena and @haileyschoelkopf,
I tried to evaluate BART-base using this repo but got CUDA error
Command:
`python <file> --model hf-seq2seq --model_args pretrained=facebook/bart-base --tasks boolq,piqa,winogrande --device cuda:0 --batch_size=32 > output.log`
Error when ... | why does hf-seq2seq BART-base hit an index out of range error? | hf-seq2seq + facebook/bart-base blows up on cuda device-side assert, cpu says index out of range in self, hf-causal runs tho | Running `hf-seq2seq` with `pretrained=facebook/bart-base` and `--device cuda:0` triggers `CUDA error: device-side assert triggered`; on CPU it becomes `IndexError: index out of range in self`. Where does the seq2seq loglikelihood path build inputs or labels that could cause this? | Trace the `hf-seq2seq` evaluation path for `facebook/bart-base`, from tokenized inputs and labels through `_model_call`. Find where an out-of-range index could trigger the CUDA device-side assert. | I need `hf-seq2seq` to evaluate `facebook/bart-base` on BoolQ, PIQA, and WinoGrande without an index-out-of-range failure. Where is seq2seq model and loglikelihood input handling wired up? | How does `hf-seq2seq` pass tokenized inputs and target labels into model calls during loglikelihood evaluation? How does that flow support encoder-decoder models such as `facebook/bart-base`? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 349,
"end": 371,
"symbol": "HuggingFaceAutoLM.max_length"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 537,
"end": 702,
"symbol": "AutoSeq2SeqLM"
}
] | [
"lm_eval/__init__.py",
"lm_eval/base.py",
"lm_eval/utils.py"
] | 2023-06-05T15:34:23Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/551 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/549"
] | true | false |
EleutherAI__lm-evaluation-harness-616 | EleutherAI/lm-evaluation-harness | 0dd451906502939bbee304061d9aca102aa6f0e2 | python | real_issue_pr | 9 | inference gets slower and slower
I observe that the inference time become longer and longer even after accounting for the request sequence length? Did you observe the same pattern? Is it related to GPU memory caching usage? | why does inference latency keep increasing beyond request sequence length? check gpu memory caching | inference gets slower over time even when req sequence length is accounted for — could gpu memory caching be involved? | Inference time keeps getting longer even after accounting for request sequence length. Could GPU memory caching explain the slowdown, and where is inference timing affected? | Trace how inference latency is measured across requests and how GPU memory caching is used. Find the code paths that could cause latency to increase over time independently of sequence length. | We need to understand and address inference time increasing across requests even when request sequence length is accounted for. Where are timing and GPU memory caching behavior wired together? | How does inference timing work across requests, and how does GPU memory caching interact with the inference execution flow? | [
"lm_eval/base.py"
] | [
{
"file": "lm_eval/base.py",
"start": 401,
"end": 403,
"symbol": "BaseLM._collate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/metrics.py",
"lm_eval/utils.py"
] | 2023-06-27T13:35:35Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/616 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/602"
] | true | false |
EleutherAI__lm-evaluation-harness-630 | EleutherAI/lm-evaluation-harness | 72b7f0c00a6ff94632c5b873fc24e093ae74fa47 | python | real_issue_pr | 33 | ValueError bug in `greedy_until` "too many values to unpack"
Some tokenizers (Llama, Alpaca) return more than one token for "\n" even with `add_special_tokens=False`. It causes a value error in: <github-link>
One can replace it with
```python
primary_until = self.tok_encode(until[0])[0]
``` | where does greedy_until unpack newline tokens and raise too many values to unpack? | greedy_until blows up on llama/alpaca tokenizers, newline encodes to multiple ids even w/ add_special_tokens=False — find the unpack | I get `ValueError: too many values to unpack` in `greedy_until` when a Llama or Alpaca tokenizer encodes `\n` as multiple tokens. Where is the newline encoding unpacked? | Trace `greedy_until` handling of `until` strings and find where it assumes `\n` encodes to one token. Identify the relevant implementation. | I need `greedy_until` to handle stop strings that encode to multiple tokens, including `\n` with Llama and Alpaca tokenizers. Where is stop-token encoding wired into generation? | How does `greedy_until` encode `until` stop strings and pass them through generation? How are multi-token encodings handled? | [
"lm_eval/base.py"
] | [
{
"file": "lm_eval/base.py",
"start": 176,
"end": 194,
"symbol": "BaseLM._detect_batch_size"
},
{
"file": "lm_eval/base.py",
"start": 210,
"end": 221,
"symbol": "BaseLM.loglikelihood"
},
{
"file": "lm_eval/base.py",
"start": 267,
"end": 392,
"symbol": "BaseLM.... | [
"lm_eval/__init__.py",
"lm_eval/metrics.py",
"lm_eval/utils.py"
] | 2023-06-29T13:56:16Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/630 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/628"
] | true | false |
EleutherAI__lm-evaluation-harness-680 | EleutherAI/lm-evaluation-harness | 283cad707d98fa605d3c2f58f03e152a9dac7f1c | python | real_issue_pr | 8 | Add Mac Support
I created a branch `add-mac` with the goal of adding Mac support. While I was able to iron out some obvious issues, I'm not sure what to try next. The current error code is:
```
loc("varianceEps"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.a... | where does model evaluation handle macOS MPS tensor broadcasting for hellaswag? | mac support branch hits MPSGraph varianceEps broadcast err: tensor<1x147x1xf16> vs tensor<1xf32> — where's device/dtype setup? | On macOS with PyTorch 2.0.1 and MPS available, running `--model hf --tasks hellaswag` aborts with `input types 'tensor<1x147x1xf16>' and 'tensor<1xf32>' are not broadcast compatible`. Where does the harness or model backend set up MPS tensors and their dtypes? | Trace how the Hugging Face model backend selects the device and prepares tensors for evaluation. Find the MPS and dtype handling relevant to the `varianceEps` broadcast failure on macOS. | We need model evaluation to work on macOS when PyTorch reports `torch.backends.mps.is_available() == True`, including `--model hf --tasks hellaswag`. Where does device selection and tensor dtype configuration get wired into the evaluation flow? | How does the harness route Hugging Face model evaluation from CLI options through device selection and tensor preparation? How does that flow handle Apple MPS? | [
"lm_eval/api/model.py",
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 112,
"end": 117,
"symbol": "LM.create_from_arg_string"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 61,
"end": 272,
"symbol": "HFLM.__init__"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/registry.py",
"lm_eval/logger.py",
"lm_eval/utils.py"
] | 2023-07-17T12:22:26Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/680 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/670"
] | true | false |
EleutherAI__lm-evaluation-harness-738 | EleutherAI/lm-evaluation-harness | fe803c2920a85f6afb74ea05d1d2f98ec27f1a63 | python | real_issue_pr | 13 | Update Anthropic Client
Anthropic changed their python sdk - making this code line outdated.
<github-link>
---
Would love to know if this might help - https://github.com/BerriAI/litellm
~Simple I/O library, that standardizes all the llm api calls to the OpenAI call
```
from litellm import completion
## set ENV v... | where is the outdated Anthropic Python SDK client call? | anthropic python sdk changed, current client call is outdated — find the impl and see if litellm fits | The Anthropic client code uses an outdated Python SDK call after the SDK changed. Where is that client wired up, and does it use the current API? | Find the Anthropic Python SDK client integration and identify the outdated call. Check how a client update or LiteLLM integration would fit. | Update the Anthropic client to work with the changed Python SDK, and consider whether LiteLLM could standardize provider calls. Where does the Anthropic request flow live? | How does the harness send requests through its Anthropic Python SDK client? Trace the client setup and response flow end to end. | [
"lm_eval/models/anthropic_llms.py"
] | [
{
"file": "lm_eval/models/anthropic_llms.py",
"start": 7,
"end": 35,
"symbol": "anthropic_completion"
},
{
"file": "lm_eval/models/anthropic_llms.py",
"start": 41,
"end": 50,
"symbol": "AnthropicLM.__init__"
}
] | [
"lm_eval/base.py"
] | 2023-08-06T22:29:04Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/738 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/721"
] | true | false |
EleutherAI__lm-evaluation-harness-746 | EleutherAI/lm-evaluation-harness | 5a49b2a3ad4c84e4b2354af929967e1fc523f84f | python | real_issue_pr | 14 | Possible bug in TriviaQA: gold answer not always included in candidates
When looking through model predictions I noticed that some predictions in TriviaQA are not counted as correct even though they match the gold answer exactly.
This can be easily checked by adding the following assert to the `process_results` funct... | why does triviaqa _remove_prefixes drop the normalized gold answer from candidates? | triviaqa aliases have Montreal, but process_results candidates lose montreal after _remove_prefixes — where's that filtering happening | TriviaQA exact match misses `montreal` even though the raw aliases include `Montreal`; after `_remove_prefixes`, the candidate list has no exact gold string. Where are candidates normalized and filtered before scoring? | Trace TriviaQA candidate construction from raw answer aliases through `_remove_prefixes` into `process_results` exact-match scoring. Find where the normalized gold answer can be dropped. | TriviaQA should retain the normalized gold answer when preparing aliases for exact-match scoring; currently `_remove_prefixes` can leave `montreal` out of the candidates. Identify the candidate-processing flow and where this behavior is wired. | How does TriviaQA build and normalize answer candidates end to end, from raw aliases through `_remove_prefixes` to the `process_results` exact-match score? | [
"lm_eval/tasks/triviaqa.py"
] | [
{
"file": "lm_eval/tasks/triviaqa.py",
"start": 30,
"end": 99,
"symbol": "TriviaQA"
}
] | [
"lm_eval/base.py",
"lm_eval/metrics.py"
] | 2023-08-08T14:39:04Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/746 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/726"
] | true | false |
EleutherAI__lm-evaluation-harness-833 | EleutherAI/lm-evaluation-harness | 8f448eed3f9a0cf107ac36fc81d66007cf0a7d8b | python | real_issue_pr | 19 | Perplexity Evaluation broken with "Big refactor" branch (huge differences on 'wikitext')
I`m trying to evaluate perplexity with the lm-eval-harness and getting confused:
When running with the [Huggingface LLM Leaderboard commit ](<github-link>) (i can reproduce LLM leaderboard results for Hellaswag and arc_challenge ... | why does wikitext word_perplexity jump from 37.3698 to 71.7454 after the big refactor? | wikitext ppl way off on big-refactor — hf-causal vs hf-auto, Llama-2-7b gets 13 instead of 8.79; could max_length/stride be changing scoring? | With `--tasks wikitext`, the refactored harness reports word_perplexity 71.7454 versus 37.3698 on master; Llama-2-7b also diverges sharply between runs. Where are context length, stride, and token loss aggregation handled? | Trace the wikitext perplexity evaluation path in both implementations. Find how context windows, stride, and `max_length=512` affect token scoring and the word_perplexity, byte_perplexity, and bits_per_byte metrics. | Wikitext perplexity should be comparable across the old and refactored harness, including when users set `max_length=512`; current results differ substantially. Find where task configuration, model context windows, and perplexity aggregation are wired together. | How does the harness evaluate wikitext perplexity end to end? Explain how task configuration feeds tokenized context windows and stride into loss scoring and the word_perplexity, byte_perplexity, and bits_per_byte metrics. | [
"lm_eval/models/huggingface.py",
"lm_eval/tasks/wikitext/preprocess_wikitext.py",
"lm_eval/tasks/wikitext/wikitext.yaml"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 315,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/tasks/wikitext/preprocess_wikitext.py",
"start": 4,
"end": 36,
"symbol": "wikitext_detokenizer"
},
{
"file": "lm_eval/tasks/wikitext/wikitext.yaml",
"st... | [
"lm_eval/__init__.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/logger.py",
"lm_eval/utils.py"
] | 2023-09-05T15:44:23Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/833 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/806",
"https://github.com/EleutherAI/lm-evaluation-harness/issues/814"
] | true | false |
EleutherAI__lm-evaluation-harness-843 | EleutherAI/lm-evaluation-harness | 3326c547a733d598b4377e54be96e194861b964c | python | real_issue_pr | 3 | openai.error.InvalidRequestError: '$.stop' is invalid.
I'm trying to run evals using OpenAI but getting this Invalid Request Error:
```
> python <file> \
--model gpt3 \
--model_args engine=davinci \
--tasks squad2 \
--write_out \
--output_base_path output
...
openai.error.InvalidRequestError: '$.s... | why does gpt3 eval on squad2 send an invalid $.stop to the OpenAI API? | gpt3 engine=davinci + squad2 blows up w/ InvalidRequestError '$.stop' is invalid, but lambada_openai and hellaswag work | Running `--model gpt3 --model_args engine=davinci --tasks squad2 --write_out` fails with `openai.error.InvalidRequestError: '$.stop' is invalid.` The README's `lambada_openai,hellaswag` example works; where does squad2's request differ? | Trace how the gpt3 model builds OpenAI API requests for `squad2`, especially the `stop` parameter. Compare with the working `lambada_openai` and `hellaswag` task flow. | Find how task-specific generation settings reach the OpenAI gpt3 client. We need `squad2` evals with `engine=davinci` to avoid sending an API-invalid `$.stop` value. | How do task configs and generation kwargs flow into OpenAI API requests for gpt3, from `--tasks` selection through to the `stop` parameter? | [
"lm_eval/models/gpt3.py"
] | [
{
"file": "lm_eval/models/gpt3.py",
"start": 168,
"end": 222,
"symbol": "GPT3LM.greedy_until"
}
] | [
"lm_eval/__init__.py",
"lm_eval/base.py",
"lm_eval/utils.py"
] | 2023-09-11T16:50:26Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/843 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/841"
] | true | false |
EleutherAI__lm-evaluation-harness-889 | EleutherAI/lm-evaluation-harness | e1a8b2fa9684034b6af982456db1bfabb221a39c | python | real_issue_pr | 27 | PubMedQA evaluation is done incorrectly
The PubMedQA evaluation is done with the labeled subset of 1000 examples currently, but the actual test set is 500 examples from that labeled subset so it's actually being evaluated on more examples than it is typically done.
I can fix this and put in a PR since I'll need to an... | where does PubMedQA evaluation use 1000 labeled examples instead of the 500-example test set? | PubMedQA eval seems to run on all 1000 labeled examples, not the actual 500-example test split — where's that dataset selection wired in | PubMedQA evaluation is using 1000 labeled examples, but the actual test set contains 500. Where is the evaluation dataset selected? | Trace how PubMedQA evaluation selects its examples. Find where the 1000-example labeled subset is used instead of the 500-example test set. | I want PubMedQA evaluation to use the actual 500-example test set rather than all 1000 labeled examples. Where does dataset selection flow into the evaluator? | How does PubMedQA data flow into evaluation, from the labeled 1000-example subset to the 500-example test set? | [
"lm_eval/tasks/pubmedqa.py"
] | [
{
"file": "lm_eval/tasks/pubmedqa.py",
"start": 34,
"end": 89,
"symbol": "Pubmed_QA"
}
] | [
"lm_eval/base.py",
"lm_eval/metrics.py"
] | 2023-10-03T18:32:25Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/889 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/886"
] | true | false |
EleutherAI__lm-evaluation-harness-900 | EleutherAI/lm-evaluation-harness | 7f2a9cbdd85041537d77ee6734b299080b78b1ab | python | real_issue_pr | 5 | [big-refactor] Error in wildcards for task names
Wildcards feature to evaluate tasks with `*` is no longer working with the new changes to main.py on lines 138-144
```
if task_missing != []:
missing = ", ".join(task_missing)
eval_logger.error(
f"Tasks were not found: {m... | why does `--task xnli_*` raise missing-task error when wildcard matches tasks? | `pattern_match` gets xnli_* matches fine but missing-task check still errors — trace task expansion vs validation | Running `python main.py --model hf --model_args="facebook/opt-350m" --task xnli_*` raises `ValueError: Tasks xnli_* were not found.` even though wildcard matching finds tasks. Where are matched task names and missing task names handled? | Trace wildcard task expansion through `utils.pattern_match` and the missing-task validation in the CLI. Find why a matched `xnli_*` selection still raises `ValueError`. | Wildcard task names should evaluate all matching tasks without being reported as missing. Find where task patterns are expanded and where unmatched task names are detected. | How does the CLI turn `--task xnli_*` into concrete evaluation tasks? Explain how pattern matching and missing-task validation fit into that flow. | [
"lm_eval/__main__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 17,
"end": 99,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 102,
"end": 216,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/__main__.py",
"start": 219,
"end": 220,
"symbol": "<module>"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/registry.py",
"lm_eval/evaluator.py",
"lm_eval/logger.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2023-10-05T07:51:44Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/900 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/894"
] | true | false |
EleutherAI__lm-evaluation-harness-965 | EleutherAI/lm-evaluation-harness | 815f59e69039b7d416e2bdf35164e36ab34a705e | python | real_issue_pr | 54 | [Refactor] Remove `gold_alias` stale YAML config option
- remove from docs
- remove from task.py
- remove from gsm8k | where is the stale gold_alias config option still used? | gold_alias is stale now — need to drop it from yaml docs, task.py and gsm8k cfg | The gold_alias YAML option is stale and should no longer be exposed. Where is it still documented or wired into task and gsm8k handling? | Find every production reference to the gold_alias YAML option. Trace its documentation and task/gsm8k configuration wiring so it can be removed cleanly. | We want to remove the obsolete gold_alias option from YAML configs and documentation. Where does it enter task configuration and the gsm8k setup? | How does gold_alias flow through YAML configuration, task handling, and gsm8k? Explain where the option is documented and consumed. | [
"lm_eval/api/task.py",
"lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"lm_eval/tasks/gsm8k/gsm8k.yaml",
"lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 51,
"end": 151,
"symbol": "TaskConfig"
},
{
"file": "lm_eval/api/task.py",
"start": 898,
"end": 916,
"symbol": "ConfigurableTask.gold_alias"
},
{
"file": "lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"start": 12,
"end": 33,
"s... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/filter.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/logger.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2023-11-06T13:49:08Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/965 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/964"
] | true | false |
EleutherAI__lm-evaluation-harness-1001 | EleutherAI/lm-evaluation-harness | 056569e5550a22fe874279cc8675281f6652b3bf | python | real_issue_pr | 7 | [Refactor] group name error with MMLU
I am trying to run MMLU evaluation with the big refactor branch, pulling in the latest changes, and run this:
```
python -m lm_eval --model hf --model_args pretrained=mistralai/Mistral-7B-v0.1 --tasks mmlu_anatomy,mmlu_clinical_knowledge,mmlu_college_medicine,mmlu_medical_genetic... | where does MMLU task group resolution leave `group_name` unbound? | big refactor + hf Mistral-7B, running mmlu_anatomy etc blows up: `UnboundLocalError` on `group_name` when yaml groups are enabled | Running `lm_eval --model hf --model_args pretrained=mistralai/Mistral-7B-v0.1 --tasks mmlu_anatomy,mmlu_clinical_knowledge,mmlu_college_medicine,mmlu_medical_genetics,mmlu_professional_medicine,mmlu_college_biology` raises `UnboundLocalError: cannot access local variable 'group_name' where it is not associated with a v... | Trace how MMLU YAML groups are resolved into task groups and aliases. Find the branch that reads `group_name` before assignment and triggers the reported `UnboundLocalError`. | Make MMLU group definitions work with the refactored evaluator when evaluating individual tasks such as `mmlu_anatomy`. Find where YAML group names and task-group aliases are wired into task selection. | How does the evaluator load YAML task groups and resolve their names or aliases when the CLI receives individual MMLU task names? Trace that flow from task selection through evaluation. | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 168,
"end": 608,
"symbol": "evaluate"
}
] | [
"lm_eval/api/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/logger.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2023-11-17T15:27:39Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1001 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/998"
] | true | false |
EleutherAI__lm-evaluation-harness-1009 | EleutherAI/lm-evaluation-harness | a1403c8f8c1bc7bfc8a854069413a37940de9c14 | python | real_issue_pr | 14 | Stopping Criteria depending on the batch size leads to different results
Using the huggingface class for generative tasks I observed scores being dependent on the batch size - where the value 1 gives the best results.
Examining the stopping criteria code I see: <github-link>
I wonder why is there a need to know/use ... | why do Hugging Face generative stopping criteria change with batch size? | hf gen scores shift when batch size > 1 — why does stopping-pattern setup care about the other examples? | Hugging Face generative task scores differ by batch size, with batch size 1 giving the best results. Where are stopping patterns built, and why does that depend on other examples in the batch? | Trace how the Hugging Face generative evaluator prepares stopping patterns and uses batch size. Identify why stopping behavior may vary across examples in a batch. | I want Hugging Face generative stopping behavior to be independent of unrelated examples in the batch, so scores do not change with batch size. Where is batch size wired into stopping-pattern preparation? | How does the Hugging Face generative evaluator prepare stopping patterns and apply them during batched generation? How does batch size flow through that mechanism? | [
"lm_eval/models/huggingface.py",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 823,
"end": 949,
"symbol": "HFLM.generate_until"
},
{
"file": "lm_eval/utils.py",
"start": 571,
"end": 583,
"symbol": "MultiTokenEOSCriteria.__init__"
},
{
"file": "lm_eval/utils.py",
"start": 585,
"end": 596,
... | [
"lm_eval/__init__.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py"
] | 2023-11-23T14:23:42Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1009 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/873"
] | true | false |
EleutherAI__lm-evaluation-harness-1024 | EleutherAI/lm-evaluation-harness | b072bb0da6547c7f34c4d779703225d51ae1740f | python | real_issue_pr | 15 | [big-refactor] Wrong AutoModel Assignment for MBart
I am trying to evaluate some models based on `mbart`. This model is a little bit interesting it can be loaded both with `transformers.AutoModelForCausalLM` and `transformers.AutoModelForSeq2SeqLM` classes. The `mbart` keyword is in both both `MODEL_FOR_CAUSAL_LM_MAPP... | where can i select AutoModelForSeq2SeqLM for mbart instead of AutoModelForCausalLM? | mbart is in both transformers mappings, harness picks causal first — need a way to set the auto class manually | MBart is being loaded with transformers.AutoModelForCausalLM because its mapping is checked first, but my model needs seq2seq. Where does model class selection happen, and can it be overridden? | Trace how the harness chooses between AutoModelForCausalLM and AutoModelForSeq2SeqLM for MBart. Find whether users can override the selected auto class. | Support manually choosing the Transformers auto class for MBart, since it appears in both causal and seq2seq mappings. Where is model loading wired to the class selection logic? | How does the harness determine which Transformers AutoModel class to use, and how does it handle models such as MBart that appear in both mappings? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 68,
"end": 320,
"symbol": "HFLM.__init__"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2023-11-28T14:20:45Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1024 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1022"
] | true | false |
EleutherAI__lm-evaluation-harness-1106 | EleutherAI/lm-evaluation-harness | f8c2cfcbe1cde622ceed933055f60cc102c8f4e4 | python | real_issue_pr | 8 | Evaluation Error on Scrolls Task - 2
I am trying to evaluate LLM on long text understanding.
I encountered the following error.
I tried to resolve minor bugs but couldn't resolve this one.
First I faced this issue
`acc_norm = 1.0 if np.argmax(results / completion_len) == gold else 0.0
... | scrolls task 2 acc_norm broadcasting (3,2) results and singleton stderr ZeroDivisionError | scrolls task 2 results are (logprob, bool) tuples, acc_norm broadcast blows up; then stderr hits ZeroDivisionError on one item | On Scrolls Task 2, acc_norm fails broadcasting results shaped (3,2) against completion_len shaped (3,). After extracting tuple scores, evaluation crashes with ZeroDivisionError in sample stderr when there is only one item; where are these metric paths handled? | Trace Scrolls Task 2 result formatting into acc_norm and stderr aggregation. Find why (logprob, bool) tuples cause a (3,2) broadcast and why a single-item sample standard deviation divides by zero. | I need Scrolls Task 2 scoring to handle results returned as (logprob, bool) pairs, and stderr calculation to avoid crashing when only one item is available. Where does result normalization and metric aggregation get wired together? | How does Scrolls Task 2 turn model results into acc_norm and aggregate stderr? I want to understand the flow from tuple-shaped scores through sample standard deviation. | [
"lm_eval/evaluator.py",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 188,
"end": 637,
"symbol": "evaluate"
},
{
"file": "lm_eval/utils.py",
"start": 333,
"end": 385,
"symbol": "make_table"
}
] | [
"lm_eval/api/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py"
] | 2023-12-12T13:54:31Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1106 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1103"
] | false | false |
EleutherAI__lm-evaluation-harness-1144 | EleutherAI/lm-evaluation-harness | bd0f2414585df9209db2f4ab0430912ed000f6a0 | python | real_issue_pr | 3 | tqdm progress bar cannot be kept on the same line when using vllm
When using hf model, tqdm progress bar works well. However, after switching to vllm model, got the following weird pattern. Any quick solution to force the progress bar is updated on the same line?
using the latest code, v0.4.0
```bash
Processed prom... | why does vllm tqdm print each “Processed prompts” update on a new line? | hf tqdm stays put, but vllm keeps spamming full “Processed prompts” bars on separate lines — any way to keep it inline? | With vLLM on v0.4.0, each “Processed prompts” tqdm update appears as a new line; the HF model keeps the bar on one line. Where is vLLM's progress output configured? | Trace how vLLM emits the “Processed prompts” progress bar and identify what controls its repeated new-line output. Compare with the harness's HF progress handling. | I want vLLM evaluation to update its tqdm progress bar on the same line instead of printing a new “Processed prompts” bar each time. Where does progress reporting get wired in, and can its output behavior be configured? | How does evaluation progress reporting flow through the vLLM backend, from “Processed prompts” updates to the outer tqdm bar? How does that differ from the HF backend? | [
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 136,
"end": 175,
"symbol": "VLLM._model_generate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2023-12-16T12:33:26Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1144 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1143"
] | true | false |
EleutherAI__lm-evaluation-harness-1216 | EleutherAI/lm-evaluation-harness | f28539959d1bd18373446d6e0ee8fd926b89432e | python | real_issue_pr | 32 | Incompatible argument for openai-completion in bbh_cot_fewshot
<github-link>
```
TypeError: create() got an unexpected keyword argument 'max_gen_toks'
```
replication cmd:
```
lm_eval --model openai-completions --model_args model=gpt-3.5-turbo-instruct --tasks bbh_cot_fewshot_causal_judgement --log_samples --output_... | where does openai-completions pass max_gen_toks to create() for bbh_cot_fewshot? | gpt-3.5-turbo-instruct + bbh_cot_fewshot_causal_judgement blows up, create() gets unexpected max_gen_toks — find the call path | Running lm_eval with --model openai-completions and model=gpt-3.5-turbo-instruct fails with `TypeError: create() got an unexpected keyword argument 'max_gen_toks'`. Where is that argument added, and how does the task config reach the OpenAI completion call? | Trace `max_gen_toks` from the bbh_cot_fewshot task configuration into the openai-completions `create()` call. Identify the incompatible argument wiring behind the TypeError. | The openai-completions backend should run `bbh_cot_fewshot_causal_judgement` with `gpt-3.5-turbo-instruct` without passing unsupported `max_gen_toks` to `create()`. Find where task generation settings are translated into API arguments. | How do task generation settings such as `max_gen_toks` flow from a BBH few-shot config through the openai-completions model to the OpenAI `create()` call? | [
"lm_eval/models/openai_completions.py",
"lm_eval/tasks/siqa/default.yml",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/models/openai_completions.py",
"start": 227,
"end": 289,
"symbol": "OpenaiCompletionsLM.generate_until"
},
{
"file": "lm_eval/models/openai_completions.py",
"start": 418,
"end": 484,
"symbol": "OpenaiChatCompletionsLM.generate_until"
},
{
"file": "lm_ev... | [
"lm_eval/__init__.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py"
] | 2023-12-27T13:29:02Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1216 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1205",
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1214"
] | true | false |
EleutherAI__lm-evaluation-harness-1229 | EleutherAI/lm-evaluation-harness | a12ef445d444676f29a420f8fa92192e5be8136e | python | real_issue_pr | 4 | compatible of parallelize=True and batch_size=auto
I got the following error when evaluate a 70b model on 4 gpus, with accelerate, parallelize, and batch_size=auto.
python=3.10
lm-eval Version: 0.4.0
```
accelerate launch --use_fsdp --no_python lm_eval --model hf \
--model_args pretrained=meta-llama/Llama-2-70b... | where does batch_size=auto break with parallelize=True and accelerate fsdp? | lm-eval 0.4.0, Llama-2-70b on 4 gpus — auto batch + parallelize blows up: generator has no len | With `--batch_size auto` and `parallelize=True`, evaluating hellaswag crashes at 0% with `TypeError: object of type 'generator' has no len()`. Where is the batch scheduling logic that combines these options? | Trace how `batch_size=auto` schedules loglikelihood requests when the HF model uses `parallelize=True`. Find the code path that calls `len()` on a generator and identify the relevant batching and distributed wiring. | We need `--batch_size auto` to work alongside `parallelize=True` for HF models launched with accelerate, including large models like `meta-llama/Llama-2-70b-hf`. Where are automatic batch scheduling and parallel model evaluation connected? | How does `batch_size=auto` determine batch schedules for loglikelihood requests, and how does that flow through the HF `parallelize=True` evaluation path? | [
"lm_eval/models/vllm_causallms.py",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 36,
"end": 100,
"symbol": "VLLM.__init__"
},
{
"file": "lm_eval/utils.py",
"start": 894,
"end": 930,
"symbol": "Collator.get_chunks"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py"
] | 2024-01-02T13:03:15Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1229 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1226"
] | true | false |
EleutherAI__lm-evaluation-harness-1238 | EleutherAI/lm-evaluation-harness | 4d10ad56b1ffe569467eee2297e2317c99313118 | python | real_issue_pr | 4 | Updating default model for openai completions
[According to OpenAI](https://openai.com/blog/gpt-4-api-general-availability), `text-davinci-003` (along with other models) are being deprecated on January 4 - we should replace the default <github-link> in the completions constructor `gpt-3.5-turbo-instruct`
> Developer... | where is the openai completions default model set to text-davinci-003? | openai completions default still text-davinci-003? need the constructor default switched to gpt-3.5-turbo-instruct before deprecation | The OpenAI completions constructor defaults to text-davinci-003, which is being deprecated January 4, 2024. Where is that default wired, and how would gpt-3.5-turbo-instruct be used instead? | Find the OpenAI completions constructor and trace where its default model is defined. Identify the wiring for replacing text-davinci-003 with gpt-3.5-turbo-instruct. | We need the OpenAI Completions API integration to default to gpt-3.5-turbo-instruct instead of deprecated text-davinci-003. Where does the constructor configure its model? | How does the OpenAI completions integration choose its default model? Trace how the constructor passes that model into Completions API requests. | [
"lm_eval/models/openai_completions.py"
] | [
{
"file": "lm_eval/models/openai_completions.py",
"start": 77,
"end": 112,
"symbol": "OpenaiCompletionsLM.__init__"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-01-02T20:22:25Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1238 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1237"
] | true | false |
EleutherAI__lm-evaluation-harness-1241 | EleutherAI/lm-evaluation-harness | 25a15379676c8a2fa0b93ca9c4742b156e1fec39 | python | real_issue_pr | 223 | TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
When I use vllm to evaluate a model on dataset "ceval-valid", at the final stage of the program's execution, this error occurred.
I suspect it's because the `logprob_dict.get()` function is returning `NoneType`. However, I'm unsure how to modify the ... | where does vllm evaluation add logprob_dict.get() when it returns None? | vllm eval on ceval-valid blows up at the end, int + NoneType — maybe logprob_dict.get() is None, only some model/dataset combos | Evaluating ceval-valid with vllm ends in `TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'`. Other model and dataset combinations work; where is `logprob_dict.get()` used in the final scoring path? | Trace the vllm evaluation path for ceval-valid and find where values from `logprob_dict.get()` are added to integers. Identify how missing log probabilities are handled. | Some vllm model/dataset combinations fail during final evaluation with an integer-plus-None TypeError, while others succeed. I need missing `logprob_dict.get()` values handled safely; where is this scoring behavior wired in? | How does vllm evaluation build and consume `logprob_dict` through final scoring, including how missing log probabilities flow into dataset results? | [
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 2,
"end": 2,
"symbol": "<module>"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 8,
"end": 8,
"symbol": "<module>"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 11,
"end": 11,
"symbo... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-01-04T12:08:53Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1241 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1234"
] | true | false |
EleutherAI__lm-evaluation-harness-1255 | EleutherAI/lm-evaluation-harness | 28ec7fa950346b5a895e85e1f3edd5648168acc4 | python | real_issue_pr | 27 | Winogrande Performance Discrepency
Could this PR have significant impact on Winogrande metric? I am experiencing discrepancy when using v0.4.0 and the version that HuggingFace uses for Open LLM Leaderboard (commit b281b09).
For two Llama2 models (quantized and unquantized), the Winogrande metric on v0.4... | where did winogrande scoring change between v0.4.0 and b281b09? | winogrande dropped on v0.4.0 vs b281b09 for llama-2-7b-chat-hf, quantized too — find the scoring path | Winogrande is 66.38 on meta-llama/llama-2-7b-chat-hf with v0.4.0, but 73.01 on b281b09; GPTQ also drops from 70.80 to 65.43. Where does the task scoring or prompt handling differ? | Trace Winogrande task scoring and prompt construction across v0.4.0 and b281b09. Identify code paths that could explain lower scores for both Llama-2 chat and GPTQ models. | We need to understand and resolve the Winogrande metric discrepancy between v0.4.0 and b281b09, including results for quantized and unquantized Llama-2 chat models. Where is the task behavior wired in? | How does Winogrande evaluation flow from task prompt construction through answer scoring to the reported metric? How is that behavior organized across harness versions? | [
"lm_eval/api/task.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 768,
"end": 799,
"symbol": "ConfigurableTask.fewshot_context"
},
{
"file": "lm_eval/api/task.py",
"start": 942,
"end": 997,
"symbol": "ConfigurableTask.construct_requests"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-01-08T14:11:11Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1255 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1249"
] | true | false |
EleutherAI__lm-evaluation-harness-1266 | EleutherAI/lm-evaluation-harness | 9b0b15b1ccace3534ffbd13298c569869ce8eaf3 | python | real_issue_pr | 49 | exact_match computation very slow for multiple target tasks
TriviaQA has ~18,000 samples (with arbitrary number of targets) and currently it takes around 20 mins to compute the `exact_match` scores after the generations are completed (generations took ~ 3 mins). This is probably because each sample is called individua... | speed up exact_match scoring for TriviaQA’s 18,000 samples | TriviaQA gen is ~3 mins but exact_match takes 20 — 18k samples, maybe scoring each sample separately? | TriviaQA generations finish in about 3 minutes, but computing `exact_match` takes around 20 minutes for ~18,000 samples with arbitrary numbers of targets. Where is scoring done per sample, and can it be batched? | Trace the `exact_match` scoring path for multiple targets. Find why TriviaQA’s ~18,000 samples take about 20 minutes to score after generation. | We need to reduce `exact_match` scoring time for TriviaQA, especially with ~18,000 samples and arbitrary numbers of targets. Find where per-sample scoring is wired in and how it could be made more efficient. | How does `exact_match` scoring work end-to-end for tasks with multiple targets? How are TriviaQA samples and targets passed through the scoring pipeline? | [
"lm_eval/api/task.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 1004,
"end": 1174,
"symbol": "ConfigurableTask.process_results"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-01-10T17:47:43Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1266 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1264"
] | true | false |
EleutherAI__lm-evaluation-harness-1275 | EleutherAI/lm-evaluation-harness | 89618bf8421d27c8cf28004d616b33fc5b305ceb | yaml | real_issue_pr | 26 | GSM8k_CoT or Exact Match infra seems to be broken
Command to replicate:
```bash
lm_eval --model openai-chat-completions --model_args model=gpt-3.5-turbo --tasks gsm8k_cot --log_samples --output_path results/gpt_3.5_turbo_gsm8k_cot
```
Example of one of the mislabeled test entries, the answer was correct but exact matc... | why does gsm8k_cot exact_match score 0.0 for the correct answer 540? | lm_eval openai-chat-completions, gsm8k_cot gives 0.0 even when filtered_resps is 540 and target is 540 — where's exact match wired? | Running `lm_eval --model openai-chat-completions --model_args model=gpt-3.5-turbo --tasks gsm8k_cot` returns exact_match 0.0 for a correct 540 response. The target is ` 540` and filtered response is `540`; where are GSM8k answer extraction and exact-match comparison handled? | Trace the `gsm8k_cot` task's target formatting, response filtering, and `exact_match` scoring. Find how `#### 540`, target ` 540`, and filtered response `540` flow through evaluation. | I want GSM8k_CoT exact match to count numerically correct answers such as `540` against target ` 540`, rather than scoring 0.0. Identify where answer extraction, normalization, and metric configuration are connected. | How does `gsm8k_cot` process a model response end to end—from the GSM8k `####` target and response filtering to the `exact_match` score? How are whitespace and final-answer extraction handled? | [
"lm_eval/tasks/gsm8k/gsm8k-cot-self-consistency.yaml",
"lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"lm_eval/tasks/gsm8k/gsm8k.yaml"
] | [
{
"file": "lm_eval/tasks/gsm8k/gsm8k-cot-self-consistency.yaml",
"start": 33,
"end": 34,
"symbol": "metadata"
},
{
"file": "lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"start": 3,
"end": 22,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"start": 29,... | [] | 2024-01-15T13:56:31Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1275 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1204"
] | true | false |
EleutherAI__lm-evaluation-harness-1273 | EleutherAI/lm-evaluation-harness | 39e7b26402a9413640638106271072bcb0ad4819 | python | real_issue_pr | 16 | Group Alias issue
A group alias of another task is used instead of the actual group name #1198 | where does task group alias replace the actual group name? | group alias from another task gets used instead of the real group name — trace alias handling | A task group is reported using another task's group alias instead of its actual group name. Where is the alias resolved and propagated? | Trace how task group aliases are resolved and used. Find where an alias can replace the actual group name. | Group aliases should not obscure the actual group name when one task references another task's alias. Identify where group naming and alias handling are wired together. | How does the harness resolve task group aliases and carry group names through task registration and evaluation? | [
"lm_eval/tasks/__init__.py"
] | [
{
"file": "lm_eval/tasks/__init__.py",
"start": 57,
"end": 84,
"symbol": "register_configurable_group"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/registry.py",
"lm_eval/api/task.py",
"lm_eval/prompts/__init__.py",
"lm_eval/tasks/scrolls/task.py",
"lm_eval/tasks/squadv2/task.py",
"lm_eval/utils.py"
] | 2024-01-15T14:59:14Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1273 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1199"
] | false | false |
EleutherAI__lm-evaluation-harness-1270 | EleutherAI/lm-evaluation-harness | 03e7df519ea2505fa0890847cdf23a6d45393efc | python | real_issue_pr | 23 | Help on MultiGPU setup
I tried this first but got OOM
```
accelerate launch --use_fsdp --no_python lm_eval --model hf \
--model_args pretrained=dillfrescott/trinity-v1.2-x8-MoE,load_in_4bit=True \
--tasks ai2_arc\
--batch_size 4 \
--num_fewshot 25
```
Then I saw a solution like using `parallelize=Tru... | where does the hf model loader handle multi-gpu 4-bit GPTQ with accelerate? | hf + accelerate multi gpu blows up for quantized models — GPTQ says device_map='auto' can't run distributed, parallelize=True hits cuda:0/cuda:1 mismatch | With `TheBloke/Llama-2-7B-Chat-GPTQ`, `gptq=True`, and `load_in_4bit=True`, accelerate launch fails: `You can't train a model that has been loaded with device_map='auto' in any distributed mode.` Where is this model-loading and distributed-mode interaction handled? | Trace the Hugging Face model-loading path for `gptq=True`, `load_in_4bit=True`, and `device_map_option=balanced` under `accelerate launch`. Identify how quantized model placement interacts with distributed execution and `parallelize=True`. | We need multi-GPU evaluation to work with 4-bit GPTQ models under Hugging Face Accelerate, without the `device_map='auto'` distributed-mode error or cross-device tensor mismatch. Where are quantization, device placement, and launch behavior wired together? | How does the Hugging Face backend load and distribute models when using `parallelize=True`, `device_map_option`, or Accelerate, especially for 4-bit GPTQ? How do model placement and evaluation batches flow across GPUs? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 305,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 423,
"end": 509,
"symbol": "HFLM._create_model"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-01-15T15:02:36Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1270 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1220",
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1247"
] | true | false |
EleutherAI__lm-evaluation-harness-1289 | EleutherAI/lm-evaluation-harness | 588a493c41b58d048d3994f99800edd27223bd3a | yaml | real_issue_pr | 4 | about nq_open results
Hi,
I have problems reproducing the results of Natural Question dataset from this [PR](https://github.com/EleutherAI/lm-evaluation-harness/pull/789). This is the command I use:
For llama1-0-shot
```bash
lm-eval --model hf --batch_size auto --task nq_open --model_args pretrained=huggyllama/llama-... | why does nq_open reproduce lower scores for Llama 7B with lm-eval? | nq_open scores off vs original PR — Llama 1/2 7B, 0-shot and --num_fewshot 5, could db refactor change results? | With `lm-eval --model hf --batch_size auto --task nq_open`, my Llama 7B scores are lower than the original PR: 13.3 vs 18.3 for Llama 1 0-shot, and 14.5 vs 17.5 for Llama 2. The 5-shot scores are closer; where are nq_open examples and few-shot prompts assembled, and could the database refactor affect scoring? | Trace the `nq_open` task configuration, dataset loading, prompt construction, and metric calculation. Identify changes that could explain reproduced Llama 7B scores differing from the original PR for 0-shot and `--num_fewshot 5`. | We need to understand and resolve why `nq_open` results differ from the original PR: Llama 1 7B is 13.3 vs 18.3 at 0-shot and 21.5 vs 23.9 at 5-shot; Llama 2 7B is 14.5 vs 17.5 and 25.2 vs 26.1. Where does dataset/database loading feed into prompt formatting and answer scoring? | How does `nq_open` load Natural Questions data, build zero- and few-shot prompts, and calculate its score end to end? How does the database layer participate in that flow? | [
"lm_eval/tasks/nq_open/nq_open.yaml"
] | [
{
"file": "lm_eval/tasks/nq_open/nq_open.yaml",
"start": 6,
"end": 6,
"symbol": "description"
},
{
"file": "lm_eval/tasks/nq_open/nq_open.yaml",
"start": 31,
"end": 32,
"symbol": "metadata"
}
] | [] | 2024-01-16T01:53:24Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1289 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1288"
] | true | false |
EleutherAI__lm-evaluation-harness-1327 | EleutherAI/lm-evaluation-harness | 181ccf4362fc945771fde525967ad52df42c2573 | python | real_issue_pr | 32 | Generator Error when evaluating GLUE and superGLUE
The error information shows that:
And the corresponding code is:
I guess the error was caused by the parameter <n_reordered_requests>, which is a generator, and that was assigned by:
So I think #1197 commitment changes it and results in this error. When I checko... | why does n_reordered_requests break GLUE and superGLUE evaluation when it is a generator? | GLUE + superGLUE eval started throwing generator error after recent change — n_reordered_requests is a generator, where does it get assigned? | Evaluating GLUE and superGLUE now raises a generator error, while an older revision works. Where is n_reordered_requests assigned and consumed? | Trace how n_reordered_requests is created and consumed during GLUE and superGLUE evaluation. Identify the change that could make its generator value trigger an error. | GLUE and superGLUE evaluation should handle n_reordered_requests without failing when it is a generator. Find where this parameter is wired into evaluation and where its value is consumed. | How does n_reordered_requests flow through the evaluation pipeline for GLUE and superGLUE, from assignment to consumption? | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 186,
"end": 615,
"symbol": "evaluate"
}
] | [
"lm_eval/api/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-01-22T17:16:50Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1327 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1240"
] | true | false |
EleutherAI__lm-evaluation-harness-1334 | EleutherAI/lm-evaluation-harness | 5c25dd5514eb8d34a385fa500d34d1249730723f | python | real_issue_pr | 11 | `evaluator.py` should only depend on the contract of LM, actually depends on other model attributes
Based on the code comments, I'd expect to be able to pass any valid instance of `LM` as `model` in evaluator.simple_evaluate. In reality the function depends on attributes not provided by the LM interface.
Specifically... | why does simple_evaluate read model.model.config._name_or_path instead of only using the LM interface? | simple_evaluate assumes nested model.model.config._name_or_path — any hasattr fallback or LM type name option? | Passing a valid LM instance to evaluator.simple_evaluate fails because it expects model.model.config._name_or_path, which the LM interface doesn't provide. Where is that attribute used, and can it fall back to type(lm).__name__? | Trace evaluator.simple_evaluate's model metadata access. Find where it reads model.model.config._name_or_path and identify how to rely only on the LM contract or use a safe fallback. | I want simple_evaluate to accept any valid LM implementation without requiring nested model config attributes. Where is model naming wired in, and how could it default to type(lm).__name__ when _name_or_path is absent? | How does evaluator.simple_evaluate derive and use a model's name? Trace the data flow from the LM interface through model metadata, including _name_or_path. | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 24,
"end": 180,
"symbol": "simple_evaluate"
}
] | [
"lm_eval/api/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-01-22T22:28:25Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1334 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1333"
] | true | false |
EleutherAI__lm-evaluation-harness-1349 | EleutherAI/lm-evaluation-harness | 34cded30e6c0f13ad682f37f932e1573a36cc410 | python | real_issue_pr | 166 | Different score when using `accelerate`
I'm observing discrepancy between when running lm-eval with and without accelerate. I've only realized it just now.
With accelerate
```
hf (pretrained=lintang/t5-v2-base-sglue,truncation=True,max_length=512), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: 1
| ... | why does accelerate change super_glue-wsc-t5-prompt accuracy for lintang/t5-v2-base-sglue? | lm-eval w/ accelerate gets 0.6346 accuracy, without it's 0.7308 — same hf cfg, batch_size=1, where's the mismatch | With `lintang/t5-v2-base-sglue`, `super_glue-wsc-t5-prompt` scores 0.6346 with accelerate but 0.7308 without it. Where does the accelerate evaluation path affect scoring or postprocessing? | Trace how accelerate changes the evaluation path for `super_glue-wsc-t5-prompt` with `lintang/t5-v2-base-sglue`. Identify where predictions, batching, or the `wsc_postprocessor` could diverge from non-accelerate runs. | We need consistent `super_glue-wsc-t5-prompt` accuracy with and without accelerate for `lintang/t5-v2-base-sglue` (0.6346 vs 0.7308). Where is the evaluation and postprocessing behavior wired so the two modes can be aligned? | How does lm-evaluation-harness route model inference and `wsc_postprocessor` through accelerate versus the regular evaluation path? How are predictions gathered and scored end-to-end? | [
"lm_eval/api/filter.py",
"lm_eval/api/task.py",
"lm_eval/filters/__init__.py",
"lm_eval/tasks/super_glue/wsc/t5-prompt.yaml",
"lm_eval/tasks/super_glue/wsc/t5_utils.py"
] | [
{
"file": "lm_eval/api/filter.py",
"start": 1,
"end": 7,
"symbol": "<module>"
},
{
"file": "lm_eval/api/filter.py",
"start": 9,
"end": 30,
"symbol": "Filter"
},
{
"file": "lm_eval/api/filter.py",
"start": 45,
"end": 56,
"symbol": "FilterEnsemble.apply"
},
... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/extraction.py",
"lm_eval/filters/selection.py",
"lm_eval/filters/transformation.py",
"lm_eval/prompts/__init__.py",
"lm_ev... | 2024-01-25T20:27:29Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1349 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1293"
] | true | false |
EleutherAI__lm-evaluation-harness-1367 | EleutherAI/lm-evaluation-harness | 488759d2c9a55ad3ed55d55417b7733e95e37667 | python | real_pr | 38 | serialize callable functions in config
I was going through Sasha Rush's [repo](https://github.com/srush/triton-autodiff) and he uses the built-in [inspect.getsource](https://<file>tml), which can extract the source code from a function. The whole module is pretty handy! Had never come across it. | where are callable functions in configs serialized? | config has callable funcs, need them to survive serialization too — where does that happen? | A config containing a function doesn't round-trip through serialization. Where is config serialization handled, and what supports callable values? | Trace how configuration values are serialized and deserialized. Find the handling for callable functions and identify any limitations. | We need configurations to support callable functions when saved or transferred. Where does config value serialization happen, and what constraints should we account for? | How do configuration values flow through serialization and deserialization? In particular, how are callable functions represented across that boundary? | [
"lm_eval/api/task.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 2,
"end": 13,
"symbol": "<module>"
},
{
"file": "lm_eval/api/task.py",
"start": 35,
"end": 45,
"symbol": "<module>"
},
{
"file": "lm_eval/api/task.py",
"start": 88,
"end": 113,
"symbol": "TaskConfig.__post_init__"
},... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-01-29T05:15:01Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1367 | [] | true | false |
EleutherAI__lm-evaluation-harness-1369 | EleutherAI/lm-evaluation-harness | 7fc436562c3640a4140ca4a99ddb14d28c4051b0 | python | real_pr | 42 | delay filter init; remove `*args`
Thought that if `<symbol>` can be used for model based evaluations then it's better to delay init until the generations are over. This PR adds a partial function to the ensemble which gets called when the filter is applied rather then storing the filter instance. Also removed `*args` ... | why are evaluation filters initialized before model generations finish? | model-based eval needs generated outputs first, but filter init seems too early — where's filter lifecycle wired up? | A model-based evaluation hits the filter before generation is finished, so it can't use the generated responses. Where does filter initialization happen relative to applying filters? | Trace the evaluation filter lifecycle from setup through application. Find where filter initialization is triggered and how it relates to model generation. | I need model-based evaluations to use generated responses when a filter runs, rather than requiring them during initial setup. Where is filter setup and application coordinated? | How does the evaluation harness manage filters end to end, from configuration and initialization to application after model generations? | [
"lm_eval/api/filter.py",
"lm_eval/api/instance.py",
"lm_eval/api/task.py",
"lm_eval/filters/__init__.py",
"lm_eval/filters/selection.py"
] | [
{
"file": "lm_eval/api/filter.py",
"start": 3,
"end": 3,
"symbol": "<module>"
},
{
"file": "lm_eval/api/filter.py",
"start": 17,
"end": 20,
"symbol": "Filter.__init__"
},
{
"file": "lm_eval/api/filter.py",
"start": 22,
"end": 30,
"symbol": "Filter.apply"
},
... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/extraction.py",
"lm_eval/filters/transformation.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-01-30T10:55:52Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1369 | [] | true | false |
EleutherAI__lm-evaluation-harness-1374 | EleutherAI/lm-evaluation-harness | a0a2fec8dc0c7da009029640d3316cb1091ee1c1 | python | real_pr | 10 | Add support for RWKV models with World tokenizer
The RWKV line of model with the World tokenizer, does not allow the padding token to be configured, and has its value preset as 0
This however fails all the "if set" checks, and would cause the tokenizer to crash.
A tokenizer class name check was added, in addition to... | where does hf evaluation handle rwkv world tokenizers with padding token id 0? | rwkv world tokenizer has pad id 0 baked in, no cfg to change it — why does hf eval treat that like no padding? | Evaluating an RWKV World model through the Hugging Face backend crashes when the tokenizer uses padding token ID 0. Where is padding-token detection handled, and how are RWKV models with NeoX tokenizers distinguished? | Trace Hugging Face tokenizer initialization and padding-token checks for RWKV World models. Identify how the backend can distinguish World tokenizers from RWKV models using NeoX tokenizers. | We need Hugging Face evaluation to support RWKV models whose World tokenizer has a fixed padding token ID of 0, without misclassifying RWKV models that use NeoX tokenizers. Where does tokenizer compatibility and padding behavior get wired in? | How does the Hugging Face backend identify tokenizers and determine whether padding is available during model evaluation? How does that flow behave for RWKV World and NeoX tokenizers? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 309,
"symbol": "HFLM.__init__"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-01-31T20:59:31Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1374 | [] | true | false |
EleutherAI__lm-evaluation-harness-1156 | EleutherAI/lm-evaluation-harness | 084b70502cf12aae5e42867dca7490e45c265f59 | python | real_issue_pr | 122 | Add `--predict_only` mode (run without scoring outputs)
As asked for by @dwadden from AI2.
We should support a CLI flag, `--predict_only`, which causes model outputs to be produced and saved, but to exit while reporting metric = `N/A` for all metrics. This is a useful feature in general.
This could also be extended,... | where does `--predict_only` save model outputs and report metrics as `N/A`? | need predict_only CLI flag — generate + save preds, skip scoring, print N/A for all metrics; where's eval flow wired | I need model outputs saved without running metric scoring, with every metric reported as `N/A`. Where does the CLI flag and evaluation flow handle generation versus scoring? | Trace the CLI and evaluation flow for adding `--predict_only`. Identify how to save generated outputs while skipping scoring and reporting all metrics as `N/A`. | We want a prediction-only mode that runs generation, saves model outputs, and exits with `N/A` for every metric. It may also support HumanEval(+) generation for offline, properly sandboxed scoring; where does this behavior fit into the evaluation pipeline? | How does the harness pass model generations from CLI evaluation through output saving and metric computation? How are generation-only tasks such as HumanEval(+) handled end-to-end? | [
"lm_eval/__main__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/task.py",
"lm_eval/evaluator.py",
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 27,
"end": 146,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 149,
"end": 282,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/api/metrics.py",
"start": 12,
"end": 23,
"symbol": "<module>"
}... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/models/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-01-31T22:33:14Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1156 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1152"
] | false | false |
EleutherAI__lm-evaluation-harness-1380 | EleutherAI/lm-evaluation-harness | f5408b6b7b96f587e4f936776bb8c8c5ddac6ff8 | python | real_pr | 7 | Hf: minor egde cases
A couple of edge cases where the variable might be referenced before assignment. | where can Hugging Face evaluation reference an uninitialized variable? | hf eval has a couple weird paths, var gets used before init maybe — where are the conditional branches? | A Hugging Face evaluation run hits an unbound local variable on an edge-case path. Which control flow can reach a variable before it is assigned? | Trace Hugging Face evaluation paths with conditional assignments. Find production code where a variable may be read before assignment, especially on uncommon inputs or configs. | I need Hugging Face evaluation to handle edge cases without depending on a variable being assigned only on some branches. Where is that behavior determined? | How does the Hugging Face evaluation flow handle optional settings and branching execution paths? Where are values established before later use? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 319,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 373,
"end": 423,
"symbol": "HFLM._get_backend"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 1047,
"end": ... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-02-01T09:13:29Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1380 | [] | true | false |
EleutherAI__lm-evaluation-harness-1379 | EleutherAI/lm-evaluation-harness | 994bdb3fd3780110e45f479f5f409cae05e089bd | python | real_issue_pr | 21 | Display `n-shot` better for groups and for hardcoded-fewshot tasks
For tasks like `minerva_math` where we hardcode `n-shot` to be 0, and provide the model with a hardcoded few-shot prompt, fewshot is erroneously displayed as 0 . We should allow configs to contain
```
metadata:
num_fewshot: 4
```
to override what wi... | where is the results table n-shot column populated from metadata num_fewshot? | minerva_math hardcodes n-shot 0 but prompt has 4 shots — find cfg path for metadata.num_fewshot override + task group version inheritance | The results table shows n-shot as 0 for minerva_math even though its prompt includes four hardcoded examples. Where is the displayed few-shot count derived, and can metadata.num_fewshot override it? | Trace how task metadata reaches the results table's n-shot column. Identify the configuration and task-group wiring for metadata.num_fewshot overrides and version inheritance. | We need results to display metadata.num_fewshot when a task's actual prompt uses hardcoded few-shot examples despite an n-shot setting of 0. We may also add version fields to task groups; where does task metadata and group inheritance live? | How does the harness derive the displayed n-shot value from task configuration and metadata, and how are task-group versions represented or inherited? | [
"lm_eval/api/task.py",
"lm_eval/evaluator.py",
"lm_eval/tasks/belebele/_generate_configs.py",
"lm_eval/tasks/belebele/belebele_default.yaml",
"lm_eval/tasks/gsm8k/gsm8k-cot.yaml",
"lm_eval/tasks/minerva_math/minerva_math_algebra.yaml"
] | [
{
"file": "lm_eval/api/task.py",
"start": 44,
"end": 165,
"symbol": "TaskConfig"
},
{
"file": "lm_eval/evaluator.py",
"start": 205,
"end": 651,
"symbol": "evaluate"
},
{
"file": "lm_eval/tasks/belebele/_generate_configs.py",
"start": 25,
"end": 64,
"symbol": "... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/models/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"... | 2024-02-01T14:23:30Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1379 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1360"
] | true | false |
EleutherAI__lm-evaluation-harness-1384 | EleutherAI/lm-evaluation-harness | d714fc951b719f53616da95c83ec4179ec8f7d83 | python | real_issue_pr | 7 | Eval on SQuAD v2 stopped working
Steps to reproduce the issue: https://colab.research.google.com/drive/152sh0oZNL8GzYQHWoA5QsO4WVfGZ0xN8?usp=sharing
```
!lm_eval --model hf --model_args pretrained=mistralai/Mistral-7B-v0.1,revision=main --tasks squadv2 --device cpu --batch_size 1 --num_fewshot 8
[..]
Downloading read... | why does squadv2 lack override_config when lm_eval sets num_fewshot? | lm_eval squadv2 blows up on num_fewshot=8 -- SQuAD2 has no override_config, where's task cfg override handled? | Running `lm_eval --model hf --model_args pretrained=mistralai/Mistral-7B-v0.1,revision=main --tasks squadv2 --device cpu --batch_size 1 --num_fewshot 8` crashes with `AttributeError: 'SQuAD2' object has no attribute 'override_config'`. Where does few-shot config get applied to task objects? | Trace how `simple_evaluate` applies `num_fewshot` overrides to task instances, especially SQuAD2. Find the task configuration API and why SQuAD2 lacks `override_config`. | The `squadv2` task should work with the CLI's `--num_fewshot 8` option instead of crashing on `override_config`. Identify how task configs and few-shot overrides are wired. | How does `lm_eval` pass `--num_fewshot` from the CLI through `simple_evaluate` to task implementations such as SQuAD2? | [
"lm_eval/tasks/squadv2/task.py"
] | [
{
"file": "lm_eval/tasks/squadv2/task.py",
"start": 22,
"end": 22,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/squadv2/task.py",
"start": 49,
"end": 237,
"symbol": "SQuAD2"
}
] | [
"lm_eval/api/instance.py",
"lm_eval/api/task.py"
] | 2024-02-02T04:15:40Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1384 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1383"
] | false | false |
EleutherAI__lm-evaluation-harness-1390 | EleutherAI/lm-evaluation-harness | df01adf64434d6081e6139445da6c70b564d431d | python | real_pr | 150 | Use Pooled rather than Combined Variance for calculating stderr of task groupings
This PR updates the formula we use for aggregating stderrs / sample std. deviations across groups of tasks.
In this PR:
formula:
result:
```
hf (pretrained=mistralai/Mistral-7B-v0.1), gen_kwargs: (None), limit: None, num_fewshot: Non... | where is stderr calculated for grouped task results? | grouped task stderr looks off vs individual tasks — find the aggregation path and how sample spread is calculated | The MMLU group stderr doesn't seem consistent with the stderrs shown for its component tasks. Where is uncertainty calculated when task results are aggregated? | Trace how standard errors are computed for task-group metrics. Identify the production code that combines per-task results and sample uncertainty. | We need grouped evaluation results to report a statistically appropriate standard error based on their component tasks. Find where task metrics and uncertainty are aggregated, and how the current calculation is defined. | How does the evaluation harness calculate and report standard errors from individual tasks through to task-group summaries? | [
"lm_eval/api/metrics.py",
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/api/metrics.py",
"start": 4,
"end": 4,
"symbol": "<module>"
},
{
"file": "lm_eval/api/metrics.py",
"start": 411,
"end": 427,
"symbol": "stderr_for_metric"
},
{
"file": "lm_eval/evaluator.py",
"start": 221,
"end": 667,
"symbol": "evaluate"
... | [
"lm_eval/api/__init__.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-02-06T16:15:45Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1390 | [] | true | false |
EleutherAI__lm-evaluation-harness-1400 | EleutherAI/lm-evaluation-harness | 94cc18500fd3bd165b532d5e36349758f1221f30 | python | real_pr | 11 | adding hf_transfer
https://github.com/EleutherAI/lm-evaluation-harness/issues/1399
Should give a 2-5x download boost (given that you sit in a datacenter) https://github.com/huggingface/hf_transfer - I have seen no issues with lower bandwidth.
Should I add it as extra or in the main deps? | where are Hugging Face model downloads configured, and can hf_transfer be optional? | hf model pulls are slow on datacenter bandwidth — any cfg for faster downloads? wondering if hf_transfer should be req or opt-in | Downloading models from Hugging Face is taking longer than expected on high-bandwidth machines. Where does the harness configure that download behavior, and what optional acceleration is supported? | Trace how the harness downloads models and resolves Hugging Face dependencies. Identify where optional download acceleration could be configured without assuming it belongs in the default install. | We may need faster Hugging Face downloads for users with strong network bandwidth, while keeping ordinary installs lightweight. Where is dependency setup and model-download behavior coordinated? | How does model retrieval from Hugging Face work end to end in the harness? Explain how its dependencies and download settings are selected. | [
"lm_eval/models/__init__.py"
] | [
{
"file": "lm_eval/models/__init__.py",
"start": 11,
"end": 11,
"symbol": "<module>"
}
] | [
"lm_eval/models/anthropic_llms.py",
"lm_eval/models/dummy.py",
"lm_eval/models/gguf.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/mamba_lm.py",
"lm_eval/models/neuron_optimum.py",
"lm_eval/models/openai_completions.py",
"lm_eval/models/optimum_lm.py",
"lm_eval/models/textsynth.py",
"lm_eva... | 2024-02-06T21:26:34Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1400 | [] | true | false |
EleutherAI__lm-evaluation-harness-1405 | EleutherAI/lm-evaluation-harness | 756eeb6f0aee59fc624c81dcb0e334c1263d80e3 | python | real_issue_pr | 8 | Batch size auto is wrong?
Batch size `auto` is not working correctly (with `generate_until` tasks?).
`lm_eval --model hf --model_args pretrained=HuggingFaceH4/zephyr-7b-alpha,dtype=bfloat16 --tasks polemo2_in --device cuda:0 --batch_size auto`
```Passed argument batch_size = auto. Detecting largest batch size
Traceb... | why does batch_size auto hit zero for generate_until with zephyr-7b-alpha? | hf eval polemo2_in, batch_size auto keeps shrinking to zero on cuda; batch 2 works on 40gb, where's the detect logic | Running `lm_eval --model hf --model_args pretrained=HuggingFaceH4/zephyr-7b-alpha,dtype=bfloat16 --tasks polemo2_in --device cuda:0 --batch_size auto` raises `RuntimeError: No executable batch size found, reached zero.` The task works with batch size 2 on a 40GB GPU; where does auto batch detection handle generate_unti... | Trace the `--batch_size auto` detection path for HF `generate_until` tasks. Find why it reaches `No executable batch size found, reached zero` for zephyr-7b-alpha on CUDA despite batch size 2 working. | Auto batch sizing should find a usable batch size for `generate_until` tasks; `polemo2_in` with `HuggingFaceH4/zephyr-7b-alpha` errors at zero while batch size 2 works on 40GB VRAM. Where is batch-size detection wired into HF generation? | How does `--batch_size auto` determine a batch size for HF `generate_until` requests, from cloned requests through the forward pass? Where does it use the model and CUDA device context? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 586,
"end": 633,
"symbol": "HFLM._detect_batch_size"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-02-07T13:48:47Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1405 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1323"
] | true | false |
EleutherAI__lm-evaluation-harness-1418 | EleutherAI/lm-evaluation-harness | ab4dba8fa4d23b38f2cb03eb747b505f93f33f1c | python | real_pr | 5 | Fixes https://github.com/EleutherAI/lm-evaluation-harness/issues/1416
Sets `do_sample = False` if `temperature == 0.0` and `do_sample = None` | where are temperature=0.0 and unspecified do_sample handled during generation? | temp 0 with do_sample unset acting weird — where does generation config get validated or passed through? | Generation behaves unexpectedly when temperature is 0.0 and do_sample is omitted. Where are those options interpreted before the model generates? | Trace how temperature and do_sample are resolved for model generation. Identify where the unset sampling option interacts with a zero temperature. | We need generation to handle temperature 0.0 sensibly when callers leave do_sample unspecified. Where does the harness assemble and validate generation options? | How do generation options such as temperature and do_sample flow from evaluation requests into model generation? Where are defaults and validation applied? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 723,
"end": 743,
"symbol": "HFLM._model_generate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-02-10T15:03:50Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1418 | [] | true | false |
EleutherAI__lm-evaluation-harness-1404 | EleutherAI/lm-evaluation-harness | 921eab86b276e156eefa2a6343761fb422c5c01b | python | real_pr | 11 | Fix watchdog timeout
I have experienced an issue with multi GPU eval where evaluation crashes due to watchdog timeout. This is happening on GSM8k with a custom Llama model. I believe one of the GPU processes takes too long to send any data over, which causes timeout (which is set at 30 minutes by default).
```
[E Pro... | where is the distributed evaluation NCCL watchdog timeout configured? | multi gpu eval on gsm8k, custom llama hits 30min nccl watchdog timeout — where's that timeout cfg coming from | GSM8k evaluation with a custom Llama model crashes after a 30-minute NCCL collective watchdog timeout. Where does distributed evaluation configure or trigger that timeout? | Trace the multi-GPU evaluation path for NCCL collective timeouts. Find where the watchdog timeout is configured and how it reaches the distributed process group. | Distributed evaluation needs to tolerate GPU ranks that take longer than 30 minutes between collectives without terminating the run. Where is the timeout policy wired into evaluation? | How does multi-GPU evaluation set up distributed collectives and their watchdog timeout? Trace how the timeout value reaches the process group. | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 1,
"end": 8,
"symbol": "<module>"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 9,
"end": 9,
"symbol": "<module>"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 319,
"symbol": "HFL... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-02-10T20:54:36Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1404 | [] | true | false |
EleutherAI__lm-evaluation-harness-1385 | EleutherAI/lm-evaluation-harness | 1e6825da447275f2949c8a33f1aca7485a54ce2f | python | real_pr | 198 | Evaluate
Was trying to modularize evaluate so that we can add converage in the tests but it's a bit too complex so might take a couple of PRs. I added some readability updates in this PR.
Also fixed some nits left over from #1156, #1321 where the new args were not back-compatible with `Task` (`Task` doesn't have meta... | where does evaluate handle task configuration and optional metadata? | evaluate is getting hard to test cleanly — trace the config flow, and check how older Task callers handle new args when metadata's missing | Older Task integrations break when evaluation receives newer arguments, and Task doesn't expose metadata. Where are those arguments validated or passed through? | Trace the evaluation entry point and its task configuration flow. Find where new arguments may affect backward compatibility with existing Task implementations. | We need evaluation to be easier to test in smaller pieces while keeping older Task integrations working when optional metadata is unavailable. Where does the evaluation and task-configuration wiring live? | How does evaluation flow from its entry point through task configuration? Explain how Task instances receive configuration and how optional metadata is handled. | [
"lm_eval/api/registry.py",
"lm_eval/api/task.py",
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/api/registry.py",
"start": 1,
"end": 1,
"symbol": "<module>"
},
{
"file": "lm_eval/api/registry.py",
"start": 78,
"end": 78,
"symbol": "<module>"
},
{
"file": "lm_eval/api/registry.py",
"start": 121,
"end": 136,
"symbol": "get_metric"
},
... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/models/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-02-11T04:07:51Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1385 | [] | true | false |
EleutherAI__lm-evaluation-harness-1412 | EleutherAI/lm-evaluation-harness | b69c67c178ed101e857275f8d4d1a5769ced7210 | python | real_pr | 69 | Added seeds to `evaluator.simple_evaluate` signature
With the latest changes (e.g., `TaskManager`) it is much easier to integrate `lm_eval` into existing code.
However, the `evaluator.simple_evalute` function sets `random`, `numpy`, and `torch` seeds with hard-coded values.
Basically this PR addresses this TODO item:... | where are python, numpy, and torch random seeds fixed during evaluation? | library use keeps getting same rng setup — where are eval seeds hardcoded, can callers opt out or pick values? | When I use lm-eval as a library, its evaluation resets random, NumPy, and Torch seeds to fixed values. Where does that happen, and can callers control it? | Trace how random seeds are set during evaluation. Identify where Python, NumPy, and Torch seed values come from and whether library callers can control or disable them. | We need evaluation to support caller-chosen seeds, or leave random state untouched when a host application manages seeding. Where does seed configuration enter the evaluation flow, and what defaults are expected? | How does random seeding work across an evaluation run? Trace how Python, NumPy, and Torch random states are initialized and how that interacts with library callers. | [
"lm_eval/__main__.py",
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 1,
"end": 12,
"symbol": "<module>"
},
{
"file": "lm_eval/__main__.py",
"start": 26,
"end": 152,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 155,
"end": 294,
"symbol": "cli_evaluate"
},
... | [
"lm_eval/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-02-12T20:30:20Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1412 | [] | true | false |
EleutherAI__lm-evaluation-harness-1427 | EleutherAI/lm-evaluation-harness | bfbd0325d3beea7482b866919bc6d1ab05dd7578 | python | real_pr | 16 | Fix: task weighting by subtask size ; update Pooled Stderr formula slightly
This PR:
- fixes a bug where task groupings were no longer defaulting to calculating scores (as raised in #1425 .)
- Slightly updates the Pooled Variance formula, now correctly calculating variances from standard errors `(sample_size * (stder... | why don't task groups calculate scores by default? | task group scores seem off when subtasks differ in size — check default scoring and pooled stderr math | Grouped task scores aren't being calculated by default, and pooled uncertainty looks inconsistent with subtask results. Where does the evaluation harness handle group scoring and aggregate standard errors? | Trace how task groups are scored and how subtask means and standard errors are combined. Check the default behavior and whether group size affects aggregation. | I need task-group scores to reflect differently sized subtasks, with sensible pooled uncertainty. Where are score defaults and subtask aggregation wired together? | How does the evaluation harness turn subtask results into task-group means and standard errors? Explain the end-to-end scoring flow, including its defaults. | [
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py",
"lm_eval/tasks/okapi/truthfulqa_multilingual/utils.py"
] | [
{
"file": "lm_eval/api/metrics.py",
"start": 7,
"end": 7,
"symbol": "<module>"
},
{
"file": "lm_eval/api/metrics.py",
"start": 12,
"end": 12,
"symbol": "<module>"
},
{
"file": "lm_eval/api/metrics.py",
"start": 431,
"end": 445,
"symbol": "pooled_sample_stderr"... | [
"lm_eval/api/model.py"
] | 2024-02-13T18:39:51Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1427 | [] | true | false |
EleutherAI__lm-evaluation-harness-1438 | EleutherAI/lm-evaluation-harness | f3b7917091afba325af3980a35d8a6dcba03dc3f | python | real_pr | 9 | improve hf_transfer activation
Small hindsight from my side, this should be a better way to activate hf_transfer without env variable | where is hf_transfer activation controlled, and can users enable it without an environment variable? | hf_transfer needs env var right now? find the config path for turning on faster huggingface downloads | Hugging Face downloads only use hf_transfer when an environment variable is set. Where is that choice made, and what configuration reaches it? | Trace how Hugging Face downloads decide whether to use hf_transfer. Identify the user-facing configuration and the code that consumes it. | We need a straightforward way to opt into hf_transfer for Hugging Face downloads without relying on environment setup. Where does download configuration enter the system? | How does the harness configure Hugging Face downloads end to end, including how the hf_transfer option is selected? | [
"lm_eval/models/__init__.py"
] | [
{
"file": "lm_eval/models/__init__.py",
"start": 14,
"end": 14,
"symbol": "<module>"
},
{
"file": "lm_eval/models/__init__.py",
"start": 16,
"end": 22,
"symbol": "<module>"
}
] | [
"lm_eval/models/anthropic_llms.py",
"lm_eval/models/dummy.py",
"lm_eval/models/gguf.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/mamba_lm.py",
"lm_eval/models/neuron_optimum.py",
"lm_eval/models/openai_completions.py",
"lm_eval/models/optimum_lm.py",
"lm_eval/models/textsynth.py",
"lm_eva... | 2024-02-18T11:58:52Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1438 | [] | false | false |
EleutherAI__lm-evaluation-harness-1458 | EleutherAI/lm-evaluation-harness | 2683fbbbad6e3e4999dd4e1816f67ea175666aa6 | python | real_pr | 14 | Fixed generation args issue affection OpenAI completion model
The task's requests use the generation kwargs as request args when the task type is `<symbol>` as shown below
<github-link>
Then, in the OpenAI Completion model, the `until` attribute is poped from the request args:
<github-link>
Since the object (`sel... | why does openai completion ignore --gen_kwargs until after the first request | openai completion runs fine once, then later requests use endoftext even with --gen_kwargs until set — where's cfg coming from | The first OpenAI completion request uses the configured `until` value, but subsequent requests stop there and fall back to `|endoftext|`. Where does the harness build generation arguments for each request? | Trace how task-configured generation kwargs and `--gen_kwargs` reach OpenAI Completion requests. Find why `until` may differ between the first and later requests. | I need OpenAI Completion evaluations to honor the configured `until` stopping sequence on every request, including values supplied through `--gen_kwargs`. Where is that request behavior wired in? | How do task generation settings, including `until`, flow into OpenAI Completion requests? Explain how those settings are handled across multiple requests. | [
"lm_eval/api/task.py",
"lm_eval/models/openai_completions.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 1,
"end": 12,
"symbol": "<module>"
},
{
"file": "lm_eval/api/task.py",
"start": 1014,
"end": 1071,
"symbol": "ConfigurableTask.construct_requests"
},
{
"file": "lm_eval/models/openai_completions.py",
"start": 234,
"end": 2... | [
"lm_eval/__init__.py",
"lm_eval/api/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/api/samplers.py",
"lm_eval/filters/__init__.py",
"lm_eval/models/utils.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-02-22T23:53:58Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1458 | [] | true | false |
EleutherAI__lm-evaluation-harness-1464 | EleutherAI/lm-evaluation-harness | eacb74e387545f0eaccf1862355e7b7a50cf4add | python | real_pr | 95 | Add environment and transformers version logging in results dump
To help researchers detect inconsistencies caused by different versions of drivers or packages:
* added logging transformers version in results dump
* added environment info (with the help of pytorch helper function) to results dump
* improved git_hash s... | where are results dumps populated with transformers, environment, and git revision metadata? | result dumps missing reproducibility context — transformers version, torch env details, git info when git isn't around or repo is a submodule? | Two result dumps look different, but I can't tell whether package or environment versions explain it. Where is their metadata collected, and what happens when git isn't available? | Trace how evaluation result dumps collect run metadata. Find where package and environment details and repository revision information are sourced, including submodule scenarios. | We need result dumps to make runs easier to compare across machines and dependency versions. Where does the evaluation flow assemble dump metadata, and how is repository identity determined? | How does evaluation run context flow into serialized results? I'm trying to understand where dependency versions, system environment details, and repository revision information come from. | [
"lm_eval/evaluator.py",
"lm_eval/logging_utils.py",
"lm_eval/utils.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 7,
"end": 20,
"symbol": "<module>"
},
{
"file": "lm_eval/evaluator.py",
"start": 23,
"end": 226,
"symbol": "simple_evaluate"
},
{
"file": "lm_eval/logging_utils.py",
"start": 1,
"end": 9,
"symbol": "<module>"
},
{... | [
"lm_eval/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/registry.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py"
] | 2024-02-24T17:00:59Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1464 | [] | true | false |
EleutherAI__lm-evaluation-harness-1467 | EleutherAI/lm-evaluation-harness | d27c0c08c45d10b546d264f860677d376f24866b | python | real_pr | 4 | Setting trust_remote_code to `True` for HuggingFace datasets compatibility
See this issue for context: https://github.com/EleutherAI/lm-evaluation-harness/issues/1135#issuecomment-1961928695
We'd like to be able to use the latest datasets version, 2.16 in lm-evaluation-harness. We currently [use 2.15](https://github.... | where do dataset loading options and model_args control trust_remote_code? | datasets 2.16 wants trust_remote_code for some hf datasets — where does dataset cfg get passed through? | With Hugging Face datasets 2.16, loading a dataset that requires remote code fails unless trust_remote_code is enabled. Where are dataset loading options and command-line model_args handled? | Trace how Hugging Face dataset loading options are configured and passed through. Check where model_args can set trust_remote_code for evaluation. | We need to support datasets that require Hugging Face remote code while remaining compatible with newer datasets releases. Where are per-dataset loading options and command-line model configuration wired in? | How does the harness pass configuration from dataset definitions and command-line model_args into Hugging Face dataset loading? Where does trust_remote_code fit in that flow? | [
"lm_eval/models/huggingface.py",
"lm_eval/tasks/asdiv/default.yaml"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 78,
"end": 332,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/tasks/asdiv/default.yaml",
"start": 13,
"end": 14,
"symbol": "metadata"
}
] | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/models/utils.py",
"lm_eval/utils.py"
] | 2024-02-26T13:05:05Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1467 | [] | false | false |
MLE-grep
MLE-grep is a polyglot, read-only Multi-Turn Repository Search & Code Localization RL dataset (inspired by Cognition's SWE-grep and Morph's WarpGrep) built specifically for ML Engineers and Inference Engineers.
It contains 18,295 verified localization tasks mined from merged Pull Requests and linked GitHub Issues across 42 flagship ML, LLM inference, distributed serving, KV-cache, GPU kernel, quantization, and post-training repositories spanning Python, C++/CUDA, Go, Rust, C, YAML (Kubernetes/Helm/Hydra configs), TypeScript, and Shell.
Every row includes:
- Exact pre-PR
base_commitverified against local bare git clones (0 missing files / 0 out-of-bounds spans). - Cleaned ground-truth
gt_filesandtree-sitterAST symbol spans (gt_spans) with tests, inline Rustmod tests, lockfiles, docs, and pure-new-file PRs stripped. - 1-hop intra-repo
neutral_files(imported definitions/helpers) so GRPO rewards don't penalize thorough context gathering. - 6 contrasting, pre-discovery paraphrased query columns (
query_terse_ide,query_noisy_casual,query_symptom_debug,query_agent_handoff,query_feature_plan,query_arch_how) alongside the cleaned/80%-scrubbed originalquery—preventing prompt-style overfitting and PR hindsight leakage.
Splits (Zero Leakage)
| Split | Rows | Repos | Design |
|---|---|---|---|
train |
14,990 | 36 | Earlier 95% temporally per training repo (100% SWE-bench Verified clean) |
validation |
775 | 36 | Newest 5% temporally per training repo (in-distribution, zero future-commit leakage) |
test |
2,530 | 6 | Repo-disjoint held-out evaluation across 6 completely unseen repos |
| Total | 18,295 | 42 | 8,463 issue-linked PRs (real_issue_pr) + 9,832 standalone PRs (real_pr) |
Held-Out test Repositories (Unseen During Training)
| Repository | Rows |
|---|---|
sgl-project/sglang |
575 |
LMCache/LMCache |
431 |
ai-dynamo/nixl |
315 |
vllm-project/aibrix |
516 |
huggingface/tokenizers |
263 |
scikit-learn/scikit-learn |
430 |
Note:
scikit-learn/scikit-learnis placed exclusively intest(and tagged within_swebench_verified = True) sotrainandvalidationremain completely free ofSWE-bench Verifiedrepositories.
Language Distribution
| Language | Tasks | Share |
|---|---|---|
python |
11,850 | 64.8% |
cpp |
2,526 | 13.8% |
go |
1,671 | 9.1% |
rust |
900 | 4.9% |
c |
672 | 3.7% |
yaml |
566 | 3.1% |
typescript |
57 | 0.3% |
shell |
22 | 0.1% |
tsx |
22 | 0.1% |
javascript |
9 | 0.0% |
Schema
| Column | Type | Description |
|---|---|---|
task_id |
string |
Unique identifier (<owner>__<repo>-<pr_number>) |
repo |
string |
GitHub repository (owner/name) |
base_commit |
string |
Exact pre-PR git commit SHA |
language |
string |
Dominant modified language (python, cpp, go, rust, c, yaml, etc.) |
query_type |
string |
real_issue_pr (from linked GitHub Issue) or real_pr (from standalone merged PR) |
changed_lines |
int32 |
Target source lines changed (3–250; enables easy downstream filtering) |
query |
string |
Cleaned & 80/20 path/symbol-scrubbed original Issue or PR text |
query_terse_ide |
string |
Blunt 8–20 word IDE/Slack query |
query_noisy_casual |
string |
Rough, telegraphic developer shorthand (fragments, abbreviations) |
query_symptom_debug |
string |
Symptom-first debugging query |
query_agent_handoff |
string |
Imperative search directive from a parent coding agent |
query_feature_plan |
string |
Pre-discovery feature/change scoping query |
query_arch_how |
string |
Pure codebase comprehension / "How does X work?" query |
gt_files |
list<string> |
Ground-truth modified production files at base_commit |
gt_spans |
list<struct> |
Snapped AST/YAML spans: {file, start, end, symbol} (1-indexed inclusive) |
neutral_files |
list<string> |
1-hop intra-repo imported files (exempt from precision penalty in GRPO) |
merged_at |
string |
ISO-8601 PR merge timestamp |
pr_url |
string |
Source merged PR URL |
issue_urls |
list<string> |
Linked closing GitHub Issue URL(s), if any |
paths_scrubbed |
bool |
Whether explicit file paths / tracebacks were scrubbed in query |
in_swebench_verified |
bool |
Whether repo overlaps SWE-bench Verified (False for all train/validation rows) |
Quick Start
from datasets import load_dataset
ds = load_dataset("nyamkhuu/MLE-grep")
print(ds)
# Example: sample a different query style each RL epoch for anti-overfitting
STYLES = [
"query_terse_ide",
"query_noisy_casual",
"query_symptom_debug",
"query_agent_handoff",
"query_feature_plan",
"query_arch_how",
]
row = ds["train"][0]
print(row["repo"], row["base_commit"][:8])
print("Terse:", row["query_terse_ide"])
print("GT spans:", row["gt_spans"])
Licensing & Attribution
This dataset contains metadata, AST span coordinates, and paraphrased search queries derived from public GitHub issues and pull requests of open-source repositories. No repository source code blobs are redistributed in the dataset; users clone the respective open-source repositories directly at base_commit under each repository's upstream license.
- Downloads last month
- -