Skip to main content

Samson Kinyanjui (Sammainah)

AI / Software Developer

I build self-hosted LLM systems: fine-tuning, quantization, RAG and multi-agent pipelines. Currently building compliance and tax engines for the Australian market at Supreme AI. Based in Nairobi.

View Projects
Samson Kinyanjui

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
Fine-Tuning (LoRA/QLoRA) Quantization (GPTQ/AWQ/GGUF) vLLM RAG Multi-agent (LangGraph) Synthetic Data Generation Model Deployment
Backend
Python FastAPI Flask PostgreSQL Docker
Frontend
Next.js React JavaScript
ML Foundations
TensorFlow LangChain
Download Resume
GitHub Activity
GitHub Contribution Graph

Experience & Education

2025 – Present

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.
Sep 2026 – Present

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.

Oct 2023 – Jun 2026 · Graduated 12 June 2026

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.

May 2019 – Apr 2023

BSc Information Technology

Dedan Kimathi University of Technology (DeKUT)

Second Class Upper Honours.

Projects

3D virtual computer with its chapter menu and labs

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.
Three.js WebGL Teaching
TradingAgents architecture

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.
LangGraph FastAPI Next.js

Based on arXiv:2412.20138

LLM financial statement auditor

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.
RAG FastAPI Next.js

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.

DOI: 10.23919/IST-Africa67297.2025.11060502

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.

DOI: 10.1109/ICT4DA67218.2025.11282626

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.

DOI: 10.1109/ICT4DA62874.2024.10777274

Latest from the Blog

AI/ML paper breakdowns, implementations, and research notes.

10-part series

The AI Engineer's Path

Python fundamentals through to a self-hosted, fine-tuned, quantized RAG service. Each part builds on the last.

View series
May 3, 2026 Tutorial

Part 10: Scaling AI Systems

The series finale: concurrency patterns, caching at every layer, structured logging, monitoring, graceful degradation, and a shipping checklist.

AI Engineer Path Scaling Production
Read more
May 3, 2026 Deep Dive

Running 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.

Diffusion FP8 Blackwell
Read more
May 3, 2026 Implementation

Designing 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.

AI Products System Design LLM
Read more
May 3, 2026 Implementation

Building 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.

RAG Qdrant Hybrid Retrieval
Read more
May 3, 2026 Implementation

Generating 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.

LLM vLLM LoRA
Read more
May 2, 2026 Tutorial

Part 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.

AI Engineer Path Distillation Synthetic Data
Read more

Contact Me

Let’s connect and build something great. I’d love to hear from you!