File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10878,15 +10878,13 @@ UseGgmlGemm1:;
10878
10878
const size_t row_size = ggml_row_size(vec_dot_type, ne10);
10879
10879
10880
10880
#if GGML_USE_LLAMAFILE
10881
- if (src1_cont ) {
10881
+ if (src1->type != vec_dot_type ) {
10882
10882
for (int64_t i13 = 0; i13 < ne13; i13++)
10883
10883
for (int64_t i12 = 0; i12 < ne12; i12++)
10884
10884
if (!llamafile_sgemm(ne01, ne11, ne00/ggml_blck_size(src0->type),
10885
10885
(const char *)src0->data + i12/r2*nb02 + i13/r3*nb03,
10886
10886
nb01/ggml_type_size(src0->type),
10887
- (const char *)wdata + ggml_row_size(vec_dot_type,
10888
- nb12/ggml_type_size(src1->type)*i12 +
10889
- nb13/ggml_type_size(src1->type)*i13),
10887
+ (const char *)wdata + (i12*ne11 + i13*ne12*ne11)*row_size,
10890
10888
row_size/ggml_type_size(vec_dot_type),
10891
10889
(char *)dst->data + i12*nb2 + i13*nb3,
10892
10890
nb1/ggml_type_size(dst->type),
You can’t perform that action at this time.
0 commit comments