From fcbf927bca9dcc240594a0aff4f952f24b116e07 Mon Sep 17 00:00:00 2001 From: EthanPeng-2048 Date: Sun, 26 Apr 2026 23:00:32 +0800 Subject: [PATCH 1/3] change 3rdparty --- .gitmodules | 4 ++-- src/ggml-bitnet-mad.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index 2b36e4928..697f3ef47 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "3rdparty/llama.cpp"] path = 3rdparty/llama.cpp - url = https://github.com/Eddie-Wang1120/llama.cpp.git - branch = merge-dev + url = https://github.com/EthanPeng-2048/bitllama.cpp.git + branch = main diff --git a/src/ggml-bitnet-mad.cpp b/src/ggml-bitnet-mad.cpp index 4ba9d6509..019e25c7c 100644 --- a/src/ggml-bitnet-mad.cpp +++ b/src/ggml-bitnet-mad.cpp @@ -808,7 +808,7 @@ void ggml_vec_dot_i2_i8_s_Nx1(int n, float * s, size_t bs, const void * vx, size accu[iy] = _mm256_setzero_si256(); } - int8_t * y_col = y + col * by; + const int8_t * y_col = y + col * by; for (int i = 0; i < group32_num; i++) { const uint8_t *px = x + i * 1024; @@ -1053,4 +1053,4 @@ void ggml_vec_dot_i2_i8_s(int n, float * s, size_t bs, const void * vx, size_t b { ggml_vec_dot_i2_i8_s_1x1(n, s, bs, vx, bx, vy, by, nrc); } -} \ No newline at end of file +} From c1f2ab12c545dc982364131ae07a4886c38dfeb9 Mon Sep 17 00:00:00 2001 From: EthanPeng-2048 Date: Sun, 26 Apr 2026 23:32:47 +0800 Subject: [PATCH 2/3] llama.cpp change --- 3rdparty/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/llama.cpp b/3rdparty/llama.cpp index 1f86f058d..fb5af1a48 160000 --- a/3rdparty/llama.cpp +++ b/3rdparty/llama.cpp @@ -1 +1 @@ -Subproject commit 1f86f058de0c3f4098dedae2ae8653c335c868a1 +Subproject commit fb5af1a48eeeebabbdb533b5d74f1d59403b3c74 From e1615392194bcd7a2740cbe0f037f5e4f25d0dc8 Mon Sep 17 00:00:00 2001 From: EthanPeng-2048 Date: Mon, 27 Apr 2026 20:04:45 +0800 Subject: [PATCH 3/3] fix chrono include bug on windows --- 3rdparty/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/llama.cpp b/3rdparty/llama.cpp index fb5af1a48..972fbfc73 160000 --- a/3rdparty/llama.cpp +++ b/3rdparty/llama.cpp @@ -1 +1 @@ -Subproject commit fb5af1a48eeeebabbdb533b5d74f1d59403b3c74 +Subproject commit 972fbfc7383dc5cfe976680fb51114a3f631cdda