mbpp_agnostic
genlm.eval.domains.livecodebench_multilingual.mbpp_agnostic
Ag-MBPP-X (nuprl/mbpp-agnostic-translation) as a multilingual stdin/stdout eval set.
MBPP tasks rewritten by the Agnostics group into stdin/stdout form: an out-of-domain companion to the LCB problems, with no Codeforces overlap. Rows were reformulated from MBPP by Qwen3-32B (paper appendix), including the test I/O values, with no execution verification, so the loader pins the HF revision and validates every row; see from_rows() for the checks and drop accounting. Prompt construction and grading membership follow the official framework (tests[0] is the in-prompt example; eval_sample grades all tests, example first).
MBPPAgnosticDataset
Bases: Dataset[MultilingualLCBInstance]
Ag-MBPP-X problems for one target language, validated and deduplicated.
platform='mbpp-agnostic' and question_id='mbppx_<task_id>' keep instances
distinguishable from LCB problems.
Source code in genlm/eval/domains/livecodebench_multilingual/mbpp_agnostic.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | |
from_rows(raw_rows, language, *, strict=False)
classmethod
Validate raw rows: schema, size and character checks, an injection-marker scan,
contradictory-test detection, and dedup by task id and normalized description.
Failing rows are dropped and counted in drop_counts (strict=True raises).
Source code in genlm/eval/domains/livecodebench_multilingual/mbpp_agnostic.py
from_hf(language, *, config='sanitized', revision=PINNED_REVISION, strict=False, cache_dir=None)
classmethod
Load from HF at the PINNED revision (pass revision explicitly to move it).
Source code in genlm/eval/domains/livecodebench_multilingual/mbpp_agnostic.py
overlap_with(other)
Normalized-description collisions against another dataset (contamination check).
Returns [(our question_id, their question_id)]; expected empty against LCB.