File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,9 @@ add_definitions(-DAVX512_FP32_WEIGHT_ONLY_NF4=true)
183183# add_definitions(-DSTEP_BY_STEP_ATTN=true)
184184add_definitions (-DUSE_SHM=true )
185185option (XFT_BUILD_TESTS "Build xfastertransformer unit tests" OFF )
186+ if (XFT_BUILD_TESTS)
187+ add_definitions (-DUNDEBUG=true )
188+ endif ()
186189
187190# timeline event
188191option (WITH_TIMELINE "Build with timeline event support" OFF )
Original file line number Diff line number Diff line change 1717#include < immintrin.h>
1818#include < omp.h>
1919
20+ #ifdef UNDEBUG
21+ #undef NDEBUG
22+ #endif
2023#include < cassert>
24+
2125#include < cmath>
2226#include < cstdarg>
2327#include < cstdio>
Original file line number Diff line number Diff line change @@ -248,10 +248,8 @@ class LlamaMLP : public SingletonBase<LlamaMLP<WeiT>> {
248248 TimeLine t (" DownProj" );
249249
250250 assert (input.Rows () == output.Rows ());
251- if (!enableCATMLP ())
252- assert (input.Cols () == downWeight.Rows ());
253- else
254- assert (input.Cols () == 2 * downWeight.Rows ());
251+ assert (input.Cols () == downWeight.Rows ());
252+ assert (input.Cols () == 2 * downWeight.Rows ());
255253 assert (downWeight.Cols () == output.Cols ());
256254
257255 int M = input.Rows (), N = output.Cols (), K = downWeight.Rows ();
You can’t perform that action at this time.
0 commit comments