Skip to content

ggml-cpu: add 128-bit RVV implementation for Quantization Vector Dot#9

Merged
taimur-10x merged 3 commits intomasterfrom
10x/riscv-quant-vec-dot-128b
Mar 18, 2026
Merged

ggml-cpu: add 128-bit RVV implementation for Quantization Vector Dot#9
taimur-10x merged 3 commits intomasterfrom
10x/riscv-quant-vec-dot-128b

Conversation

@taimur-10x
Copy link
Collaborator

@taimur-10x taimur-10x commented Feb 13, 2026

Summary

This PR adds RVV 128-bit implementations for quantized vector dot kernels.

Key Changes

  • Added the following RVV kernels:
Kernel VLEN
ggml_vec_dot_iq1_s_q8_K 128
ggml_vec_dot_iq1_m_q8_K 128
ggml_vec_dot_iq2_xs_q8_K 128
ggml_vec_dot_iq3_s_q8_K 128
ggml_vec_dot_iq3_xxs_q8_K 128
ggml_vec_dot_iq4_xs_q8_K 128
ggml_vec_dot_tq1_0_q8_K 128
ggml_vec_dot_tq2_0_q8_K 128

Testing

Kernels were functionally tested through test-quantize-fns for 128-bit on QEMU.

Future Work

Subsequent PRs plan to extend existing RVV kernels for quantization types to higher VLENs (512-bit and 1024-bit).

@taimur-10x taimur-10x marked this pull request as draft February 13, 2026 15:48
@github-actions github-actions bot added the ggml label Feb 13, 2026
@taimur-10x taimur-10x force-pushed the 10x/riscv-quant-vec-dot-128b branch from 51b400b to 8bd5cbe Compare February 14, 2026 16:51
@rehan-10xengineer rehan-10xengineer force-pushed the 10x/riscv-quant-vec-dot-128b branch from 21b6845 to a22b149 Compare February 24, 2026 12:15
@taimur-10x taimur-10x changed the base branch from master to 10x/riscv-quant March 4, 2026 11:26
@taimur-10x taimur-10x force-pushed the 10x/riscv-quant-vec-dot-128b branch 2 times, most recently from f8f9384 to 2785c94 Compare March 4, 2026 11:41
@taimur-10x taimur-10x marked this pull request as ready for review March 4, 2026 11:47
@rehan-10xengineer rehan-10xengineer force-pushed the 10x/riscv-quant branch 3 times, most recently from 9ca80fc to 68e3cee Compare March 13, 2026 15:04
@rehan-10xengineer rehan-10xengineer force-pushed the 10x/riscv-quant-vec-dot-128b branch from 2785c94 to f83ddf7 Compare March 16, 2026 10:50
@rehan-10xengineer rehan-10xengineer force-pushed the 10x/riscv-quant-vec-dot-128b branch from f83ddf7 to c7c6abc Compare March 16, 2026 10:55
@rehan-10xengineer
Copy link
Collaborator

opened pr upstreamhere

@taimur-10x taimur-10x force-pushed the 10x/riscv-quant-vec-dot-128b branch from d618925 to cf95828 Compare March 18, 2026 12:19
@taimur-10x taimur-10x force-pushed the 10x/riscv-quant-vec-dot-128b branch from cf95828 to 05a5425 Compare March 18, 2026 12:47
@taimur-10x taimur-10x merged commit 92dc6b1 into master Mar 18, 2026
32 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants