Umar Hassan

AI Engineer · Agents · Systems

Umar Hassan

Senior AI/ML Engineer · I ship agents

I ship agents — not slideware.

Production AI across agents, evaluation, inference, ranking, and data curation — built to be measured, not just demoed.

Flagship systems

Six builds that define how I ship AI

Agents, reliability, inference, ranking, data curation, and on-device — each with GitHub source and hard metrics.

Flagship 01

TokenVault — Paged KV Inference Engine

From-scratch LLM serving with paged KV-cache, continuous batching, speculative decoding, and INT8/INT4 quantization — tokens kept in a vault and reused, not recomputed.

  • PagedAttention-style cache + continuous batching with bit-exact tests against a naive oracle.
  • Speculative decoding and quantization paths with documented throughput / latency trade-offs.
  • Built as a readable PyTorch engine for interviews and production-shaped systems design.
PyTorchPaged KVBatchingSpeculative DecodeINT8/INT4
Flagship 02

ReasonRL — RL Post-Training for LLMs

SFT → GRPO vs DPO pipeline with verifiable rewards, reward-hacking guards, and contamination checks for math/code reasoning models.

  • Comparable GRPO and DPO runs with ablations and honest measured vs projected results.
  • Verifiable reward functions and anti-hacking checks so scores mean something.
  • Research-style write-up ready for ML depth interviews.
PyTorchGRPODPORLHFEval
Flagship 03

AgentEval — Agent Reliability Platform

Test harness for multi-step agents with failure taxonomy, LLM-judge calibration (Cohen’s κ), and pass^k reliability — because “it worked once” is not enough.

  • Booking, support, and coding tasks in stateful simulated environments with policy constraints.
  • pass^k + bootstrap CIs and a public leaderboard across models × agent designs.
  • Hybrid failure classifier calibrated to κ≈0.72 against labeled runs.
Agentspass^kFailure TaxonomyJudge Calibration
Flagship 04

PulseRank — Recommendation Cascade

YouTube-style multi-stage ranking: two-tower retrieval → FAISS ANN → DCN-v2 / SASRec, with offline metrics and latency-aware serving.

  • Recall@100 ≈ 0.59 vs popularity 0.30 on MovieLens; serving p99 inside a 50 ms budget.
  • Cold-start, popularity bias, and position-bias corrected A/B simulation.
  • System design doc written as if pitching to a ranking team.
Two-TowerFAISSDCN-v2SASRecNDCG
Flagship 05

SieveLab — Web-Scale Data Curation

Instrumented pretraining-data sieve: language ID, MinHash dedup, FineWeb-Edu-style quality, PII and toxicity — with first-class Urdu support.

  • Every filter reports precision/recall against injected ground truth.
  • Proof experiment: cleaned data trains a stronger tiny LM than raw crawl.
  • Urdu / low-resource languages treated as a first-class design constraint.
MinHashFineWeb-EduUrduPIIToxicity
Flagship 06

EdgeNano — On-Device Urdu↔English AI

Offline speech translation under a hard p99 < 500 ms budget: distillation, INT8, LiteRT/Android path, and an AI-dynamics web demo.

  • ASR 8.2× and MT 22.3× smaller after distill + INT8 vs FP32 teachers.
  • Compositional Urdu grammar so demos never leak English into Urdu.
  • Latency waterfall with device budgets for mid-range phones.
On-deviceINT8DistillUrduLiteRT

Also shipped

Earlier builds that still matter

RAG systems, multi-agent travel planning, conversational LLMs, and computer vision.

01

RAG System + Retrieval Evals

Document Q&A RAG with dense / BM25 / hybrid retrieval bake-offs and cited answers.

View Code
02

TripMate AI — Multi-Agent Travel Planner

LangGraph multi-agent planner with MCP tools, supervisor routing, guardrails, and human-in-the-loop approval.

View Code
03

RAG Book Assistant

PDF Q&A with semantic chunking, embeddings, Chroma persistence, and Streamlit UI.

View Code
04

Mood-Adaptive AI Chatbot

Conversational AI that switches personality modes while keeping session memory.

View Code
05

Sports Player Tracking Pipeline

YOLOv8 + ByteTrack pipeline for stable player IDs in broadcast-style sports video.

View Code

Technical Skills

From AI foundations to Agentic systems

Senior AI/ML Engineer with 4+ years shipping production systems: multi-agent workflows, agent reliability platforms, paged-KV inference, large-scale recommenders, and web-scale data curation — with hard metrics on latency, pass^k, and ranking quality.

01

Languages and Data

Core stack for building and measuring AI systems.

  • Python (Pandas, NumPy, Matplotlib)
  • PyTorch / TensorFlow / Scikit-Learn
  • SQL
  • C++

02

LLMs & Agentic AI

Agents that plan, call tools, and get evaluated for reliability.

  • LangGraph / LangChain
  • MCP tool calling
  • HITL workflows
  • AgentEval / pass^k
  • Prompting & provider APIs

03

Inference · Ranking · Data

The systems layer behind products that feel instant and accurate.

  • Paged KV / continuous batching
  • Two-tower + DCN-v2 / FAISS
  • MinHash dedup / quality filters
  • On-device INT8 / distillation
  • RAG + retrieval evals

04

Deployment and Cloud

Shipping and hosting production AI products.

  • FastAPI
  • Docker
  • AWS / GCP / Azure
  • GitHub
  • Streamlit

Professional Experience

4+ years shipping production AI

End-to-end ownership as a Senior AI/ML Engineer across core ML, LLMs, RAG systems, and Agentic AI workflows.

Senior AI/ML Engineer

Lionic AI Labs · Lahore, Pakistan

Sep 2022 - Present (4 years)

Owned end-to-end delivery of production AI systems — from core ML through LLMs, RAG, and Agentic AI workflows.

  • Built and continuously improved core AI/ML capabilities covering data preparation, model training, evaluation, and production deployment.
  • Designed LLM applications with prompt design, response evaluation, and provider integration for quality, consistency, and latency.
  • Architected RAG systems connecting LLMs with vector databases for context-grounded answers over private documents.
  • Developed Agentic AI workflows with LangChain/LangGraph: planning, tool/API calling, and human-in-the-loop controls.
  • Owned post-release quality — reducing hallucinations, refining retrieval/agent behavior, and scaling with stakeholders.