Skip to content

Commit

Permalink
Add time per token to results file
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuhn authored Aug 16, 2024
1 parent 61d1ad3 commit 89d8279
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/evaluate_llama2.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def hook_fn(layer, input, output):
# Compute scores
rouge = evaluate.load('rouge')
results_generated = rouge.compute(predictions=predictions_generated, references=references)
results_generated["time"] = e2e_inference_time
results_generated["time-total"] = e2e_inference_time
results_generated["time-per-token"] = e2e_inference_time_norm


print("Results: ",results_generated)

Expand Down

0 comments on commit 89d8279

Please sign in to comment.