From 8bff04c9d651dfd8c46ca6a34ed836cda55d2f82 Mon Sep 17 00:00:00 2001 From: Iwan Kawrakow Date: Mon, 14 Apr 2025 19:00:06 +0300 Subject: [PATCH] Use stripped tensor name, not src0->name --- examples/imatrix/imatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp index a6a73ac7..d1693fa5 100644 --- a/examples/imatrix/imatrix.cpp +++ b/examples/imatrix/imatrix.cpp @@ -299,7 +299,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void * if (m_collect_lsim) { // We only need to do it here and not in the MoE branch above because the first tensor in a layer // never is a MoE tensor - if (auto index = layer_index(src0->name); index.has_value()) { + if (auto index = layer_index(wname); index.has_value()) { if (*index != m_last_layer) { if (*index > 0) { if (m_last_input.size() != src1->ne[0]*src1->ne[1]) {