I build and study machine learning systems. Right now I train small LLM agents with reinforcement learning and test whether a model that predicts its environment better also acts better. Before that I worked mostly on ML for network security (encrypted traffic classification, intrusion and anomaly detection) and on the PySpark and PyTorch pipelines that ML runs on.
I like reimplementing papers to see what holds up, and I write about what I find at blog.munhou.com.
delta_world is a local simulator of a Databricks workspace, a set of Delta Lake tasks with verifiers that check the final table state, and a pipeline that trains Nemotron 3 Nano 4B on those tasks with GRPO and with ECHO, which adds a loss on predicting tool outputs.
- ECHO models predicted the facts in tool outputs 0.64–0.77 nats per token better than the GRPO model on held-out episodes.
- They also solved about 0.2 more of the tasks (confidence interval +0.12 to +0.29).
- Most of that gap came from one task family, so a better world model did not simply make a better agent.
delta_bench runs released open models on the same tasks, with no training, and scores each one on acting and on predicting tool outputs. Among Inkling 2 Mini, Qwen3.8-27B and Nemotron 3.5 Lightning, the order reversed: Lightning predicted best and solved the fewest tasks, Qwen predicted worst and solved the most, and Inkling came between them on both.
Write-ups: results · lessons from the training run · open models compared
| Project | |
|---|---|
| Deep-Packet | PyTorch implementation of Deep Packet, a CNN that classifies encrypted traffic by application and traffic type. Write-up |
| LuNet | PyTorch implementation of LuNet, a deep neural network for network intrusion detection. |
| GEE | A variational autoencoder for network anomaly detection, trained on unlabeled flow features built with PySpark. Write-up |
| MIDAS | My fork of MIDAS for streaming anomaly detection on graphs, with a pip-installable Python package and an example on real data. Write-up |
| Project | |
|---|---|
| ood-knn | Out-of-distribution detection with kNN distances over ResNet-18 embeddings, using FAISS. |
| rendezvous-arch | Stream-first model serving with production, canary and decoy models, built on Pulsar and Elasticsearch. |
| petastorm-demo | Feeding Parquet files written by PySpark into PyTorch training with Petastorm. |
| Drug-Listings-Dataset | A cleaned CSV of drug listings from eight darknet markets, extracted from Gwern's archives. |
Older from-scratch implementations of classic algorithms: FP-Growth (Python), C4.5, DBSCAN and PrefixSpan in Java.



