@@ -450,12 +450,12 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
450450 [GGML_TYPE_Q8_K_R8 ] = {
451451 .from_float = quantize_row_q8_k_r8 ,
452452 .vec_dot = vec_dot_q8_k_r8_q8_k ,
453- // .vec_dot_type = GGML_TYPE_Q8_KR8,
453+ .vec_dot_type = GGML_TYPE_Q8_KR8 ,
454454 .vec_dot_type = GGML_TYPE_Q8_K ,
455455 .nrows = 1 ,
456456 },
457457 [GGML_TYPE_IQ2_XXS ] = {
458- .from_float = NULL ,
458+ .from_float = quantize_row_iq2_xxs ,
459459 .vec_dot = ggml_vec_dot_iq2_xxs_q8_K ,
460460// #ifdef __AVX2__
461461 // .vec_dot_type = GGML_TYPE_Q8_2_X4,
@@ -471,7 +471,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
471471 .nrows = 1 ,
472472 },
473473 [GGML_TYPE_IQ2_XS ] = {
474- .from_float = NULL ,
474+ .from_float = quantize_row_iq2_xs ,
475475 .vec_dot = ggml_vec_dot_iq2_xs_q8_K ,
476476 .vec_dot_type = GGML_TYPE_Q8_K ,
477477 .nrows = 1 ,
@@ -484,7 +484,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
484484 },
485485 [GGML_TYPE_IQ3_XXS ] = {
486486 // NOTE: from_float for iq3 and iq2_s was removed because these quants require initialization in ggml_quantize_init
487- // .from_float = quantize_row_iq3_xxs,
487+ .from_float = quantize_row_iq3_xxs ,
488488 .vec_dot = ggml_vec_dot_iq3_xxs_q8_K ,
489489// #ifdef __AVX2__
490490 // .vec_dot_type = GGML_TYPE_Q8_2_X4,
@@ -500,7 +500,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
500500 .nrows = 1 ,
501501 },
502502 [GGML_TYPE_IQ3_S ] = {
503- // .from_float = quantize_row_iq3_s,
503+ .from_float = quantize_row_iq3_s ,
504504 .vec_dot = ggml_vec_dot_iq3_s_q8_K ,
505505// #ifdef __AVX2__
506506 // .vec_dot_type = GGML_TYPE_Q8_2_X4,
@@ -516,7 +516,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
516516 .nrows = 1 ,
517517 },
518518 [GGML_TYPE_IQ2_S ] = {
519- // .from_float = quantize_row_iq2_s,
519+ .from_float = quantize_row_iq2_s ,
520520 .vec_dot = ggml_vec_dot_iq2_s_q8_K ,
521521 .vec_dot_type = GGML_TYPE_Q8_K ,
522522 .nrows = 1 ,
@@ -528,7 +528,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
528528 .nrows = 1 ,
529529 },
530530 [GGML_TYPE_IQ1_S ] = {
531- .from_float = NULL ,
531+ .from_float = quantize_row_iq1_s ,
532532 .vec_dot = ggml_vec_dot_iq1_s_q8_K ,
533533// #ifdef __AVX2__
534534 // .vec_dot_type = GGML_TYPE_Q8_2_X4,
@@ -544,7 +544,7 @@ static const struct ggml_type_traits_cpu type_traits_cpu[GGML_TYPE_COUNT] = {
544544 .nrows = 1 ,
545545 },
546546 [GGML_TYPE_IQ1_M ] = {
547- .from_float = NULL ,
547+ .from_float = quantize_row_iq1_m ,
548548 .vec_dot = ggml_vec_dot_iq1_m_q8_K ,
549549 .vec_dot_type = GGML_TYPE_Q8_K ,
550550 .nrows = 1 ,
0 commit comments