Skip to content

Commit 9a2d9a5

Browse files
committed
crash fix
1 parent b658d92 commit 9a2d9a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ggml/src/ggml-tp/ggml-tp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,11 @@ static void ggml_backend_tp_buffer_graph_compute_one(struct compute_thread * thr
910910
thread->end = node_index;
911911

912912
for (auto & tensor : pending_gathers) {
913+
// why does this happen?
914+
if (tensor->ne[1] == 0) {
915+
continue;
916+
}
917+
913918
auto extra = (ggml_tensor_parallel_extra *)tensor->extra;
914919
auto wrapped = extra->tensors[device_index];
915920

0 commit comments

Comments
 (0)