Skip to content

Commit d81cae4

Browse files
committed
Update CUDA codebooks
1 parent b7aca16 commit d81cae4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ggml/src/ggml-cuda/dequantize.cuh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static __device__ __forceinline__ void dequantize_iq4_k(const void * vx, const i
499499
dst_t * y = yy + 16*ib + j0;
500500
for (int j = 0; j < 8; ++j) {
501501
const int q = (qs[j] >> 4*(ib%2)) & 0xf;
502-
y[j] = ggml_cuda_cast<dst_t>(dl * (kvalues_iq4nl[q] + ph));
502+
y[j] = ggml_cuda_cast<dst_t>(dl * (kvalues_iq4k[q] + ph));
503503
}
504504
}
505505

‎ggml/src/ggml-cuda/mmq-load-tiles.cuh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ template <ggml_type type, int J, bool fallback> static __device__ __forceinline_
19241924
#pragma unroll
19251925
for (int j = 0; j < 4; ++j) {
19261926
const int q = (get_int_b4(bxi->qs, 4*g + j) >> 4*l) & 0x0F0F0F0F;
1927-
const int v = get_int_from_table_u8_ph(q, kvalues_iq4nl, ph);
1927+
const int v = get_int_from_table_u8_ph(q, kvalues_iq4k, ph);
19281928

19291929
#if defined(AMD_MFMA_AVAILABLE) || defined(TURING_MMA_AVAILABLE) || defined(AMD_WMMA_AVAILABLE)
19301930
x_qs[i*sram_stride + 4*ib + j] = v;

‎ggml/src/ggml-cuda/vecdotq.cuh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ static __device__ __forceinline__ float vec_dot_iq4_k_q8_1(
14881488
const int q = (get_int_b4(bq4->qs, 4*g + j) >> 4*l) & 0x0F0F0F0F;
14891489
const int u = get_int_b4(bq8_1[g].qs, 4*l + j);
14901490

1491-
sumq = ggml_cuda_dp4a(get_int_from_table_u8(q, kvalues_iq4nl), u, sumq);
1491+
sumq = ggml_cuda_dp4a(get_int_from_table_u8(q, kvalues_iq4k), u, sumq);
14921492
sumy = ggml_cuda_dp4a(0x01010101, u, sumy);
14931493
}
14941494
sumi += ls*(sumq + ph*sumy);

0 commit comments

Comments
 (0)