Skip to content

Commit dc0b448

Browse files
committed
add TODO
1 parent 2461682 commit dc0b448

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ static ggml_cgraph * clip_image_build_graph_siglip(clip_ctx * ctx, const clip_im
557557

558558
// implementation of the 2D RoPE without adding a new op in ggml
559559
// this is not efficient (use double the memory), but works on all backends
560+
// TODO: there was a more efficient which relies on ggml_view and ggml_rope_ext_inplace, but the rope inplace does not work well with non-contiguous tensors ; we should fix that and revert back to the original implementation in https://github.com/ggml-org/llama.cpp/pull/13065
560561
static ggml_tensor * build_rope_2d(
561562
ggml_context * ctx0,
562563
ggml_tensor * cur,

tests/test-backend-ops.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,6 +2606,8 @@ struct test_rope : public test_case {
26062606
} else {
26072607
out = ggml_rope_ext_back(ctx, a, pos, freq, n_dims, mode, 0, 10000.0f, fs, ef, af, 1.0f, 1.0f);
26082608
}
2609+
2610+
// TODO: add test with a non-contiguous view as input ; this case is needed for build_rope_2d in clip.cpp
26092611
}
26102612
ggml_set_name(out, "out");
26112613

0 commit comments

Comments
 (0)