mirror of
https://github.com/turboderp-org/exllamav2.git
synced 2026-04-20 14:29:28 +00:00
Fix regular ppl test
This commit is contained in:
@@ -236,7 +236,7 @@ if args.eval_dataset or args.standard_perplexity:
|
||||
ll = logits__.shape[1]
|
||||
|
||||
for bi in range(logits__.shape[0]):
|
||||
cl = ll - lengths__[bi]
|
||||
cl = max(ll - lengths__[bi], 0)
|
||||
logits_ = logits__[bi:bi+1, cl:, :]
|
||||
input_ids_ = input_ids__[bi:bi+1, cl:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user