Skip to content

Commit 7579e26

Browse files
committed
fix api
1 parent 9d6f235 commit 7579e26

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,8 @@ endif()
155155

156156
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
157157

158-
if (NOT SD_USE_SYSTEM_GGML)
159-
# see https://github.com/ggerganov/ggml/pull/682
160-
add_definitions(-DGGML_MAX_NAME=128)
161-
endif()
158+
# see https://github.com/ggerganov/ggml/pull/682
159+
add_definitions(-DGGML_MAX_NAME=128)
162160

163161
# deps
164162
# Only add ggml if it hasn't been added yet

ggml_extend.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,13 +1282,6 @@ __STATIC_INLINE__ struct ggml_tensor* ggml_ext_attention_ext(struct ggml_context
12821282
}
12831283

12841284
if (mask_in != nullptr) {
1285-
int mask_pad = 0;
1286-
if (mask_in->ne[1] % GGML_KQ_MASK_PAD != 0) {
1287-
mask_pad = GGML_PAD(L_q, GGML_KQ_MASK_PAD) - mask_in->ne[1];
1288-
}
1289-
if (mask_pad > 0) {
1290-
mask_in = ggml_pad(ctx, mask_in, 0, mask_pad, 0, 0);
1291-
}
12921285
mask_in = ggml_cast(ctx, mask_in, GGML_TYPE_F16);
12931286
}
12941287

0 commit comments

Comments
 (0)