Skip to content

Commit a70bbb7

Browse files
committed
wip
1 parent ac56fb0 commit a70bbb7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,22 @@ static void do_init(size_t node_index, ggml_tensor * tensor, ggml_tensor_paralle
15341534
create_reduce_tensors();
15351535
create_reduce_op_tensors();
15361536
}
1537+
else if (src0_split_tensors == GGML_TP_SPLIT_REDUCE && !src1_split_tensors) {
1538+
// src1 may be a reduce split and later gathered, so check that.
1539+
if (src1_extra->split_tensors != GGML_TP_SPLIT_REDUCE) {
1540+
ensure_column_split(src1);
1541+
}
1542+
create_reduce_tensors();
1543+
create_reduce_op_tensors();
1544+
}
1545+
else if (src1_split_tensors == GGML_TP_SPLIT_REDUCE && !src0_split_tensors) {
1546+
// src0 may be a reduce split and later gathered, so check that.
1547+
if (src0_extra->split_tensors != GGML_TP_SPLIT_REDUCE) {
1548+
ensure_column_split(src0);
1549+
}
1550+
create_reduce_tensors();
1551+
create_reduce_op_tensors();
1552+
}
15371553
else if (!src0_split_tensors && !src1_split_tensors) {
15381554
ensure_rejoined(tensor, src0);
15391555
ensure_rejoined(tensor, src1);

0 commit comments

Comments
 (0)