Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo bug in mbppplus #269

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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