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 |
EleutherAI__lm-evaluation-harness-1465 | EleutherAI/lm-evaluation-harness | 7de7b27eb36387ebb7250dd3cad1ed46acc67710 | python | real_issue_pr | 32 | Run Gemma LM in Huggingface (simple patch)
Posting this here for visibility:
The following diff fixes Gemma performance:
```
diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py
index e6ffc828..3f775dbb 100644
--- a/lm_eval/models/huggingface.py
+++ b/lm_eval/models/huggingface.py
@@ -786,8 +786... | where does HFLM tokenize context and continuation with add_special_tokens? | Gemma-7b LAMBADA perplexity goes 5909545606 to 3.464 when BOS gets added — find the hf tokenization impl, need BOS/no-BOS toggle | With `google/gemma-7b` and `attn_implementation=flash_attention_2`, `lambada_openai` gets perplexity 5909545606.3929 and accuracy 0.0037. Setting `add_special_tokens=True` for both context and whole text gives 3.4640 and 0.6707; where is that tokenization behavior controlled? | Trace HFLM's context/continuation tokenization and how `add_special_tokens` affects BOS handling. Identify the model initialization or configuration wiring for a user-selectable BOS/no-BOS option. | We need a user-configurable BOS/no-BOS setting for Hugging Face models, with sensible defaults across Gemma, Llama, Mistral, and models that do not use BOS. Where are tokenization defaults and model-specific settings wired together? | How does HFLM encode context and continuation when calculating likelihoods, and how do tokenizer special-token settings affect BOS insertion across model families? | [
"lm_eval/api/model.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/neuron_optimum.py",
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 271,
"end": 283,
"symbol": "TemplateLM._encode_pair"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 78,
"end": 332,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 654,
"end": 670,... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/registry.py",
"lm_eval/models/utils.py",
"lm_eval/utils.py"
] | 2024-02-26T14:02:21Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1465 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1455"
] | false | false |
EleutherAI__lm-evaluation-harness-1372 | EleutherAI/lm-evaluation-harness | f6befdb9ca9babbda9fda75854672b380d7e5aa2 | python | real_issue_pr | 222 | Is there a way to cache the building of datasets?
Hey all, once again, excellent framework.
I'm using the framework programatically.
I wrote code to do this myself, but I want to make sure I'm not being stupid and wanted to check that the package doesn't already support this.
I know it supports the caching of resul... | where are tasks, groups, and datasets built, and is that setup cached? | already cache task/group registration + dataset build? looking for preproc and postproc request-dict caching, not just llm results | Programmatic startup spends time rebuilding tasks, groups, and datasets before evaluation; caching LLM results doesn't help that. Where does dataset construction and request-dict postprocessing happen? | Trace task and group registration plus dataset construction through preprocessing and postprocessing. Find any cache implementation beyond LLM result caching, including cache refresh controls. | I want to cache task/group setup and datasets both before preprocessing and after postprocessing as request dicts, with an option to rewrite cached data. Where does this initialization flow live, and how are cache dependencies handled? | How does the harness build and register tasks, groups, and datasets, then turn them into postprocessed request dicts? How does caching work across that flow versus caching completed LLM results? | [
"lm_eval/__main__.py",
"lm_eval/api/model.py",
"lm_eval/api/task.py",
"lm_eval/evaluator.py",
"lm_eval/tasks/__init__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 8,
"end": 19,
"symbol": "<module>"
},
{
"file": "lm_eval/__main__.py",
"start": 52,
"end": 196,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 199,
"end": 358,
"symbol": "cli_evaluate"
},
... | [
"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/logging_utils.py",
"lm_eval/models/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
... | 2024-02-26T14:54:52Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1372 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1344"
] | true | false |
EleutherAI__lm-evaluation-harness-1484 | EleutherAI/lm-evaluation-harness | 5ccd65d4173a48bfdbc52603f82f7bf636973eb7 | python | real_pr | 12 | add multilingual mmlu eval
The two languages are updated on hf | where are multilingual mmlu evaluation tasks configured, especially for languages hosted on hugging face? | need mmlu eval in two more languages, hf datasets are updated now — where does task setup live? | I can only run MMLU evaluation in one language, though Hugging Face has updated datasets for two others. Where is language and dataset support wired up? | Find how MMLU evaluation tasks select language-specific Hugging Face datasets. Identify the production configuration points that govern available languages. | We need MMLU evaluations to cover two additional languages using the updated Hugging Face data. Where are supported languages and dataset versions defined? | How does multilingual MMLU evaluation work end to end? Trace how a language choice maps to its Hugging Face dataset and evaluation task. | [
"lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py"
] | [
{
"file": "lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py",
"start": 6,
"end": 33,
"symbol": "main"
}
] | [] | 2024-02-27T15:42:30Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1484 | [] | true | false |
EleutherAI__lm-evaluation-harness-1489 | EleutherAI/lm-evaluation-harness | a08eb87081b596bdbbea3a06cff94fa9511f85f0 | python | real_pr | 8 | Fix AttributeError in huggingface.py When 'model_type' is Missing
AttributeError in the huggingface.py occurs when a model's configuration dictionary lacks the 'model_type' key, which is currently assumed to be always present.
AttributeError: 'dict' object has no attribute 'model_type'
at:
- "/<file>"
You can repl... | where does huggingface model loading fail when config has no model_type? | mamba_ssm w/ state-spaces/mamba-130m blows up, config missing model_type — where's this config parsed? | Running lm_eval with mamba_ssm and state-spaces/mamba-130m raises "'dict' object has no attribute 'model_type'". Where does model configuration handling assume that key exists? | Trace the Hugging Face model-loading path for configs without a model_type key. Identify where that configuration is read and what behavior depends on it. | Some Hugging Face model configs lack model_type, but evaluation should still handle them without crashing. Where is model configuration interpreted during loading? | How does the harness load Hugging Face model configuration and use it to select model behavior, particularly for models such as mamba_ssm? | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 78,
"end": 341,
"symbol": "HFLM.__init__"
}
] | [
"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-27T23:31:11Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1489 | [] | true | false |
EleutherAI__lm-evaluation-harness-1495 | EleutherAI/lm-evaluation-harness | cc771ecac8964f0afab76e95e264e69528430ff2 | python | real_issue_pr | 8 | Bug in some model init
https://github.com/EleutherAI/lm-evaluation-harness/blob/2d0a646020db092a0e994a254bb9e5557a02e63b/lm_eval/models/mamba_lm.py#L59-L62
Here, if a user passes one of these kwargs, say, `tokenizer=x`, then this constructor will essentially become:
`init(..., tokenizer=x,... tokenizer=x)` as the tok... | where do model constructors pass tokenizer twice and raise `got multiple values for keyword argument 'tokenizer'`? | mamba/optimum init gets tokenizer from kwargs but leaves it there too — duplicate kwarg err, should pop not get | Passing `tokenizer=x` to model initialization raises `got multiple values for keyword argument 'tokenizer'`. Where are kwargs read without removing constructor arguments before forwarding them? | Search model initialization code for `kwargs.get` on arguments such as `tokenizer` that are also passed explicitly into constructors. Identify the duplicate-keyword forwarding pattern in Mamba and Optimum models. | Model constructors should consume kwargs like `tokenizer` before forwarding the remaining options, so explicitly supplied arguments don't trigger duplicate-keyword errors. Where is this argument extraction and forwarding wired? | How do model initializers extract options such as `tokenizer` from kwargs and pass them through to the underlying constructor? Trace that flow for Mamba and Optimum models. | [
"lm_eval/models/mamba_lm.py",
"lm_eval/models/optimum_lm.py"
] | [
{
"file": "lm_eval/models/mamba_lm.py",
"start": 12,
"end": 63,
"symbol": "MambaLMWrapper.__init__"
},
{
"file": "lm_eval/models/optimum_lm.py",
"start": 16,
"end": 33,
"symbol": "OptimumLM.__init__"
}
] | [
"lm_eval/api/registry.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/utils.py"
] | 2024-02-28T23:43:07Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1495 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1494"
] | false | false |
EleutherAI__lm-evaluation-harness-1480 | EleutherAI/lm-evaluation-harness | d272c19fe7a35fac79b15a236fdbfe7096dd1ad1 | python | real_pr | 18 | Always include EOS token as stop sequence
as discussed in #1462 . | where are generation stop sequences determined, and should EOS always stop decoding? | checking stop seq behavior — does generation always treat the model EOS token as a stop condition? | Some generations seem to continue past the model's EOS token. Where is EOS handling connected to the stop-sequence behavior? | Trace how generation stop sequences are chosen. Find where the model's EOS token is handled and whether it is consistently included. | We need generation to stop reliably when the model emits EOS, alongside any configured stop sequences. Where does the harness decide which stopping conditions to use? | How does the harness determine when model generation ends? Trace how EOS tokens and configured stop sequences flow through decoding. | [
"lm_eval/models/huggingface.py",
"lm_eval/models/neuron_optimum.py",
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 1082,
"end": 1213,
"symbol": "HFLM.generate_until"
},
{
"file": "lm_eval/models/neuron_optimum.py",
"start": 619,
"end": 725,
"symbol": "NEURON_HF.generate_until"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"sta... | [
"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-03-01T16:04:44Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1480 | [] | true | false |
EleutherAI__lm-evaluation-harness-1477 | EleutherAI/lm-evaluation-harness | 284dd80d2857fe626d0502fe03188022dddcac7b | python | real_issue_pr | 71 | Uneven GPU utilization with Data Parallelism (DP) in vLLM due to context-agnostic request distribution.
Description:
While utilizing Data Parallelism (DP) on top of vLLM for processing multiple requests across several GPUs, we observed that the current request distribution logic is overly simplistic. It does not take... | where does vllm distribute dp requests without accounting for context length? | vllm dp reqs get split by count only? long contexts pile onto some gpus, others finish early and sit idle | With Data Parallelism in vLLM, GPUs finish at very different times because requests have uneven context lengths. Where is request assignment handled, and does it consider context size? | Trace vLLM's Data Parallel request-distribution logic. Find how requests are assigned across GPUs and whether context lengths influence that assignment. | We need better load balancing for vLLM Data Parallelism so GPUs don't go idle while others process longer-context requests. Find where request distribution is wired and what inputs it uses. | How does vLLM route requests across Data Parallel GPUs from arrival through execution? What determines the assignment and how does context length factor into it? | [
"lm_eval/models/utils.py",
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/utils.py",
"start": 1,
"end": 9,
"symbol": "<module>"
},
{
"file": "lm_eval/models/utils.py",
"start": 265,
"end": 313,
"symbol": "divide"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 5,
"end": 5,
"symbol": "<module>"
}... | [
"lm_eval/api/instance.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/utils.py"
] | 2024-03-01T16:09:00Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1477 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1468"
] | true | false |
EleutherAI__lm-evaluation-harness-1491 | EleutherAI/lm-evaluation-harness | 27a3da968be496fc9bf3a2f76275d13b9c230895 | python | real_issue_pr | 52 | Passing wandb_args to `simple_evaluate`
The way `wandb_args` is [currently implemented](https://github.com/EleutherAI/lm-evaluation-harness/pull/1339), they're [initialized directly](<github-link>) as parsed from the command line argument and never passed to the `simple_evaluate` [call](<github-link>):
```
lm_eval \
... | where can simple_evaluate initialize wandb_args without the cli? | wandb_args only parsed from cli rn, not passed into simple_evaluate — need a way to init them externally, where's that wired? | With --wandb_args project=lm-eval-harness-integration, the CLI initializes the args but they never reach simple_evaluate. Where does that handoff happen? | Trace how wandb_args are parsed and passed to simple_evaluate. Find the API wiring needed to initialize them outside the CLI. | We need to support initializing wandb_args outside the CLI and passing them into simple_evaluate. Where does the evaluation API receive and configure these arguments? | How do wandb_args flow from CLI parsing through evaluation setup, and how can callers initialize them when using simple_evaluate directly? | [
"lm_eval/__main__.py",
"lm_eval/logging_utils.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 17,
"end": 17,
"symbol": "<module>"
},
{
"file": "lm_eval/__main__.py",
"start": 207,
"end": 371,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/logging_utils.py",
"start": 16,
"end": 16,
"symbol": "<module>"
},
{
... | [
"lm_eval/__init__.py",
"lm_eval/evaluator.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-01T16:09:09Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1491 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1478"
] | true | false |
EleutherAI__lm-evaluation-harness-1508 | EleutherAI/lm-evaluation-harness | ae79b1217aad7738b91e88a4017c86a5d5e45aa7 | python | real_pr | 44 | Vllm update DP+TP
Updated it to use `ray.remote()` so that DP+TP works on the recent versions of vLLM. Unpinned the version as well. | where does the vllm backend handle combined data and tensor parallelism? | vllm newer releases + dp and tp together failing? find the backend config/init path, maybe version constraint too | Running vLLM with both data parallelism and tensor parallelism fails on a recent release. Where is that combination configured, and what compatibility assumptions are involved? | Trace how the evaluation harness configures vLLM data parallelism alongside tensor parallelism. Check where version compatibility for this setup is determined. | We need combined data and tensor parallelism to work with current vLLM releases. Where does the harness wire up this backend configuration and manage its supported versions? | How does the evaluation harness connect to vLLM and configure distributed execution? Trace how data parallelism and tensor parallelism interact end to end. | [
"lm_eval/models/huggingface.py",
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 887,
"end": 893,
"symbol": "HFLM._lookup_one_token_cont"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 1,
"end": 11,
"symbol": "<module>"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 19,
... | [
"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-03-03T12:35:22Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1508 | [] | true | false |
EleutherAI__lm-evaluation-harness-1517 | EleutherAI/lm-evaluation-harness | 48476c4cf473c2651be6672da58971d59b6a1d2f | python | real_issue_pr | 6 | TypeError: str expected, not bool when setting HF_DATASETS_TRUST_REMOTE_CODE environment variable
#### Description of the issue:
When executing the `lm_eval` command with specific model arguments, a `TypeError` is encountered. This issue arises due to the assignment of a boolean value to the `HF_DATASETS_TRUST_REMOTE... | where is HF_DATASETS_TRUST_REMOTE_CODE assigned a bool instead of a string? | lm_eval blows up on env assignment — HF_DATASETS_TRUST_REMOTE_CODE gets bool, os.environ wants str | Running `lm_eval` raises `TypeError: str expected, not bool` while setting `HF_DATASETS_TRUST_REMOTE_CODE`. Where does `trust_remote_code` flow from CLI args into the environment? | Trace the `trust_remote_code` CLI option through `lm_eval` startup. Find where it sets `HF_DATASETS_TRUST_REMOTE_CODE` and how the value is converted. | I need `HF_DATASETS_TRUST_REMOTE_CODE` to receive a string when `lm_eval` handles `trust_remote_code`, while keeping the model args in sync. Where is that startup wiring implemented? | How does `lm_eval` propagate the `trust_remote_code` CLI setting into model arguments and `HF_DATASETS_TRUST_REMOTE_CODE`? | [
"lm_eval/__main__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 53,
"end": 210,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 213,
"end": 387,
"symbol": "cli_evaluate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/evaluator.py",
"lm_eval/logging_utils.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-04T15:30:13Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1517 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1515"
] | true | false |
EleutherAI__lm-evaluation-harness-1520 | EleutherAI/lm-evaluation-harness | 45823914a3e445076a1ba12c9b1501c98e3dd20d | python | real_issue_pr | 12 | request pad not work as intended and potential solution
<github-link>
original:
```python
padding_requests[task.OUTPUT_TYPE] += numpad
```
change to
```python
padding_requests[reqtype] += numpad
``` | where should numpad update padding_requests by reqtype instead of task.OUTPUT_TYPE? | padding requests getting the wrong key maybe — numpad currently bumps task.OUTPUT_TYPE, should use reqtype instead | Padding requests don't work as intended when numpad is added under task.OUTPUT_TYPE. Where is padding_requests keyed and updated, and should that use reqtype instead? | Trace how numpad updates padding_requests. Check whether the key should be reqtype rather than task.OUTPUT_TYPE. | I want padding_requests to be updated using the request type when applying numpad, rather than task.OUTPUT_TYPE. Where is this behavior wired in? | How does padding_requests get populated and consumed, and how do reqtype and task.OUTPUT_TYPE determine which padding count is used? | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 37,
"end": 272,
"symbol": "simple_evaluate"
},
{
"file": "lm_eval/evaluator.py",
"start": 278,
"end": 556,
"symbol": "evaluate"
}
] | [
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/caching/cache.py",
"lm_eval/evaluator_utils.py",
"lm_eval/logging_utils.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-04T16:26:09Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1520 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/951"
] | true | false |
EleutherAI__lm-evaluation-harness-1532 | EleutherAI/lm-evaluation-harness | faee1adf6859481379996fb70ed1ed310a0ecf51 | python | real_issue_pr | 14 | Iinconsistent API and docs for loglikelihood_rolling
Seems like the API for `loglikelihood_rolling` is inconsistent. The abc expects a sequence of (`loglikelihood`, `is_greedy`) tuples, but the implementations seem to return only a sequence of `loglikelihood` scalars.
The documentation at <github-link> is also incons... | where is loglikelihood_rolling supposed to return scalars or (loglikelihood, is_greedy) tuples? | loglikelihood_rolling api mismatch — abc says (loglikelihood, is_greedy), impls look like plain ll scalars, docs say (ll,) | The loglikelihood_rolling ABC says results are (loglikelihood, is_greedy) tuples, but implementations appear to return only loglikelihood scalars. The docs instead say (ll,); where are the return types defined and used? | Trace loglikelihood_rolling from its abstract API through implementations and documentation. Identify the intended return shape: (loglikelihood, is_greedy), scalar loglikelihoods, or (ll,). | We need to make the loglikelihood_rolling API and its documentation agree on the return value. Determine whether callers and implementations expect (loglikelihood, is_greedy), scalar loglikelihoods, or the documented (ll,) tuple, and where that contract is wired in. | How does loglikelihood_rolling work end-to-end, from its abstract return type through model implementations to callers? How is the result represented: (loglikelihood, is_greedy), a scalar, or (ll,)? | [
"lm_eval/api/model.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 56,
"end": 96,
"symbol": "LM.loglikelihood_rolling"
}
] | [
"lm_eval/__init__.py",
"lm_eval/utils.py"
] | 2024-03-06T15:09:37Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1532 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1531"
] | true | false |
EleutherAI__lm-evaluation-harness-1549 | EleutherAI/lm-evaluation-harness | 9e6e240229429d2214bc281bed7a4e288f5169a1 | python | real_pr | 20 | Add compatibility for vLLM's new Logprob object
vLLM changed the return type of logprobs from float to a Logprob object storing the float value + extra data (https://github.com/vllm-project/vllm/pull/3065). This PR fixes the attribute error using the following logic:
If we are dealing with vllm's Logprob object, retur... | where does vllm logprob handling break when values are Logprob objects instead of floats? | vllm bumped logprobs from floats to Logprob objects, old cfg now hits attr err — where's scoring compatibility handled? | With a newer vLLM version, logprob handling crashes because the returned value is a Logprob object, not a float. Where does the harness consume these values? | Trace how vLLM logprobs flow into scoring and identify where compatibility with both older float values and newer Logprob objects is handled. | We need the harness to work across vLLM versions that return either float logprobs or Logprob objects. Find where generation results are consumed and where version-dependent behavior belongs. | How do logprobs returned by vLLM flow through the harness into evaluation scoring? Which parts depend on the shape of the returned value? | [
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 394,
"end": 435,
"symbol": "VLLM._parse_logprobs"
}
] | [
"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-03-09T18:15:53Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1549 | [] | true | false |
EleutherAI__lm-evaluation-harness-1551 | EleutherAI/lm-evaluation-harness | 8051d954e68ba3156beda9af72f2192772a2e7ab | yaml | real_pr | 12 | Fix incorrect `max_gen_toks` generation kwarg default in code2_text.
Taking this as reference [PR](https://github.com/EleutherAI/lm-evaluation-harness/pull/1546) and to resolve this [issue](https://github.com/EleutherAI/lm-evaluation-harness/issues/1513), raising a PR.
@haileyschoelkopf | where is the code2_text max_gen_toks default defined? | code2_text gen length seems off — where's max_gen_toks coming from, and what's the expected default? | code2_text is generating with an unexpected token limit when no generation setting is supplied. Where does its default come from? | Find the code2_text task configuration and trace how its generation token limit is selected. Identify where the default is established. | We need code2_text to use the correct generation token limit when no override is provided. Where is that default configured, and how does the task's generation setup work? | How does code2_text determine its generation token limit end to end? What role does the task default play when no override is provided? | [
"lm_eval/tasks/code_x_glue/code-text/go.yaml",
"lm_eval/tasks/code_x_glue/code-text/java.yaml",
"lm_eval/tasks/code_x_glue/code-text/javascript.yaml",
"lm_eval/tasks/code_x_glue/code-text/php.yaml",
"lm_eval/tasks/code_x_glue/code-text/python.yaml",
"lm_eval/tasks/code_x_glue/code-text/ruby.yaml"
] | [
{
"file": "lm_eval/tasks/code_x_glue/code-text/go.yaml",
"start": 9,
"end": 13,
"symbol": "generation_kwargs"
},
{
"file": "lm_eval/tasks/code_x_glue/code-text/java.yaml",
"start": 9,
"end": 13,
"symbol": "generation_kwargs"
},
{
"file": "lm_eval/tasks/code_x_glue/code-te... | [] | 2024-03-09T18:17:05Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1551 | [] | true | false |
EleutherAI__lm-evaluation-harness-1553 | EleutherAI/lm-evaluation-harness | f518228f25727cdfa52055ceb823434e549af6c5 | python | real_pr | 8 | Support jinja templating for task descriptions
This PR allows for the use of jinja template string in task descriptions.
Implementing a task for the following dataset prompted the addition of this feature: [FreedomIntelligence/ACVA-Arabic-Cultural-Value-Alignment](https://huggingface.co/datasets/FreedomIntelligence/A... | can task descriptions use jinja to include values from each dataset example? | task cfg needs per-question domain from the id column in description — can jinja vars work there? | The description stays identical across examples, but I need it to reflect each record's domain from its id. Where is task description rendering handled? | Search for how task descriptions are rendered from configuration. Determine whether they can access fields from the current dataset example, including values derived from an id. | I need task descriptions to include information computed from each dataset record, such as a domain encoded in its id. Find where description formatting is configured and how per-example values are made available. | How does a task description flow from task configuration into evaluation requests? How are dataset example fields exposed during that process? | [
"lm_eval/api/task.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 931,
"end": 965,
"symbol": "ConfigurableTask.fewshot_context"
}
] | [
"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/caching/cache.py",
"lm_eval/filters/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-03-10T20:07:27Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1553 | [] | true | false |
EleutherAI__lm-evaluation-harness-1566 | EleutherAI/lm-evaluation-harness | dc90fecc8ba31b682d30e096980f678c18ddc435 | python | real_pr | 32 | Proposed approach for testing CLI arg parsing
See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518
Here's an approach to start testing CLI argument parsing:
1. Separate out setting up the argument parser in `<symbol>` into a separate method, `setup_parser` that gets called in `<symbol... | where are lm-evaluation-harness CLI arguments parsed and validated? | need to check cli arg parsing + type errors, where's the entrypoint and parser setup actually live? | Some invalid CLI argument values aren't giving a clear type error. Where are command-line options parsed and checked? | Find the production code that defines and invokes the evaluation CLI argument parser. Trace how supplied arguments are converted and how invalid types are handled. | We need reliable coverage for command-line argument parsing, including rejection of values with the wrong type. Where does the CLI define its options and handle their inputs? | How does command-line input flow through the evaluation CLI, from parsing options to handling their values and reporting type errors? | [
"lm_eval/__main__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 56,
"end": 212,
"symbol": "parse_eval_args"
},
{
"file": "lm_eval/__main__.py",
"start": 215,
"end": 389,
"symbol": "cli_evaluate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/evaluator.py",
"lm_eval/logging_utils.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-17T21:55:15Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1566 | [] | true | false |
EleutherAI__lm-evaluation-harness-1592 | EleutherAI/lm-evaluation-harness | b7923a84031e683bb0565c639a8071f9d410edd0 | python | real_pr | 3 | Add start date in results.json
Now in leaderboards, results are saved with timestamp in the file name, and the results are sorted from the oldest. However, if we want to run the benchmark with `--log_samples` then the name is `results.json` without timestamp. Adding this information into JSON will solve the issue. | where does --log_samples write results.json, and how can its run date be determined? | leaderboard can't tell when results.json was run w/ --log_samples, filenames have no timestamp — where's result metadata handled? | Leaderboard results without timestamps are hard to sort chronologically when I run with --log_samples; the output is just results.json. Where is the run's date tracked or exposed? | Trace how benchmark runs using --log_samples produce results.json and what run-time metadata is available. Identify the production code responsible for making results usable in chronological leaderboard sorting. | We need leaderboard consumers to know when a benchmark run happened even when --log_samples writes results.json without a timestamped filename. Find where result metadata is assembled and how downstream leaderboard sorting reads it. | How does benchmark run information flow into results.json when --log_samples is enabled, and how do leaderboard tools determine the chronological order of result files? | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 1,
"end": 9,
"symbol": "<module>"
},
{
"file": "lm_eval/evaluator.py",
"start": 32,
"end": 268,
"symbol": "simple_evaluate"
}
] | [
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/caching/cache.py",
"lm_eval/evaluator_utils.py",
"lm_eval/logging_utils.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-17T21:56:48Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1592 | [] | true | false |
EleutherAI__lm-evaluation-harness-1573 | EleutherAI/lm-evaluation-harness | 6fae67a60ebf3f410b926577a3aabbce2698f679 | python | real_issue_pr | 53 | Create new release and ship to PyPI
There have been a number of changes since the January release, would it be possible to [cut a release](https://github.com/EleutherAI/lm-evaluation-harness/releases) , `0.4.2`, and ship to PyPI? Right now we're using this dependency in our own stack and it would be great to unpin it ... | why does get_task_list return an empty dict for OmegaConf ListConfig instead of raising a type error? | get_task_list got a ListConfig not real List[str] and quietly returns empty dict — where's that type handling? | Passing an OmegaConf `ListConfig` to `get_task_list` gives me an empty dict, not an error. Where is the input type checked and the empty result produced? | Trace `get_task_list` input validation and its empty-dict return path. Find where an incorrect type such as OmegaConf `ListConfig` could be rejected with a clear error. | I want `get_task_list` to raise a helpful error when its argument isn't a `List[str]` instead of silently returning an empty dict. Where does task-list type handling live? | How does `get_task_list` turn its input into a task dictionary, including how it handles unexpected types like OmegaConf `ListConfig`? | [
"lm_eval/__main__.py",
"lm_eval/api/task.py",
"lm_eval/evaluator.py",
"lm_eval/tasks/__init__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 16,
"end": 16,
"symbol": "<module>"
},
{
"file": "lm_eval/__main__.py",
"start": 240,
"end": 415,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/api/task.py",
"start": 365,
"end": 451,
"symbol": "Task.build_all_request... | [
"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/caching/cache.py",
"lm_eval/evaluator_utils.py",
"lm_eval/filters/__init__.py",
"lm_eval/logging_utils.py"... | 2024-03-18T04:45:27Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1573 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1560",
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1562"
] | false | false |
EleutherAI__lm-evaluation-harness-1593 | EleutherAI/lm-evaluation-harness | 5627e81979994ac7bb4ce9a76b6de8ebb5a51679 | python | real_pr | 4 | Fix eval_logger import for <file>
After the verbosity rework changes (#958), fix the import of eval_logger for <file>. | where does evaluation logging get imported after the verbosity changes? | verbosity rework broke an eval logging import maybe — find the import path and config wiring | Evaluation logging fails to import after the verbosity changes. Where is that dependency connected to the logging configuration? | Trace imports for evaluation logging and identify how verbosity configuration affects them. Find the relevant production code. | Evaluation logging should keep working with the updated verbosity behavior. Where are its imports and logging configuration connected? | How does evaluation logging connect to the verbosity settings and import flow across the harness? | [
"lm_eval/tasks/mmlu/_generate_configs.py"
] | [
{
"file": "lm_eval/tasks/mmlu/_generate_configs.py",
"start": 1,
"end": 10,
"symbol": "<module>"
}
] | [] | 2024-03-18T11:51:18Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1593 | [] | true | false |
EleutherAI__lm-evaluation-harness-1588 | EleutherAI/lm-evaluation-harness | 4600d6bf73ba2cf7037ae7feada03315839ef185 | python | real_pr | 41 | use BOS token in loglikelihood
PR related to issue: https://github.com/EleutherAI/lm-evaluation-harness/issues/1586 | does loglikelihood evaluation account for the BOS token? | loglikelihood scores seem off at sequence start — are we handling BOS consistently? | Loglikelihood results differ when a prompt is evaluated at the start of a sequence. Could BOS handling be involved, and where does that behavior come from? | Trace how loglikelihood requests become model inputs. Check where BOS-token handling is defined and whether it varies by model. | We need loglikelihood evaluation to behave correctly for models that expect a BOS token. Where is input construction handled, and what controls tokenization for this path? | How does loglikelihood evaluation turn context and continuation text into model inputs? Where does BOS-token handling fit into that flow? | [
"lm_eval/api/model.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/neuron_optimum.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 57,
"end": 95,
"symbol": "LM.loglikelihood_rolling"
},
{
"file": "lm_eval/api/model.py",
"start": 275,
"end": 339,
"symbol": "TemplateLM"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 66,
"end": 1227,
"symbol... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/registry.py",
"lm_eval/models/utils.py",
"lm_eval/utils.py"
] | 2024-03-18T15:40:50Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1588 | [] | true | false |
EleutherAI__lm-evaluation-harness-1608 | EleutherAI/lm-evaluation-harness | 0d920e82bdf134424fa16adb4ce0af22ce83e49a | python | real_issue_pr | 4 | Bug: `until` as a single `str`
In `<file>` <github-link>
```
if "until" in kwargs.keys():
until = kwargs.pop("until")
if isinstance(until, str):
until = [kwargs]
```
Is it supposed to be `until = [until]`? Otherwise, `until` has type `List[Dict]` as opposed to `List[str]`. | where is a string `until` wrapped into a list of stop strings? | single `until` string gets turned into `[kwargs]`? should be `[until]` — find the arg normalization impl | When `until` is a string, the code wraps `kwargs` instead, so it becomes `List[Dict]` rather than `List[str]`. Where is this argument normalized? | Trace how `until` is handled when passed as a string. Find the normalization that should wrap the value as a list of strings, not wrap `kwargs`. | Support `until` passed as either a string or a list of strings, with the string normalized to a one-item list. Where does this argument handling live? | How does the harness normalize the `until` argument from caller input through to the stop strings used during generation? | [
"lm_eval/models/huggingface.py",
"lm_eval/models/neuron_optimum.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 1101,
"end": 1238,
"symbol": "HFLM.generate_until"
},
{
"file": "lm_eval/models/neuron_optimum.py",
"start": 626,
"end": 736,
"symbol": "NEURON_HF.generate_until"
}
] | [
"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-03-19T21:52:15Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1608 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1606"
] | true | false |
EleutherAI__lm-evaluation-harness-1611 | EleutherAI/lm-evaluation-harness | d4b8fc137f8493ccad025391d85789048b69f4f9 | python | real_issue_pr | 27 | Vllm Broken? TypeError: Can't instantiate abstract class VLLM with abstract method prefix_token_id
2024-03-19:23:25:01,218 INFO [__main__.py:251] Verbosity set to INFO
2024-03-19:23:25:06,576 INFO [__main__.py:335] Selected Tasks: ['gsm8k']
2024-03-19:23:25:06,577 INFO [__main__.py:336] Loading selected ta... | where is vllm's missing abstract prefix_token_id implemented in lm-eval? | lm_eval VLLM init blows up — TypeError: Can't instantiate abstract class VLLM with abstract method prefix_token_id. find the impl/abc wiring | Running the gsm8k task fails when lm_eval tries to instantiate VLLM: `TypeError: Can't instantiate abstract class VLLM with abstract method prefix_token_id`. Where is that abstract method declared and implemented for this model? | Trace the lm_eval VLLM model class and its abstract base class. Find why `prefix_token_id` is still abstract at instantiation. | We need the VLLM backend to instantiate successfully with the required `prefix_token_id` contract. Identify where model classes satisfy abstract API methods and how VLLM is wired into the registry. | How does lm_eval define the model API's `prefix_token_id` contract and connect the VLLM implementation through model registration and instantiation? | [
"lm_eval/api/model.py",
"lm_eval/models/huggingface.py",
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 275,
"end": 340,
"symbol": "TemplateLM"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 78,
"end": 347,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 31,
"end": 472,
"symbo... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/registry.py",
"lm_eval/models/utils.py",
"lm_eval/utils.py"
] | 2024-03-20T13:17:07Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1611 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1610"
] | true | false |
EleutherAI__lm-evaluation-harness-1619 | EleutherAI/lm-evaluation-harness | 34c9b7e40825ec998e44c5f45041953249c06a7b | python | real_issue_pr | 58 | [Bug] `add_env_info` causes error when not running from base directory
This PR added this functionality `add_env_info`: https://github.com/EleutherAI/lm-evaluation-harness/commit/f78e2da45f034a23b1b13cde3235105b0f55d830
In my use case, I was running the eval from within a subfolder, `lm-evaluation-harness/eval` in a ... | where does add_env_info read git metadata when eval runs from a subfolder? | add_env_info blows up from eval subfolder, FileNotFoundError reading .git commit ref; base dir works, where's that git lookup handled? | Running evaluation from the eval subfolder raises `FileNotFoundError` while `add_env_info` reads a `.git` ref; it works from the base directory. Where is the parent-repository commit lookup implemented, and why does it fail when the ref is missing? | Trace `add_env_info` to the `get_commit_from_path` call that reads the parent repository's `.git` ref. Find the production code handling this lookup and its missing-ref behavior. | We need `add_env_info` to handle evaluation launched from a subfolder when the parent repository's `.git` commit ref cannot be read, rather than crashing with `FileNotFoundError`. Where is environment metadata collection and git commit lookup wired together? | How does `add_env_info` collect environment metadata and obtain the repository commit hash? Trace how it resolves the parent directory's `.git` ref end-to-end. | [
"lm_eval/__main__.py",
"lm_eval/evaluator.py",
"lm_eval/logging_utils.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 240,
"end": 413,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/evaluator.py",
"start": 33,
"end": 273,
"symbol": "simple_evaluate"
},
{
"file": "lm_eval/logging_utils.py",
"start": 400,
"end": 418,
"symbol": "get_comm... | [
"lm_eval/__init__.py",
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/caching/cache.py",
"lm_eval/evaluator_utils.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-03-22T13:42:04Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1619 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1603"
] | true | false |
EleutherAI__lm-evaluation-harness-1635 | EleutherAI/lm-evaluation-harness | a97fde23e89746c65b9c57c279be19a2c4d36d8b | python | real_pr | 3 | peft Version Assertion
At first, I tried to use evaluation harness with lora adapter.
But I found out that they continuously say "load_in_4bit requires peft
>= 0.4.0". So I checked the code.
if peft:
if model_kwargs.get("load_in_4bit", None):
assert PEFT_VERSION >= "0.4.0", "load_in_4bi... | why does peft 0.10 fail the load_in_4bit version check? | lora eval w/ load_in_4bit, peft 0.10 gets rejected as too old — where's version validation? | Using a PEFT LoRA adapter with load_in_4bit raises “load_in_4bit requires peft >= 0.4.0” even on version 0.10.0. Where is that compatibility check handled? | Find the PEFT compatibility check for 4-bit model loading. Trace how the installed PEFT version is evaluated when loading a LoRA adapter. | We need 4-bit loading to accept compatible newer PEFT releases, including versions like 0.10.0. Where does adapter loading validate PEFT compatibility? | How does evaluation harness load a PEFT LoRA adapter with 4-bit quantization? Trace the version compatibility flow end to end. | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 475,
"end": 573,
"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/models/utils.py",
"lm_eval/utils.py"
] | 2024-03-25T22:56:35Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1635 | [] | true | false |
EleutherAI__lm-evaluation-harness-1604 | EleutherAI/lm-evaluation-harness | 8e72f267104f84f2179b6f2152163b45122c5a63 | python | real_pr | 48 | Seq2seq fix
Changes:
1. `<symbol>` and `<symbol>` handles `add_special_tokens` args as a kwargs so that if it's None it will default to whatever the tokenizer of the model has set.
2. tok_decode has `skip_special_tokens` arg defaults to True but is set to False specifically so that `eos` is properly tokenized and adde... | why are T5 seq2seq continuation tokens missing eos during evaluation? | seq2seq eval weird on T5 — eos/context boundary off? check tokenizer special-token defaults and until stopping | T5 evaluation gives mismatched seq2seq continuations, especially around EOS. Where are context and continuation tokenized and special-token settings applied? | Trace seq2seq evaluation tokenization and EOS handling, including how tokenizer special-token defaults interact with stopping criteria. Identify the relevant production code paths. | We need consistent seq2seq evaluation for models whose context and continuation have different EOS behavior. Where does the harness define tokenization, special-token defaults, and stop-sequence handling? | How does seq2seq evaluation carry context and continuation through tokenization, decoding, and EOS-based stopping? How are tokenizer special-token settings used end to end? | [
"lm_eval/api/model.py",
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/api/model.py",
"start": 8,
"end": 8,
"symbol": "<module>"
},
{
"file": "lm_eval/api/model.py",
"start": 299,
"end": 311,
"symbol": "TemplateLM._encode_pair"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 680,
"end": 697,
"symbol": "H... | [
"lm_eval/__init__.py",
"lm_eval/api/instance.py",
"lm_eval/api/registry.py",
"lm_eval/models/utils.py",
"lm_eval/utils.py"
] | 2024-03-25T23:38:47Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1604 | [] | true | false |
EleutherAI__lm-evaluation-harness-1641 | EleutherAI/lm-evaluation-harness | e9d429e105fa95dd4a1b5606b306289d207fcf62 | python | real_issue_pr | 67 | Unnecessary installation: Nemo
The most recent commit on branch main requires installing nemo even when I'm going to use vllm, I think It's unnecessary. | why does using vllm require installing nemo on main? | main now pulls in nemo even when i'm using vllm — seems like an unnecessary install req, where's it wired in | Installing the latest main branch requires NeMo even though I'm using vLLM. Where is that dependency being pulled in? | Trace why the main branch requires NeMo when the user intends to use vLLM. Find the dependency and initialization wiring. | NeMo should not need to be installed for users running vLLM. Find where backend dependencies are declared or loaded so NeMo can remain optional. | How does the harness decide which backend dependencies to install and initialize? Trace how NeMo and vLLM are wired into that flow. | [
"lm_eval/models/nemo_lm.py"
] | [
{
"file": "lm_eval/models/nemo_lm.py",
"start": 37,
"end": 53,
"symbol": "<module>"
},
{
"file": "lm_eval/models/nemo_lm.py",
"start": 56,
"end": 76,
"symbol": "_patch_pretrained_cfg"
},
{
"file": "lm_eval/models/nemo_lm.py",
"start": 83,
"end": 138,
"symbol":... | [
"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-03-27T17:28:53Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1641 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1638"
] | true | false |
EleutherAI__lm-evaluation-harness-1647 | EleutherAI/lm-evaluation-harness | 0dffdbb462fe495e29db1f29241a038e5907fca4 | yaml | real_pr | 23 | Fix SuperGlue's ReCoRD task following regression in v0.4 refactoring
In prior library versions (v0.3), ReCoRD's scores were comparable to official results on various models, but since v0.4 there's a regression to low scores. For example, when testing Llama2 7B (base model), I previously got 90.42 EM, while in the late... | why did SuperGLUE ReCoRD EM drop from 90 to near-random after v0.4? | record scores tanked in v0.4 — llama2 7b went from ~90 EM to 26, where’s the task eval config? | SuperGLUE ReCoRD is scoring 26.6 EM on Llama2 7B, versus about 90 before v0.4. Where does the task’s evaluation behavior come from? | Trace the SuperGLUE ReCoRD evaluation path and identify where its task configuration and scoring behavior are defined. Look for anything that could explain a sharp EM regression since v0.4. | We need ReCoRD results to remain comparable with the official benchmark across library versions. Find where this task’s input and answer handling is configured, and how its EM score is computed. | How does SuperGLUE ReCoRD work end to end in this harness, from task configuration through model predictions to EM scoring? | [
"lm_eval/tasks/super_glue/record/default.yaml",
"lm_eval/tasks/super_glue/record/util.py"
] | [
{
"file": "lm_eval/tasks/super_glue/record/default.yaml",
"start": 5,
"end": 16,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/super_glue/record/default.yaml",
"start": 19,
"end": 20,
"symbol": "metadata"
},
{
"file": "lm_eval/tasks/super_glue/record/util.py",
"sta... | [
"lm_eval/api/metrics.py"
] | 2024-03-28T12:35:20Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1647 | [] | true | false |
EleutherAI__lm-evaluation-harness-1661 | EleutherAI/lm-evaluation-harness | 9516087b81a61d0e220b22cc1b75be76de23bc10 | yaml | real_issue_pr | 4 | Wrong (no) instruction for QQP evaluation in GLUE
The QQP template does not mention any instruction. This is incorrect I think.
<github-link>
Currently, the evaluation prompt would read something like the following (there is also a newline at the beginning, which I don't know should be there or not):
```
Sentence ... | where is the GLUE QQP prompt template missing its paraphrase instruction? | QQP cfg in GLUE has no instruction rn — need the paraphrase question before Sentence 1/2, where's prompt built | The GLUE QQP evaluation prompt starts with Sentence 1 and Sentence 2, but never asks whether they are paraphrases. Where is that prompt assembled, including the leading newline? | Find the GLUE QQP prompt configuration and trace how its evaluation template is assembled. Identify where the paraphrase instruction and sentence fields are wired in. | QQP evaluation should ask “Are the two questions paraphrases of each other?” before the Sentence 1 and Sentence 2 fields, then end with Answer:. Where does the GLUE task define and render this template? | How does the GLUE QQP evaluation prompt flow from its task configuration to the rendered Sentence 1, Sentence 2, and Answer fields? | [
"lm_eval/tasks/glue/qqp/default.yaml"
] | [
{
"file": "lm_eval/tasks/glue/qqp/default.yaml",
"start": 8,
"end": 8,
"symbol": "doc_to_text"
},
{
"file": "lm_eval/tasks/glue/qqp/default.yaml",
"start": 14,
"end": 15,
"symbol": "metadata"
}
] | [] | 2024-04-04T22:02:22Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1661 | [
"https://github.com/EleutherAI/lm-evaluation-harness/issues/1648"
] | true | false |
EleutherAI__lm-evaluation-harness-1670 | EleutherAI/lm-evaluation-harness | 27924d77953491f66a038a09892807065e469358 | python | real_pr | 3 | correction bug EleutherAI#1664
if you have for example an url in model_args : --model_args model=sn/mistral-7b-instruct-v0.2-LG,base_url=http://10.2.42.198:1234/v1
":" can't be in file name | why does --model_args break when base_url contains http:// colons? | weird --model_args parsing issue — base_url=http://host:1234/v1 gets treated like a filename? where does that happen | Running with --model_args model=...,base_url=http://10.2.42.198:1234/v1 fails around the colon. Where is this argument parsed, and why would a URL be treated as a filename? | Trace how --model_args values are parsed and passed to the model, focusing on URLs with colons in base_url. Find where they may be mistaken for filenames. | We need model arguments to accept a base_url such as http://host:1234/v1 without confusing its colons with filename syntax. Where is this CLI input parsed and routed? | How does --model_args flow from the CLI into model configuration? In particular, how are URL values like base_url=http://host:1234/v1 interpreted? | [
"lm_eval/__main__.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 240,
"end": 412,
"symbol": "cli_evaluate"
}
] | [
"lm_eval/__init__.py",
"lm_eval/evaluator.py",
"lm_eval/logging_utils.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-04-07T14:12:33Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1670 | [] | false | false |
EleutherAI__lm-evaluation-harness-1712 | EleutherAI/lm-evaluation-harness | 7852985b2b5352df147067e01a121c52297f8821 | python | real_pr | 35 | Add delta weights model loading
This PR adds support for loading models provided as delta weights for the base model from the Hugging Face transformers library.
- No additional packages required
- `delta` parameter in `model_args` following `peft` implementation
Tested with:
```
python3 -m lm_eval --model hf --model_... | how can hf model loading use a delta checkpoint with a separate base model? | hf backend needs base + delta repo from transformers, can model_args handle that without extra deps? | A Hugging Face delta checkpoint isn't a standalone model, but evaluation needs to run it against its base. Where does model loading resolve the base and delta weights? | Find the Hugging Face model-loading flow and determine how it accepts a base model plus a delta checkpoint. Check how model arguments are parsed and passed through. | We need evaluation to support Hugging Face models distributed as delta weights, using a separately specified base model and no new dependency. Where should that configuration enter the loading flow? | How does the Hugging Face backend turn model arguments into a loaded model? Trace how pretrained model identifiers and optional weight sources flow through loading. | [
"lm_eval/models/huggingface.py"
] | [
{
"file": "lm_eval/models/huggingface.py",
"start": 78,
"end": 348,
"symbol": "HFLM.__init__"
},
{
"file": "lm_eval/models/huggingface.py",
"start": 475,
"end": 574,
"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/models/utils.py",
"lm_eval/utils.py"
] | 2024-04-16T21:14:17Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1712 | [] | true | false |
EleutherAI__lm-evaluation-harness-1699 | EleutherAI/lm-evaluation-harness | 8b326be7b8307c73ef4dd4486291b7473d8a6e92 | python | real_pr | 4 | Improvements to run NVIDIA NeMo models on LM Evaluation Harness
This PR fixes bugs reported by NVIDIA NeMo users. | where does the harness load and evaluate NVIDIA NeMo models? | nemo models failing in lm eval — where's the model loading / eval path? | NVIDIA NeMo users are hitting errors when running models through the harness. Where does model setup and evaluation happen? | Trace the code paths for loading and evaluating NVIDIA NeMo models. Identify where NeMo-specific runtime issues could originate. | We need reliable support for running NVIDIA NeMo models in the evaluation harness. Where is model compatibility handled, and what parts of evaluation depend on it? | How does the harness run NVIDIA NeMo models end to end, from model selection through evaluation? | [
"lm_eval/models/nemo_lm.py"
] | [
{
"file": "lm_eval/models/nemo_lm.py",
"start": 485,
"end": 490,
"symbol": "NeMoLM.get_until"
}
] | [
"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-04-18T12:35:50Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1699 | [] | true | false |
EleutherAI__lm-evaluation-harness-1620 | EleutherAI/lm-evaluation-harness | dc5eba86db276051a9b819a3ce214892cc667b86 | python | real_pr | 82 | Adding retries and rate limit to toxicity tasks
[WIP]
As requested by @oskarvanderwal, adding retries to and rate limit to the toxicity prompts tasks. | where are toxicity evaluation requests handled, and how are retries or rate limits configured? | toxicity prompt tasks hitting rate limits? need retry behavior too — where's the request flow and cfg? | Toxicity evaluations are failing when the service rate-limits requests, and transient errors seem to end the run. Where is this request behavior controlled? | Trace how toxicity evaluation tasks send prompts to their service. Identify where request retries and rate limiting are handled or configured. | Toxicity prompt evaluations need to tolerate transient failures and service throttling. Find the task request flow and determine where retry and rate-limit behavior belongs. | How do toxicity evaluation tasks send prompts and process responses end to end? Where do request throttling and retry policies fit into that flow? | [
"lm_eval/tasks/realtoxicityprompts/metric.py",
"lm_eval/tasks/realtoxicityprompts/realtoxicityprompts.yaml"
] | [
{
"file": "lm_eval/tasks/realtoxicityprompts/metric.py",
"start": 4,
"end": 4,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/realtoxicityprompts/metric.py",
"start": 5,
"end": 5,
"symbol": "<module>"
},
{
"file": "lm_eval/tasks/realtoxicityprompts/metric.py",
"star... | [
"lm_eval/utils.py"
] | 2024-04-18T15:51:06Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1620 | [] | true | false |
EleutherAI__lm-evaluation-harness-1749 | EleutherAI/lm-evaluation-harness | 594015b608dd27d4948b7faeaa49bfc88db30aeb | python | real_pr | 11 | Fix Parameter Propagation for Tasks that have `include`
Fix propagating parameters that were set in a group yaml if a task has `include` in it.
Before this fix, if the parameter that is intended to be overridden is already in the included template then it will not be overridden. | why doesn't a group yaml parameter override a value already defined by an included task template? | group yaml sets a param but task uses include and keeps the template value instead — where's that config precedence handled? | A task with an include ignores a parameter set in its group YAML when the included template already defines that parameter. Where does task configuration precedence get determined? | Trace how group YAML parameters reach tasks that use include. Identify where values from the group and included template are combined. | I need group-level task parameters to take effect even when an included template defines the same setting. Where is this configuration behavior wired in? | How do group YAML settings flow into tasks that include a template? How are conflicts between group-level and template-defined parameters resolved? | [
"lm_eval/api/task.py",
"lm_eval/tasks/__init__.py"
] | [
{
"file": "lm_eval/api/task.py",
"start": 99,
"end": 123,
"symbol": "TaskConfig.__post_init__"
},
{
"file": "lm_eval/tasks/__init__.py",
"start": 135,
"end": 153,
"symbol": "TaskManager.load_task"
}
] | [
"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/caching/cache.py",
"lm_eval/filters/__init__.py",
"lm_eval/prompts/__init__.py",
"lm_eval/utils.py"
] | 2024-04-25T17:44:44Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1749 | [] | true | false |
EleutherAI__lm-evaluation-harness-1750 | EleutherAI/lm-evaluation-harness | 9b49556a7153fd591b4bb40846fe62f30fa1db09 | python | real_pr | 66 | Add filter registry decorator
## Why?
I have a project at work in which I want to add JSON parser because my prompt forces a model to return JSON.
I couldn't find a way to register a custom filter, I also asked on Discord and @haileyschoelkopf said PR is welcome
## What's new
Copied from README
### Adding a custo... | how can i plug a custom json-output filter into evaluation? | need custom filter for json-only model replies — where's filter discovery/config wired up? | My prompts force JSON, but I can't make evaluation use a custom parser as a filter. Where does filter selection happen? | Trace how evaluation discovers and selects filters. Find the extension point for user-defined filters without assuming a particular implementation. | I need evaluations to support custom filters, including parsing model responses that must be JSON. Where is filter configuration and extensibility handled? | How does filter discovery and selection work end to end in the evaluation harness? How can users provide filters for specialized output formats? | [
"lm_eval/api/registry.py",
"lm_eval/filters/__init__.py",
"lm_eval/filters/decontamination.py",
"lm_eval/filters/extraction.py",
"lm_eval/filters/selection.py",
"lm_eval/filters/transformation.py"
] | [
{
"file": "lm_eval/api/registry.py",
"start": 80,
"end": 80,
"symbol": "<module>"
},
{
"file": "lm_eval/api/registry.py",
"start": 166,
"end": 172,
"symbol": "is_higher_better"
},
{
"file": "lm_eval/filters/__init__.py",
"start": 2,
"end": 2,
"symbol": "<modul... | [
"lm_eval/api/filter.py",
"lm_eval/api/model.py"
] | 2024-04-26T15:20:55Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1750 | [] | true | false |
EleutherAI__lm-evaluation-harness-1760 | EleutherAI/lm-evaluation-harness | b898bdaa09507c45cb3a6ff87808ff36fb89353d | python | real_pr | 16 | Fix m_arc choices
This is a 4-choice task, option_e is null for all but 3 samples. And it is never used in gold answer | where does m_arc define its four answer choices and gold label? | m_arc looks like 4-choice, but there's a mostly-null fifth option field — where's task cfg handling choices and answer labels? | m_arc appears to expose a fifth choice, but it is null in nearly every example and never matches the gold answer. Where is the task's choice set and answer mapping defined? | Find the m_arc task configuration and trace how its answer options and gold labels are derived. Check whether the task expects four choices or includes a fifth. | I need to understand how m_arc presents its answer options and determines the gold choice; most examples seem to have only four usable options. Where does that task behavior get wired up? | How does m_arc load its choice data and map the gold answer to an option? Trace the task flow from dataset fields to evaluation. | [
"lm_eval/tasks/okapi/arc_multilingual/utils.py"
] | [
{
"file": "lm_eval/tasks/okapi/arc_multilingual/utils.py",
"start": 6,
"end": 13,
"symbol": "preprocess"
},
{
"file": "lm_eval/tasks/okapi/arc_multilingual/utils.py",
"start": 17,
"end": 31,
"symbol": "_process_doc"
}
] | [] | 2024-05-01T17:24:15Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1760 | [] | true | false |
EleutherAI__lm-evaluation-harness-1756 | EleutherAI/lm-evaluation-harness | caaf9ab6b9667110a9aa5293d1b8d519b498be4a | python | real_pr | 31 | vllm lora support
adds ability to use LoRA adapters with vLLM without creating merged models. this is useful for us because we needed to eval different LoRA checkpoints while avoiding merging the weights each time.
usage example:
`lm_eval --model vllm --model_args pretrained=meta-llama/Meta-Llama-3-8B,lora_local_path=... | can vllm evaluate lora checkpoints directly without merging model weights? | need eval several lora ckpts w/ vllm, no merged model per checkpoint — where's the backend cfg handled? | Evaluating each LoRA checkpoint currently means merging its weights into a separate model, which is slow. Where does the vLLM evaluation path get configured for adapter checkpoints? | Trace how the vLLM evaluation backend accepts model arguments and starts inference. Find whether it can work with LoRA adapter checkpoints without requiring merged weights. | We need to evaluate multiple LoRA checkpoints with vLLM without merging weights before each run. Identify where model arguments and backend capabilities for adapter checkpoints are wired. | How does the vLLM evaluation flow pass model configuration through to inference? How are adapter checkpoints represented in that flow? | [
"lm_eval/models/vllm_causallms.py"
] | [
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 21,
"end": 26,
"symbol": "<module>"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 28,
"end": 28,
"symbol": "<module>"
},
{
"file": "lm_eval/models/vllm_causallms.py",
"start": 31,
"end": 487,
"... | [
"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-05-02T13:17:20Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1756 | [] | true | false |
EleutherAI__lm-evaluation-harness-1730 | EleutherAI/lm-evaluation-harness | 83fd78a2621aeb37aaa6d6aa55fdc5d815ddc719 | python | real_pr | 28 | Add option to set OpenVINO config
This PR adds an option to specify a custom config for OpenVINO models, with `--model_args ov_config=/<file>on`. This allows users to set options that may affect accuracy, or for example enable model caching to speed up model loading on GPU.
I added a test to check that the config is ... | where are custom OpenVINO model config options passed through from --model_args? | openvino model args need custom cfg for precision hint / cache dir — where does config get picked up? | OpenVINO seems to compile with its default precision even when I need a different inference setting or model cache. Where is model configuration read during loading? | Trace how OpenVINO model arguments are parsed and used during model initialization. Find where user-supplied runtime settings could affect compilation and caching. | We need users to control OpenVINO runtime settings, such as inference precision and model caching, when evaluating a model. Where does the CLI configuration flow into OpenVINO loading? | How does OpenVINO model configuration flow from evaluation arguments into runtime compilation? Which settings govern precision and model caching? | [
"lm_eval/models/optimum_lm.py"
] | [
{
"file": "lm_eval/models/optimum_lm.py",
"start": 1,
"end": 7,
"symbol": "<module>"
},
{
"file": "lm_eval/models/optimum_lm.py",
"start": 8,
"end": 69,
"symbol": "OptimumLM"
}
] | [
"lm_eval/api/registry.py",
"lm_eval/models/huggingface.py"
] | 2024-05-02T19:57:00Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1730 | [] | true | false |
EleutherAI__lm-evaluation-harness-1777 | EleutherAI/lm-evaluation-harness | 59cf408ab4a6d9f2473234ef06cb5aa5c97e9f96 | python | real_pr | 29 | eval tracker args fix
@haileyschoelkopf This branch addresses an issue reported by a user, as detailed [here](https://github.com/EleutherAI/lm-evaluation-harness/pull/1766#issuecomment-2093190929):
> Hi, facing the error:
>
> File "<file>", line <N> evaluation_tracker_args.push_results_to_hub AttributeError: 'Namespa... | where are evaluation tracker arguments registered for editable installs? | editable install after latest updates, tracker init blows up on missing hub-push cfg attr — where's arg parsing wired? | After installing from a repository clone with `pip install -e .`, evaluation fails because the tracker expects an argument the parsed options don't contain. Where is that configuration assembled? | Trace how evaluation tracker options are defined and passed into evaluation startup. Check for mismatches between argument registration and tracker expectations, especially with editable installs. | Evaluation should start reliably from an editable install, including when hub result publishing is configured. Find where command-line options and tracker configuration are connected. | How do evaluation command-line options flow into the result tracker, from argument parsing through tracker initialization? | [
"lm_eval/__main__.py",
"lm_eval/logging/evaluation_tracker.py"
] | [
{
"file": "lm_eval/__main__.py",
"start": 6,
"end": 6,
"symbol": "<module>"
},
{
"file": "lm_eval/__main__.py",
"start": 230,
"end": 397,
"symbol": "cli_evaluate"
},
{
"file": "lm_eval/logging/evaluation_tracker.py",
"start": 116,
"end": 186,
"symbol": "Evalua... | [
"lm_eval/__init__.py",
"lm_eval/evaluator.py",
"lm_eval/logging/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-05-03T19:38:58Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1777 | [] | true | false |
EleutherAI__lm-evaluation-harness-1785 | EleutherAI/lm-evaluation-harness | 18f4eb57fe8bf0b517adcfd9b7a5ec721463da98 | python | real_pr | 5 | limit fix
Fix to issue raised [here](https://github.com/EleutherAI/lm-evaluation-harness/pull/1766#discussion_r1589769311)
> @haileyschoelkopf it causes errors when limit is None... | where does evaluation handle a limit of none? | eval limit=None is blowing up somewhere — trace how task cfg handles an unset limit | Running an evaluation with `limit=None` raises an error, while a numeric limit works. Where does that value get interpreted? | Trace how the evaluation limit flows from configuration into task execution. Find where an unset limit could trigger an error. | We need evaluation runs to work when no limit is specified, as well as when a numeric cap is set. Where is limit configuration parsed and applied? | How does the evaluation limit flow from user configuration through task setup to example selection? | [
"lm_eval/evaluator.py"
] | [
{
"file": "lm_eval/evaluator.py",
"start": 308,
"end": 606,
"symbol": "evaluate"
}
] | [
"lm_eval/api/metrics.py",
"lm_eval/api/model.py",
"lm_eval/api/registry.py",
"lm_eval/caching/cache.py",
"lm_eval/evaluator_utils.py",
"lm_eval/logging/utils.py",
"lm_eval/models/__init__.py",
"lm_eval/tasks/__init__.py",
"lm_eval/utils.py"
] | 2024-05-05T20:57:37Z | https://github.com/EleutherAI/lm-evaluation-harness/pull/1785 | [] | true | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.