From ad6b441a189e60d9cc73ac95821c5330400457ab Mon Sep 17 00:00:00 2001 From: luoyu-intel Date: Fri, 15 Mar 2024 16:02:19 +0800 Subject: [PATCH] clang-format --- bestla/bestla/bestla_utils.h | 30 ++++++++++++++--------------- bestla/bestla/ut/kernel_wrapper.cpp | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bestla/bestla/bestla_utils.h b/bestla/bestla/bestla_utils.h index 9474cfad3..da8e1b9c9 100644 --- a/bestla/bestla/bestla_utils.h +++ b/bestla/bestla/bestla_utils.h @@ -731,21 +731,21 @@ static float alignas(64) fp4_e2m1_dequant_fp32_LUT[] = { }; static float alignas(64) nf4_dequant_fp32_LUT[] = {0.f, - -0.6961928009986877f, - -0.5250730514526367f, - -0.39491748809814453f, - -0.28444138169288635f, - -0.18477343022823334f, - -0.09105003625154495f, - -1.f, - 0.07958029955625534f, - 0.16093020141124725f, - 0.24611230194568634f, - 0.33791524171829224f, - 0.44070982933044434f, - 0.5626170039176941f, - 0.7229568362236023f, - 1.0f}; + -0.6961928009986877f, + -0.5250730514526367f, + -0.39491748809814453f, + -0.28444138169288635f, + -0.18477343022823334f, + -0.09105003625154495f, + -1.f, + 0.07958029955625534f, + 0.16093020141124725f, + 0.24611230194568634f, + 0.33791524171829224f, + 0.44070982933044434f, + 0.5626170039176941f, + 0.7229568362236023f, + 1.0f}; // 8bit dynamic-tree-quantization map from bitsandbytes double-quant implementation. // For more details pls refer diff --git a/bestla/bestla/ut/kernel_wrapper.cpp b/bestla/bestla/ut/kernel_wrapper.cpp index 137515355..37ba3d6f9 100644 --- a/bestla/bestla/ut/kernel_wrapper.cpp +++ b/bestla/bestla/ut/kernel_wrapper.cpp @@ -73,7 +73,7 @@ class UT_DecompressKBlockS4FP { s4_wei.data(), ref_wei.data(), row, col, ld_src, ld_dst, scales.data(), asym ? zero_points.data() : nullptr, k_offset, kblock, NPad, cache, CacheSize); DST_T thres = DST_T(0.01f); - if constexpr (std::is_same_v) { + if constexpr (std::is_same_v) { thres = DST_T(BF16_ERR); } ut::buffer_error(ref_wei.data(), bf16_wei.data(), bf16_wei.size(), thres);