Skip to content

Commit be3fc48

Browse files
Akarshan Biswasarthw
authored andcommitted
Revert "[SYCL] fallback mmvq (ggml-org#9088)" (ggml-org#9579)
This reverts commit 50addec.
1 parent 4ccd672 commit be3fc48

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ggml/src/ggml-sycl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,8 +3372,7 @@ static void ggml_sycl_mul_mat(ggml_backend_sycl_context & ctx, const ggml_tensor
33723372

33733373
bool use_mul_mat_vec_q = ggml_is_quantized(src0->type)
33743374
&& src1->type == GGML_TYPE_F32 && dst->type == GGML_TYPE_F32
3375-
&& src1->ne[1] <= MMVQ_MAX_BATCH_SIZE
3376-
&& (ctx.stream()->get_backend() == sycl::backend::ext_oneapi_cuda || src1->ne[1] > MMVQ_MIN_BATCH_SIZE);
3375+
&& src1->ne[1] <= MMVQ_MAX_BATCH_SIZE;
33773376

33783377
bool use_mul_mat_q = ggml_sycl_supports_mmq(src0->type)
33793378
&& src1->type == GGML_TYPE_F32 && dst->type == GGML_TYPE_F32;

ggml/src/ggml-sycl/common.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ typedef sycl::float2 dfloat2;
133133
#endif // GGML_SYCL_F16
134134

135135
#define MMVQ_MAX_BATCH_SIZE 8
136-
#define MMVQ_MIN_BATCH_SIZE 4
137136

138137
static const int8_t kvalues_iq4nl[16]={-127, -104, -83, -65, -49, -35, -22, -10, 1, 13, 25, 38, 53, 69, 89, 113};
139138

0 commit comments

Comments
 (0)