Spaces:
Runtime error
Runtime error
ronald
commited on
Commit
·
17201a4
1
Parent(s):
a958a99
init
Browse files- local_coh_ppl.py +1 -1
local_coh_ppl.py
CHANGED
@@ -179,7 +179,7 @@ class LocalCohPPL(evaluate.Measurement):
|
|
179 |
blocks,blens = prepare_coh_sents(predictions)
|
180 |
all_norm_ppl = []
|
181 |
for start_index in logging.tqdm(range(0, len(blocks), batch_size)):
|
182 |
-
end_index = min(start_index + batch_size, len(
|
183 |
batch_sents = blocks[start_index:end_index]
|
184 |
|
185 |
encodings = tokenizer(
|
|
|
179 |
blocks,blens = prepare_coh_sents(predictions)
|
180 |
all_norm_ppl = []
|
181 |
for start_index in logging.tqdm(range(0, len(blocks), batch_size)):
|
182 |
+
end_index = min(start_index + batch_size, len(blocks))
|
183 |
batch_sents = blocks[start_index:end_index]
|
184 |
|
185 |
encodings = tokenizer(
|