Skip to content

Commit

Permalink
drafting
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 24, 2025
1 parent 0d721e1 commit a7820d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/llm/tech_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def eval(question: str, pred: str, correct_answer: str):
scores = []
eval_tuples = []
for test_batch in tqdm(test_loader, desc="Testing"):
pred = (inference_step(model, test_batch))
preds = (inference_step(model, test_batch))
for question, pred, label in zip(test_batch.question, preds, test_batch.label):
eval_tuples.append((question, pred, label))
for question, pred, label in tqdm(eval_tuples, desc="Eval"):
Expand Down

0 comments on commit a7820d6

Please sign in to comment.