Skip to main content
AboutWorkSkillsExperienceWritingContact

Bhargav Kr Nath

Data Scientist / Machine Learning Engineer

Building predictive models on millions of real-world records, seamlessly bridging the gap between raw data pipelines and deployed ML systems.

About me

Patterns first. Precision always.

I am Bhargav Nath, a Data Scientist and Machine Learning Engineer with six years of programming experience, including a year and a half building production ML systems. My background spans high-impact forecasting, business experimentation, and data pipeline architecture, as well as low-level systems engineering with custom CUDA kernels and Rust engines.

Engineering decisionsacross 7 shipped projects

Every system is a series of trade-offs.

A running log of calls made under real constraints, what got kept, what got killed, and why.

decision_log.logauto
ArchitectureShippedPageForge

On-demand paged KV-cache over HuggingFace's fixed pre-allocation

Context

HuggingFace's default KV-cache commits a fixed max_seq_len budget the moment a sequence starts, 18.87 MB per GPT-2 sequence, held for its entire life regardless of how many tokens it actually generates.

Trade-off
HF DynamicCache's lower per-step latency, no gather/scatter dispatch neededA from-scratch Rust free-list allocator and CUDA gather/scatter kernels that page memory in fixed blocks and reclaim it the instant a sequence ends
Outcome

8x less VRAM at 32 concurrent sequences (603.98 MB to 75.50 MB) and 424 vs 53 sequences served per GB, at a measured and openly reported +33% P50 / +16% P99 latency cost against HF's real DynamicCache.

Open source

Apple trusted it enough to merge it.

A production correctness bug in Apple's on-device ML optimization stack, found, fixed, reviewed, and merged.

apple/coreai-optimization#71
MergedAug 21, 2026

fix(quantization): align shared-weight QAT schedule owner with dtype (graph mode)

Fixed a bug where a weight shared across modules could be quantized with one module's precision setting while following a completely different training schedule, a subtle correctness issue in Apple's on-device model optimization pipeline.

+115−19·3 files changed

"Thanks for contributing to fix this issue! Changes look good to me."

u-simha, Apple (PR reviewer)

View the merged PR
Selected work9 real, shipped projects

Systems that ship, not just notebooks.

Browse all 9 project case studies
00
00

Criteo Uplift

ML SystemsLive

A 14M-row randomized ad experiment that clears every statistical bar and still loses money, until an X-Learner and a profit-aware bandit find who to actually target.

13.98MRows processed
View case study
01
01

PricePoint Dynamics

ML SystemsLive

A 9.5M-row UK supermarket price pipeline rebuilt from a broken prototype into a forecasting model, an explainability layer, and a live dashboard.

9.5MRecords analysed
View case study
02
02

Customer Intelligence Platform

AnalyticsLive

A 109M-event e-commerce behavioral pipeline built to run on a laptop: DuckDB and Polars instead of a warehouse, RFM segmentation, a propensity model, and a dashboard, then rebuilt for reproducibility after two silent non-determinism bugs surfaced under audit.

97%Memory reduction
View case study
03
03

Custom CUDA Kernels

Systems Engineering

12 hand-written CUDA kernels for LLM, MoE, and RAG workloads, wrapped in Rust and exposed to PyTorch as zero-copy ops, three of them proven inside a real Llama-3-8B block.

12CUDA kernels
View case study
04
04

PageForge

Systems EngineeringLive

A from-scratch Rust and CUDA reimplementation of vLLM-style paged KV-cache memory: page GPU memory on demand instead of pre-allocating the worst case, benchmarked against HuggingFace's own cache.

8x lessVRAM, 32 seqs, step 50
View case study
05
05

Andria Systems

ML Systems

An institutional-grade SEC 13F research pipeline audited by actually running it on 120M real filings: 12 real bugs found and fixed, including a signal engine that could not run at all, then re-run for real, honestly-reported results.

120.2MReal SEC filings ingested
View case study
06
06

FinSight-Alpha

AI EngineeringLive

A LangGraph agent that plans, retrieves, and reasons over SEC filings, then checks its own draft for hallucination before answering, engineered to survive Groq free-tier rate limits without falling over.

3Self-correction loops before forced answer
View case study
07
07

EMPAS

ML Systems

A genetic algorithm searches 3.1x10^10 layer-wise quantization configs for a real LLM, then checks its own proxy against real GPU hardware instead of assuming it works.

3.1x10^10Search space
View case study
08
08

