From fae6d9c70d14bedf2a274801dca78199cce27917 Mon Sep 17 00:00:00 2001 From: KerfuffleV2 Date: Thu, 19 Oct 2023 18:11:15 -0600 Subject: [PATCH] Fix pushing in wrong halflayer idx --- examples/perplexity/perplexity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index fb3b018f2..bb416b459 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -405,7 +405,7 @@ static results_perplexity perplexity(llama_context * ctx, const gpt_params & par std::get<1>(pass_results[temp]), std::get<2>(pass_results[temp])); if (anti_mode) { skip_types[lidx] |= std::get<1>(pass_results[temp]); - skips.push_back(std::get<1>(pass_results[temp]) == 1 ? lidx : -lidx); + skips.push_back(std::get<1>(pass_results[temp]) == 1 ? lidx : lidx + n_layers); } if (++pruned >= num_prune) break; }