Skip to content

Commit b7ee9d8

Browse files
committed
Fix index for add
1 parent e49c6b0 commit b7ee9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ static bool ggml_cuda_can_fuse(const struct ggml_cgraph * cgraph, int node_idx,
28272827
const ggml_tensor *add = nullptr;
28282828

28292829
if (ops.size() == 3 && ops.begin()[2] == GGML_OP_ADD) {
2830-
add = cgraph->nodes[node_idx+1];
2830+
add = cgraph->nodes[node_idx+2];
28312831
}
28322832

28332833
GGML_ASSERT(rms_norm->src[0]->type == GGML_TYPE_F32);

0 commit comments

Comments
 (0)