Skip to content

Commit

Permalink
Fix matching cases in lora_inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JHLEE17 committed Aug 1, 2024
1 parent 6b3a039 commit c10afb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lora_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
for i, output in enumerate(outputs):
prompt = output.prompt
generated_text = output.outputs[0].text
matching = expected_output[i].lower() == generated_text.lower()
matching = expected_output[i] == generated_text
if not matching:
print(f"{i} matching::{matching} Prompt: {prompt!r}, Generated text: {generated_text!r} expected_output: {expected_output[i]!r}")
else:
Expand Down

0 comments on commit c10afb4

Please sign in to comment.