Skip to content

Commit

Permalink
Add more descriptive error message in eval_runner.py (#552)
Browse files Browse the repository at this point in the history
- Fixed a small typo in the BFCL readme
- Added a more descriptive error message in eval_runner.py
  • Loading branch information
alonsosilvaallende authored Jul 28, 2024
1 parent 56f2cb2 commit 83dfe1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion berkeley-function-call-leaderboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export YI_API_KEY=XXXXXX

If decided to run OSS model, the generation script uses vllm and therefore requires GPU for hosting and inferencing. If you have questions or concerns about evaluating OSS models, please reach out to us in our [discord channel](https://discord.gg/grXXvj9Whz).

### Genrating LLM Responses
### Generating LLM Responses

Use the following command for LLM inference of the evaluation dataset with specific models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def single_ast_file_runner(
):
assert (
len(model_result) == len(prompt) == len(possible_answer)
), "The length of the model result does not match the length of the prompt or possible answer. Please check the input files for completeness."
), f"The length of the model result ({len(model_result)}) does not match the length of the prompt ({len(prompt)}) or possible answer ({len(possible_answer)}). Please check the input files for completeness."

result = []
correct_count = 0
Expand Down

0 comments on commit 83dfe1a

Please sign in to comment.