Skip to content

Commit

Permalink
Update vllm_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBruceJia authored Feb 17, 2025
1 parent f899815 commit 2c8d829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PodGPT_Database_Inference/utils/vllm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def performance_eval(config, mode, prompts, answers, documents, file_path):
option_range = "a-dA-D" # 4 Options
prediction = extract_answer(completion=response, option_range=option_range)
if prediction is None:
response = response_with_option(prompt=prompt, response=response)
prediction = extract_answer(completion=response, option_range=option_range)
temp_response = response_with_option(prompt=prompt, response=response)
prediction = extract_answer(completion=temp_response, option_range=option_range)

if prediction is not None:
acc.append(prediction == answer)
Expand Down

0 comments on commit 2c8d829

Please sign in to comment.