Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ggml/src/ggml-metal/ggml-metal-ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,8 @@ int ggml_metal_op_flash_attn_ext(ggml_metal_op_t ctx, int idx) {

bool need_sync = false;

const bool has_kvpad = ne11 % ncpsg != 0;
// const bool has_kvpad = ne11 % ncpsg != 0;
const bool has_kvpad = true;

if (has_kvpad) {
assert(ggml_metal_op_flash_attn_ext_extra_pad(op) != 0);
Expand Down Expand Up @@ -2325,7 +2326,8 @@ int ggml_metal_op_flash_attn_ext(ggml_metal_op_t ctx, int idx) {

bool need_sync = false;

const bool has_kvpad = ne11 % ncpsg != 0;
// const bool has_kvpad = ne11 % ncpsg != 0;
const bool has_kvpad = true;

if (has_kvpad) {
assert(ggml_metal_op_flash_attn_ext_extra_pad(op) != 0);
Expand Down