Skip to content

Commit

Permalink
Merge pull request #269 from zkcpku/main
Browse files Browse the repository at this point in the history
fix typo bug in mbppplus
  • Loading branch information
loubnabnl authored Oct 20, 2024
2 parents 7c02b2f + 598b03e commit f246ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bigcode_eval/tasks/mbppplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_prompt(self, doc):
# is different from HumanEval(+) which further requires a `check` func
def get_reference(self, doc):
"""Builds the reference solution for the doc (sample from the test dataset)."""
use_mbpp_tests = os.getenv("MBBPPLUS_USE_MBPP_TESTS", "0")
use_mbpp_tests = os.getenv("MBPPPLUS_USE_MBPP_TESTS", "0")
if use_mbpp_tests == "1":
return "\n".join(doc["test_list"])
return "\n" + doc["test"]
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ accelerate launch main.py \
--allow_code_execution
```

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:
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:

```bash
MBBPPLUS_USE_MBPP_TESTS=1 accelerate launch main.py \
MBPPPLUS_USE_MBPP_TESTS=1 accelerate launch main.py \
--tasks mbppplus \
--allow_code_execution \
--load_generations_path generations_mbppplus.json \
Expand Down

0 comments on commit f246ab2

Please sign in to comment.