Skip to content

Commit 6d2c5ca

Browse files
joaopalottiJoao Palotti
andauthored
Fix indentation (#386)
Co-authored-by: Joao Palotti <[email protected]>
1 parent 8d865ec commit 6d2c5ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

evaluate/adapter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ def main(
141141
toks += inp.size(1) - 1
142142
nlls += nll.item()
143143

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

149149
t = time.perf_counter() - t0
150150
print(

0 commit comments

Comments
 (0)