We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d865ec commit 6d2c5caCopy full SHA for 6d2c5ca
evaluate/adapter.py
@@ -141,10 +141,10 @@ def main(
141
toks += inp.size(1) - 1
142
nlls += nll.item()
143
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
+ print(encoded_text.shape, logits.shape)
+ ppl = math.exp(nlls / toks)
+ print(f"Perplexity on {dsname}: {ppl:.2f}")
+ total_toks += toks
148
149
t = time.perf_counter() - t0
150
print(
0 commit comments