About Me
AI / Software Developer based in Nairobi, Kenya. I build and deploy self-hosted LLM systems: fine-tuning, quantization, RAG and multi-agent pipelines. At Supreme AI I build tax and compliance systems end to end, and most of the AI work comes to me.
I also build AI tools independently: TradingAgents (a 13-agent NSE trading framework) and an LLM-powered financial auditor. MSc Computer Science from DeKUT with 3 IEEE publications, and now a Tutorial Fellow there, teaching Data Science. Full stack: Python, LangGraph, FastAPI, React, Next.js.
Interests: agentic and multimodal agentic systems, running agents in resource-constrained environments and on edge devices, and applying AI/ML in finance, education and health.
LLM Systems
Backend
Frontend
ML Foundations
GitHub Activity
Experience & Education
AI / Software Developer
Supreme AI, Australia (Remote)
We build tax and compliance software for the Australian market: CGT Brain (capital gains tax), SMSF, FBT and AML/CTF systems. Each developer takes a part and builds it end to end, backend to frontend. I'm also the one the team consults first on AI, and most of the AI work comes to me:
- Self-hosted LLMs, mainly the Qwen family: fine-tuning, quantizing and serving them with vLLM, and monitoring how they are used.
- RAG systems and AI agents.
- Deploying video generation models on our own GPUs.
Tutorial Fellow, Data Science
Dedan Kimathi University of Technology (DeKUT)
I teach Data Science students, including Computer Organization and Architecture for first-years, and built the virtual lab they use for their assessed labs and final project.
Master's Degree, Computer Science
Dedan Kimathi University of Technology (DeKUT)
Research focus: Medical imaging with deep learning, NLP topic modeling, financial health assessment using ML. 3 IEEE publications.
BSc Information Technology
Dedan Kimathi University of Technology (DeKUT)
Second Class Upper Honours.
Projects
Computer Organization and Architecture Virtual Lab
A 3D computer that first-year Data Science students take apart in the browser: they assemble a PC part by part, open up the CPU and memory, and watch fetch-execute run on the bus. I built it for the students I teach, and it now runs their assessed coursework.
- In use: five auto-marked labs and a final project, with every result sent to a marks sheet. 84 students submitted Lab 1 before its deadline.
- Design: each student's final project is drawn from 3.2 billion task combinations, keyed to their registration number, so no two students get the same tasks.
TradingAgents for the NSE
A multi-agent LLM trading system for the Nairobi Securities Exchange, adapted from the TradingAgents paper (UCLA/MIT). Four analyst agents report on prices, fundamentals, news and sentiment, bull and bear researchers debate them, and a trader and risk managers make the decision.
- What changes on the NSE: fees of about 2.34% per side mean a stock must move about 4.68% to break even, so the agents are built to ignore the 1 to 2% signals that pay in US markets. The backtester also models T+3 settlement and thin daily volume.
Based on arXiv:2412.20138
LLM Auditor for Kenyan Financial Statements
Reads a Kenyan company's financial statements, retrieves the relevant IFRS standards, and returns a structured audit: an overall judgment, the errors found, and the standard each one breaks. Tuned for Kenyan filings under CMA rules, NSE listing rules and the Companies Act 2015.
- Evaluation: implements the paper's five-stage evaluation, scoring each stage with its own metric, such as exact match for the audit judgment.
Based on arXiv:2506.17282
My Publications
Selected research contributions in data science and technology for development.
Automatic Detection and Classification of Gastrointestinal Pathological Findings using a Hybrid ResNet50-CNN from Endoscopic Images
Kinyanjui, Samson, Juliet Moso and Patrick Gikunda.
2025 IST-Africa Conference (IST-Africa), 2025.
Topic Clustering of COVID-19 Medical Literature Using LDA and K-Means: A Case Study
Kinyanjui, Samson and Benson Kituku.
IEEE International Conference on ICT4DA, Bahir Dar, Ethiopia, 2025.
Financial Health Assessment for Households in Kenya
Kinyanjui, Samson, Felix Lopuran, Peter Kimanga, Edna Mugoh, Dennis Kiprotich, and Patrick Gikunda.
IEEE International Conference on ICT4DA, 2024.
Latest from the Blog
AI/ML paper breakdowns, implementations, and research notes.
Part 10: Scaling AI Systems
The series finale: concurrency patterns, caching at every layer, structured logging, monitoring, graceful degradation, and a shipping checklist.
Read moreRunning a 22B Audio-Video Diffusion Model on a Single GPU
Fitting a 22B audio-video diffusion model into a GPU budget shared with an LLM stack — FP8 quantisation, tiled VAE decode, subprocess VRAM isolation.
Read moreDesigning a Consumer-Tier AI Product That Degrades Gracefully
The default LLM product pattern propagates inference failures to the user. For consumer purchase flows, that's the wrong default. Here's the inversion.
Read moreBuilding a Hybrid-RAG Assistant That Doesn't Hallucinate Statute
A chat assistant grounded in ~1,600 chunks of primary legislation — hybrid retrieval, careful chunking, and the parser bug that taught me to validate chunks first.
Read moreGenerating Long-Form Compliance Documents with a Single LLM Call Pipeline
Why big-prompt generation breaks at scale, and how I rebuilt my document generator as a pipeline of small typed LLM calls.
Read morePart 9: Knowledge Distillation
Distil a fine-tuned 4B teacher into a 1.5B student via synthetic data — with quality-control filters and an honest eval against the teacher.
Read moreContact Me
Let’s connect and build something great. I’d love to hear from you!