Skip to content

Commit 3f6c61d

Browse files
committed
Enable repacking only on AVX-512 machines
1 parent eb7f9a3 commit 3f6c61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/repack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ static const ggml::cpu::tensor_traits * ggml_repack_get_optimal_repack_type(cons
17051705
}
17061706
}
17071707
} else if (cur->type == GGML_TYPE_Q2_K) {
1708-
if (ggml_cpu_has_avx2()) {
1708+
if (ggml_cpu_has_avx512()) {
17091709
if (cur->ne[1] % 8 == 0) {
17101710
return &q2_K_8x8_q8_K;
17111711
}

0 commit comments

Comments
 (0)