Skip to content

Commit 16a95d6

Browse files
Reenable assertion for out of bounds get_rows
Signed-off-by: Alex-Brooks <[email protected]>
1 parent 23ece06 commit 16a95d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8620,9 +8620,7 @@ static void ggml_compute_forward_get_rows_f32(
86208620
const int64_t i10 = (i - i12*ne11*ne10 - i11*ne10);
86218621
const int64_t i01 = *(int32_t *) ((char *) src1->data + i10*nb10 + i11*nb11 + i12*nb12);
86228622

8623-
// Copying this out for a bit while investigating due to issues like:
8624-
// https://github.com/ggerganov/llama.cpp/issues/10157
8625-
// GGML_ASSERT(i01 >= 0 && i01 < ne01);
8623+
GGML_ASSERT(i01 >= 0 && i01 < ne01);
86268624

86278625
ggml_vec_cpy_f32(nc,
86288626
(float *) ((char *) dst->data + i10*nb1 + i11*nb2 + i12*nb3),

0 commit comments

Comments
 (0)