From 221724705191554b14f112162414f276bfeb2b17 Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Mon, 9 Sep 2024 22:35:47 -0400 Subject: [PATCH] imatrix : remove unused n_entries --- examples/imatrix/imatrix.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp index 758542905..bcdc71153 100644 --- a/examples/imatrix/imatrix.cpp +++ b/examples/imatrix/imatrix.cpp @@ -235,7 +235,6 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const { // avoid writing imatrix entries that do not have full data // this can happen with MoE models where some of the experts end up not being exercised by the provided training data - int n_entries = 0; std::vector to_store; size_t data_size = 0; @@ -269,7 +268,6 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const { continue; } - n_entries++; to_store.push_back(kv.first); data_size += GGML_PAD(ggml_tensor_overhead() + sizeof(float) * kv.second.values.size(), GGML_MEM_ALIGN); data_size += GGML_PAD(ggml_tensor_overhead() + sizeof(float) * kv.second.counts.size(), GGML_MEM_ALIGN);