Spaces:
Sleeping
Sleeping
Fix
Browse files
app.py
CHANGED
@@ -294,7 +294,7 @@ def run_context_length_probing(
|
|
294 |
start=0,
|
295 |
pad_id=_tokenizer.eos_token_id
|
296 |
).convert_to_tensors("pt")
|
297 |
-
logprobs = get_logprobs(model=
|
298 |
output_ids = [*input_ids, label_ids[-1]]
|
299 |
num_tgt_tokens = logprobs.shape[0]
|
300 |
|
|
|
294 |
start=0,
|
295 |
pad_id=_tokenizer.eos_token_id
|
296 |
).convert_to_tensors("pt")
|
297 |
+
logprobs = get_logprobs(model=_model, inputs=inputs_sliding, metric=metric)
|
298 |
output_ids = [*input_ids, label_ids[-1]]
|
299 |
num_tgt_tokens = logprobs.shape[0]
|
300 |
|