Fitness Tracker Analysis

AnalyticsLive

A 358,497-row PySpark batch pipeline and three scikit-learn models behind a Streamlit dashboard, audited by actually running the shipped models: the dashboard's headline accuracy numbers trace to a model that was never deployed.

358,497Records processed
View case study
My data-to-decision workflow

How I take data from raw input to a reliable decision.

The same six stages on every project, the tools I reach for at each one, and the principles that keep the result honest.

$ trace --workflow --stages=6

Ingestion

Raw input, checked at the door

Exploration

Understand it before shaping it

Features

Inputs a model can rely on

Modelling

Baseline first, then earn complexity

Evaluation

Results that survive scrutiny

Delivery

From score to operated decision

Stage 01 · Ingestion

Bring external data into the system and establish that it can be trusted before anything downstream depends on it.

Tools
PythonPolarspandasSQLDuckDBPydantic
Principles
  • Data contracts

    Expected schema, types, and value ranges are defined and enforced at the point of entry.

  • Validation before processing

    Completeness, uniqueness, and consistency are checked before any transformation runs.

  • Lineage and provenance

    Every dataset carries a record of its source and how it was collected.

  • Reproducible ingestion

    Identical inputs and parameters produce identical output, and interrupted loads re-run safely.

The engineering journey

Every version shipped a better engineer.

A running record of the roles and coursework behind the work, what each one built, not just when it happened.

$ git log --reverse --oneline

v1.0.0
Jul 2020 to Nov 2021Guwahati, IndiaEXPERIENCE
v1.1.0
Aug 2020 to Jun 2024IndiaEDUCATION
v1.2.0
Jul 2022 to Aug 2022Guwahati, IndiaEXPERIENCE
v1.3.0
Jul 2023 to Aug 2023Regional HQ, IndiaEXPERIENCE
v2.0.0HEAD
Sep 2024 to Nov 2025UKEDUCATION

Advanced machine learning, predictive modelling, data mining, and big data architecture, weighted toward evaluation and deployment over model fitting.

99.91%
mean CV accuracy, Task Fingerprint model
3 tasks
aiming, prehension, visual-illusion
Added
  • ·Advanced ML: supervised and unsupervised methods, model selection under cross-validation, regularisation and bias-variance, class imbalance, and interpretability.
  • ·Applied statistics: hypothesis testing, experimental design, confidence intervals, and significance versus practical effect size.
  • ·Data mining at scale: distributed computation, out-of-memory datasets, and batch-versus-streaming trade-offs.
  • ·End-to-end pipelines, real-time analytics, and MLOps: reproducibility, experiment tracking, model versioning, monitoring.
Shipped
  • ·MSc dissertation classifying motor and grip strategies from 3D motion-capture data (PCA and clustering for strategy discovery; Random Forest and XGBoost classifiers). Built a leakage-aware pipeline with subject-level GroupKFold, removed features encoding final hand positions after diagnosing inflated accuracy, and used SHAP for interpretation. A cross-dataset 'Task Fingerprint' model reached 99.91% mean CV accuracy across aiming, prehension, and visual-illusion tasks.
  • ·Coursework projects from raw data through cleaning, feature engineering, baseline comparison, and error analysis, written up around whether the method worked.
Writing

Thinking, written down properly.

ESGFeb 2026

ESG in the Age of AI: Why the Stakes Have Never Been Higher

Where AI's energy costs, bias risks, and accountability gaps actually show up inside a company's ESG obligations.

“ESG for AI isn't a compliance checkbox. It's risk management for a system you don't fully control.”

3 min
MLDec 2025

Beyond the Hill: The Modern Algorithm's Quest for Global Optima

Why most AI algorithms settle for 'good enough' instead of the best possible answer, and five techniques built to escape that trap.

“A local optimum isn't a wrong answer. It's a comfortable one, which is worse.”

3 min
AINov 2025

The Evolution of Artificial Intelligence: From Symbolic AI to Deep Learning

How AI moved from rule-based symbolic systems through statistical machine learning to the deep learning and foundation models running today.

“Every 'breakthrough' era in AI was really just yesterday's rejected idea, revisited with more compute.”

3 min
Contact

Let's build something.

Open to ML engineering and applied research roles.

Leeds, UK·Usually replies within 24h
GitHubLinkedInEmail

or press ⌘K → Copy email address

HomeProjectsAboutExperienceWritingContactGitHubLinkedIn
© 2026 Bhargav Kr Nath