Skip to content

Commit

Permalink
only enable sgemm for prompt processing
Browse files Browse the repository at this point in the history
  • Loading branch information
netrunnereve authored Sep 6, 2024
1 parent 9bc6db2 commit 3222aae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ggml/src/llamafile/sgemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,10 @@ bool llamafile_sgemm(int64_t m, int64_t n, int64_t k, const void *A, int64_t lda
assert(nth > 0);
assert(ith < nth);

// only enable sgemm for prompt processing
if (n < 2)
return false;

if (Ctype != GGML_TYPE_F32)
return false;

Expand Down

0 comments on commit 3222aae

Please sign in to comment.