Skip to content

Commit f246ab2

Browse files
authored
Merge pull request #269 from zkcpku/main
fix typo bug in mbppplus
2 parents 7c02b2f + 598b03e commit f246ab2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigcode_eval/tasks/mbppplus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_prompt(self, doc):
4848
# is different from HumanEval(+) which further requires a `check` func
4949
def get_reference(self, doc):
5050
"""Builds the reference solution for the doc (sample from the test dataset)."""
51-
use_mbpp_tests = os.getenv("MBBPPLUS_USE_MBPP_TESTS", "0")
51+
use_mbpp_tests = os.getenv("MBPPPLUS_USE_MBPP_TESTS", "0")
5252
if use_mbpp_tests == "1":
5353
return "\n".join(doc["test_list"])
5454
return "\n" + doc["test"]

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ accelerate launch main.py \
227227
--allow_code_execution
228228
```
229229

230-
By setting `MBBPPLUS_USE_MBPP_TESTS=1` when running MBPP+, one can run the 399 MBPP+ tasks (a subset of the 500 MBPP evaluation tasks) with the original MBPP base tests:
230+
By setting `MBPPPLUS_USE_MBPP_TESTS=1` when running MBPP+, one can run the 399 MBPP+ tasks (a subset of the 500 MBPP evaluation tasks) with the original MBPP base tests:
231231

232232
```bash
233-
MBBPPLUS_USE_MBPP_TESTS=1 accelerate launch main.py \
233+
MBPPPLUS_USE_MBPP_TESTS=1 accelerate launch main.py \
234234
--tasks mbppplus \
235235
--allow_code_execution \
236236
--load_generations_path generations_mbppplus.json \

0 commit comments

Comments
 (0)