AI Compiler Engineer at 10xEngineers. I make AI models run faster on RISC-V CPUs and custom AI accelerators.
My work sits between the model and the silicon. Hand-written GEMM, GEMV and attention kernels, the compiler and firmware infrastructure around them, and the profiling tooling needed to know whether any of it actually helped. Most of it lands in llama.cpp, either for the RISC-V Vector extension or for the Esperanto ET-SoC-1 manycore accelerator.
Before this I designed hardware. My undergraduate thesis was a 3-stage pipelined RV32IMZicsr core with a loosely coupled 16x16 systolic-array GEMM coprocessor in SystemVerilog on an Artix-7 FPGA, 142x faster than the scalar core on a 60x60 GEMM. That is still the lens I bring to software work, measure the machine first, then write the kernel it wants.
- Speaking at RISC-V Summit Europe 2026 on Optimizing Llama.cpp and GGML for RISC-V Vector (RVV), with Taimur Ahmad
- Interested in LLM inference, compilers for AI accelerators, computer architecture and hardware-software co-design
- BS Electrical Engineering, UET Lahore, rank 1 of 200, six gold medals
- LinkedIn and email
Each entry links the merged commit carrying my authorship, with the pull request in brackets.
Pull requests opened from my work account (rehan-10xengineer) commit under this account.
RISE RFP RP-014, Optimizing Llama.cpp and GGML for RVV, a two person effort with
Taimur Ahmad. Merged upstream in ggml-org/llama.cpp:
3c7450ceeextend RVV quantization vec dot to higher VLENs (#22754), author1e796eb41128-bit RVV implementation for quantization vec dot (#20633), author563753651simd_gemm kernel for the RISC-V Vector extension, used in tiled flash-attention (#20627), authorfbaa95bc2RVV vec dot kernels for quantization types (#18859), authoraf237f302RVV repack GEMM and GEMV for quantization types (#19121), co-authorb908baf18RVV vec dot kernels for quantization types (#18784), co-authord34d5ca1eRVV support for llamafile sgemm kernels (#18199), co-authorf716588e6extended support for RVV floating-point kernels (#17318), co-author
Merged in the RISE fork while upstream review continues:
d19cdcfacextend RVV GEMM and GEMV to other VLENs (fork #8, upstream #20723), co-authorcd8ed55a7tests and performance benchmarks for the floating-point kernels, with the CMake wiring to build them (fork #2), author
I also wrote the founding commit of llama.cpp-validation, the RISC-V cross-compilation toolchain and the initial test and benchmark suite for these kernels.
Matrix-engine GEMM and GEMV kernels for a 1088-core RISC-V accelerator, across quantized and floating-point formats, reworking both the prefill and decode paths.
082b326fcinitial ET backend (#24179), co-author234272cb8Q8_0 matrix-engine GEMM kernel for prefill, 6.15x to 9.54x prefill over the vector-unit path (fork #25), author
Open upstream, measured on Llama-3.2-1B-Instruct against the vector-unit path:
- #26323 Q4_0 matrix-engine GEMM for prefill, 3.10x to 3.69x
- #26326 Q8_0 matrix-engine GEMM for prefill, 6.15x to 9.54x
- #26327 F16 GEMM and GEMV, 7.41x to 16.47x prefill and 2.23x decode
- #26328 F32 GEMM and GEMV, 1.13x to 1.52x prefill and 1.92x decode
C/C++, Python, RISC-V Assembly, SystemVerilog, MLIR, IREE, RVV intrinsics, PyTorch, llama.cpp, CMake, Perf, GDB, Vivado, QEMU


