From 8b495540faa2e09758672cc9c001229ca31d1c7a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 12 Apr 2024 11:45:12 +0300 Subject: [PATCH] imatrix : remove invalid assert --- examples/imatrix/imatrix.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp index ff624c539..73609d3e6 100644 --- a/examples/imatrix/imatrix.cpp +++ b/examples/imatrix/imatrix.cpp @@ -107,9 +107,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void * // the top-k selected expert ids are stored in the ids tensor // for simplicity, always copy ids to host, because it is small - // take into account that ids is not contiguous! GGML_ASSERT(ids->ne[1] == src1->ne[1]); - GGML_ASSERT(n_as*ggml_nrows(ids)*sizeof(int) == GGML_PAD(ggml_nbytes(ids), n_as*sizeof(int))); m_ids.resize(ggml_nbytes(ids)/sizeof(int)); ggml_backend_tensor_get(ids, m_ids.data(), 0, ggml_nbytes(ids));