Hariharan S J: LLM inference systems and machine-learning evaluation

Reuse the prefix. (KVCacheX)

Schematic · KVCacheX Two requests in the same namespace share the cached full blocks of their common system prompt; each block is counted, not copied. Only their own tails get new blocks. Paged KV cache

Split by patient. (MRITrust)

Schematic · MRITrust Each patient’s slices sit wholly on one side of the cut. A random split puts slices of the same patient on both sides (marked): the model has seen those patients during training. Leakage audit

I’m an AI & Data Science undergraduate. I build LLM inference systems in Rust (a runtime measured against llama.cpp, a paged KV-cache manager) and audit whether machine-learning evaluations survive a stricter split.

Research intern at Telkom University, Indonesia, in May 2026; co-authored a paper accepted for presentation at ICoAILO 2026.

See the work Résumé GitHub ↗ LinkedIn ↗

§ 1 · Selected work

Three systems, measured and written up with where they stop.

LLM inference · Rust

MiniInfer

A Llama inference runtime in Rust, measured against llama.cpp on the same model file.

Research prototype v0.1

5,848 → 145 ms

time to first token, 1,040-token prompt with in-session prefix reuse. source for MiniInfer: time to first token, 1,040-token prompt with in-session prefix reuse ↗

Apple M1 CPU, SmolLM2-360M Q8_0, arms interleaved request by request. Reuse only helps when the prefix repeats.

MiniInfer time to first token, cold prefill vs in-session prefix reuse
Condition Cold prefill (ms)Prefix reused (ms)
1,040-token prompt 5,848 ms — Cold prefill 144.5 ms — Prefix reused
272-token prompt 1,189.1 ms — Cold prefill 121.5 ms — Prefix reused
Fig. 1 Time to first token, p50. Apple M1 CPU, SmolLM2-360M Q8_0. experiment-log.md ↗

LLM inference · Rust

KVCacheX

Paged KV-cache memory for LLM inference, where two requests can share blocks and a hash collision can’t corrupt either.

CPU-verified · GPU validation in progress

492k → 72k

prompt tokens computed on simulated shared-prefix traffic, with prefix sharing on. source for KVCacheX: prompt tokens computed on simulated shared-prefix traffic, with prefix sharing on ↗

Scheduler simulation (unit-cost steps, Llama-3-8B geometry, 2 GiB KV), mean of 3 seeds. Not end-to-end inference.

Block tables for two requests. Both point to physical blocks 0, 1 and 2; request A’s last block is 3, request B’s is 5.
req Aprompt + question A #0#1#2#3
req Bprompt + question B #0#1#2#5
  1. #0 ref 2
  2. #1 ref 2
  3. #2 ref 2
  4. #3 ref 1
  5. #4 free
  6. #5 ref 1
  7. #6 free
  8. #7 free
Schematic Two requests with the same system prompt share its full 16-token blocks; each block is counted, not copied. The last, partial block stays private.

Trustworthy ML · medical imaging

MRITrust

How much of a brain-MRI classifier’s accuracy survives when the same patient can’t be on both sides of the split?

Research prototype

0.983 → 0.927

ResNet-18 slice accuracy, random split vs patient-grouped split. source for MRITrust: ResNet-18 slice accuracy, random split vs patient-grouped split ↗

Mean of 3 seeds on curated Figshare tumour slices (3-class tumour type). Same model, same data — only the split changed.

MRITrust: ResNet-18 slice accuracy by split protocol, mean ± SD over 3 seeds
Condition Accuracy ± SD
Random slice split F-R 0.983 [0.977, 0.989]
Patient-grouped split F-P 0.927 [0.896, 0.958]
Fig. 3 Same model, same slices; only the split changes. Mean ± SD, 3 seeds. Axis starts at 0.85. RESULTS.md ↗

§ 2 · Research

Can 150 clustered records stand in for the full training set?

May 2026 · Telkom University · Bandung, Indonesia

Data: the synthetic AI4I 2020 industrial dataset, used as a proxy for equipment telemetry.

Can a 150-record micro-dataset, chosen by K-Means clustering, stand in for the full training set in explainable failure prediction for 5G edge hardware?

accepted for presentation ICoAILO 2026, Jakarta

Co-authored. Accepted, not yet published — so no DOI or proceedings link is listed here.

XGBoost F1 on a natural-distribution test set, by training data
Condition F1, natural-distribution test set (%)
Full development set all records 76.5 % — F1, natural-distribution test set
K-Means micro-dataset 150 records 42.6 % — F1, natural-distribution test set
XGBoost. Cross-validation on the micro-dataset looked strong; the score did not carry over to held-out data with the natural class distribution. résumé ↗

§ 3 · Also built

Smaller projects, released.

  1. Spacecraft telemetry anomaly detection

    Five unsupervised detectors on all 81 NASA SMAP/MSL channels, thresholds fixed without test labels.

    0.733 event F1, LSTM + dynamic threshold (3 seeds). source for Spacecraft telemetry anomaly detection ↗

    Applied ML · time series Complete

  2. PulseCut

    A local-first livestream clipper that finds highlights from chat and audio and renders vertical clips.

    Rust · media tooling v0.1 · verified on Apple Silicon macOS

  3. AI Engineering Auditor

    A self-hosted tool that maps a repository's structure and runs security scanners over it.

    Developer tooling v0.1 public beta

Everything, with dates and stacks

§ 4 · In the open

What the public GitHub record shows.

52 contributions on my GitHub profile

– Snapshot taken

As GitHub’s public profile calendar counts them: commits to default branches, plus issues, pull requests and reviews. Not a commit count.

Each sheet starts at zero and rises by the day’s count on a shared scale. Open a month for dates.

  1. Dec 2025 0 contributions

    No contributions on the recorded days.

  2. Jan 2026 0 contributions

    No contributions on the recorded days.

  3. Feb 2026 0 contributions

    No contributions on the recorded days.

  4. Mar 2026 1 contribution
    • · 1 contribution
  5. Apr 2026 0 contributions

    No contributions on the recorded days.

  6. May 2026 0 contributions

    No contributions on the recorded days.

  7. Jun 2026 0 contributions

    No contributions on the recorded days.

  8. Jul 2026 0 contributions

    No contributions on the recorded days.

  9. Aug 2026 0 contributions

    No contributions on the recorded days.

  10. Sept 2026 0 contributions

    No contributions on the recorded days.

  11. Oct 2026 10 contributions
    • · 2 contributions
    • · 2 contributions
    • · 1 contribution
    • · 5 contributions
  12. Nov 2026 41 contributions
    • · 6 contributions
    • · 2 contributions
    • · 1 contribution
    • · 13 contributions
    • · 5 contributions
    • · 6 contributions
    • · 1 contribution
    • · 2 contributions
    • · 1 contribution
    • · 4 contributions

30 Nov 2025 · 0 contributions

1 – 2 Dec 2026 · 0 contributions

Busiest month
Nov 2026 · 41 contributions
Busiest day
16 Nov 2026 · 13 contributions

Last pushed

GitHub profile

§ 5 · Writing

Notes from the experiments.

The first pieces are being written. Until then, the long-form writing is inside the case studies, starting with how MiniInfer compares with llama.cpp, and the Writing page lists the rest.