loss=0.001 · status=converged

I reduce loss functions for a living.

I build production ML systems and low-latency inference, mostly for the quiet satisfaction of watching p99 drop.

2+Years shipping ML
50M+Daily predictions, team platform
42%p99 latency cut (story below)
7Easter eggs on this site
Learn More

About

Model Card: bing-tan-v2.6

Architecture
Human (coffee-powered transformer variant)
Training Data
BSc & MSc Business Analytics @ VU Amsterdam (Computational Intelligence track), 2+ years industry ML
Intended Use
Production ML at scale, especially inference optimization
Fine-tuned On
PyTorch, Kubernetes and a lot of late-night debugging
Hyperparameters
curiosity=0.95, persistence=0.92, coffee_intake=high
Known Limitations
Cannot resist optimizing things that are "fine"
License
Open to interesting problems

I came to ML through business analytics rather than the usual computer science route. My MSc at VU Amsterdam (Computational Intelligence track) had me building deep learning models, but my undergrad is where I learned to ask why a model matters to the business, which plenty of engineers skip. Usually the answer starts with getting it out of a notebook and into production.

My work covers a lot of altitude. At one end there are multi-task transformers serving e-commerce search at 1000 requests per second; at the other, a personal AI app where the entire model fits on a phone and calling a server isn't an option. Both need the same habits from me: I count milliseconds and tokens, and I put the invariants under test.

When I'm not shipping, I teach cloud engineering to TU Delft students and run my house on GitOps. I also build interactive toys that show how this stuff works.

Training & NLP

Multi-task transformers, domain adaptation, hyperparameter search, evaluation on real data

Serving & Infrastructure

Request batching, GKE + Terraform, load testing, latency SLAs, observability

Agents & On-Device AI

LLM agents with tool use, context engineering, hybrid retrieval, on-device inference

How I Think

I don't count a model as done until it's serving real traffic in production.
I read scores on a synthetic eval set as an upper bound, since our classifier lost eight F1 points the moment it met real queries.
Before I blend two scores, I write a test proving they're on the same scale. A comment saying so isn't enough.
I treat terraform destroy as routine cost control. We ran it after every load-test session.
I let deterministic code do the finding and keep the model to narrating what it found.

Tech Stack

ML & NLP

PyTorch PyTorch Lightning HuggingFace ONNX Runtime Optuna

Serving & Infra

Kubernetes Terraform Docker FastAPI Argo CD

Cloud & Observability

GCP Vertex AI BigQuery Airflow Prometheus Grafana Locust

Languages

Python Swift SQL JavaScript

Case Studies

One Encoder, Three Jobs

Search intent classification for a large Dutch e-commerce platform grew into three BERT models: buying intent, brand/creator recognition, and category prediction over roughly fifteen thousand labels. Three models meant three forward passes on every query, at search-traffic volumes.

All three were fine-tuned from the same domain-adapted encoder, and only the top layers diverged. So we composed them into a single system model: one pass through shared layers 0 to 9, branching at layer 10 into three task-specific heads. Each query gets tokenized once and runs through the encoder once, and all three answers come out the other end.

Evaluation is where I got humbled. The model looked great on synthetic held-out sets and then dropped eight F1 points on real labeled queries. From then on, real data dominated our evaluation.

2.5×
Faster Than Separate Models
3
Tasks, One Forward Pass
15,000
Product Categories
Read the full story →

The 150-Millisecond Question

The serving side of that classifier had one non-negotiable: P90 under 150 milliseconds at 1000 requests per second. We split the infrastructure into three Terraform stacks with separate lifecycles: training, serving, and a stress-test cluster whose only job was to attack the serving cluster with Locust. At 1000 RPS the load generator has to be a distributed system too.

The biggest win came from the API process rather than the infrastructure. Collecting requests in an async queue and draining up to 16 of them every 10 milliseconds into one forward pass tripled sustainable throughput on identical hardware. Second place went to torch.set_num_threads(1): PyTorch likes to parallelize even small inferences, and under load those threads ended up fighting each other.

3×
Throughput From Batching
<150ms
P90 at 1000 RPS
60–70%
Cheaper on Preemptible Nodes
Read the full story →

A Second Brain in 8,192 Tokens

This is my first iOS app, a personal AI second brain where the model runs entirely on the phone. There's no API and no server. The only network request the app ever makes is the one-time download of the model itself. The context window is 8,192 tokens on a good device, and everything has to fit in it.

That limit ended up shaping most of the design. Search never touches the LLM; hybrid BM25 + vector retrieval answers in under half a millisecond. A cheap estimator enforces the token budgets, and CI checks it against the real tokenizer. Privacy is a compile-time property: a test scans every source file and fails the build if networking primitives show up anywhere outside the one sanctioned download function.

0.3ms
Keyword Search Latency
8,192
Token Budget, Everything Included
0
Network Calls, Enforced by a Test
Read the full story →

Full write-ups, including the bugs, in the linked posts.

loss epochs MSc @ VU Amsterdam First model in prod One encoder, three jobs Shipped on-device AI

Systems I've Built

Some for clients, some for me, and each one has a write-up behind it.

Receipt-Reading Expense Agent

An AI agent that reads receipt photos with a vision model, checks them against expense policy, and politely declines your Netflix subscription. It gets evaluated with a real test suite, like any other software.

In production
AgentsVision LLMEvals
Read the story →

AI Agents Course

A 2-day hands-on course on building and evaluating AI agents. Designing the agents was the easy part. The hard part, and most of what I ended up teaching, was testing non-deterministic systems live in front of a room.

2 days, hands-on
Google ADKMulti-agentEvals
Read the story →

Home Platform on GitOps

A k3s cluster running Home Assistant, Matter and everything else my house needs. Every change is a git push and Argo CD handles the rest, which means my thermostat has a deployment pipeline.

Prod uptime, at home
k3sArgo CDHome Assistant
Read the story →

Self-Terminating Minecraft Server

A cloud Minecraft server that checks its own player count and kills itself when nobody's online. It runs on preemptible VMs set up with Terraform, and the world persists between suicides.

€0 when idle
TerraformGCPPreemptible VMs
Read the story →

Writing

Technical write-ups on ML systems and infrastructure, and what I've learned running them in production.

Contact

My inference endpoint is always warm. Write to me about ML systems or an interesting problem, or just send your hot take on batch normalization.

Say hello ↗