Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Mar 15, 2024
1 parent 670b1d3 commit ad6b441
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions bestla/bestla/bestla_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bestla/bestla/ut/kernel_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<DST_T,utils::bf16>) {
if constexpr (std::is_same_v<DST_T, utils::bf16>) {
thres = DST_T(BF16_ERR);
}
ut::buffer_error(ref_wei.data(), bf16_wei.data(), bf16_wei.size(), thres);
Expand Down

0 comments on commit ad6b441

Please sign in to comment.