Skip to content

Commit

Permalink
Fix indentation (#386)
Browse files Browse the repository at this point in the history
Co-authored-by: Joao Palotti <[email protected]>
  • Loading branch information
joaopalotti and Joao Palotti authored Jun 16, 2023
1 parent 8d865ec commit 6d2c5ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions evaluate/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def main(
toks += inp.size(1) - 1
nlls += nll.item()

print(encoded_text.shape, logits.shape)
ppl = math.exp(nlls / toks)
print(f"Perplexity on {dsname}: {ppl:.2f}")
total_toks += toks
print(encoded_text.shape, logits.shape)
ppl = math.exp(nlls / toks)
print(f"Perplexity on {dsname}: {ppl:.2f}")
total_toks += toks

t = time.perf_counter() - t0
print(
Expand Down

0 comments on commit 6d2c5ca

Please sign in to comment.