Distributed systems and ML infrastructure, implemented from the primary literature. I like the parts where a claim can be checked, so most of these repos ship a report whose every number came out of a run rather than out of a sentence.
Portfolio · USACO Gold Division · Peer-reviewed NLP paper published in NHSJS 2025
Research: HNSW connectivity paper accepted at IEEE ICCE 2027 · CP-SAT degree-planning paper accepted at AAI 2026 · all papers and their status
| what it is | the number that matters | |
|---|---|---|
| llm-inference-webgpu | Qwen2.5-0.5B end to end on WebGPU: safetensors loader, BPE tokenizer, attention kernels, int8 and int4 quantization. No PyTorch, no transformers, no tokenizer library |
Still loses to ONNX Runtime at prefill, 4.2–4.5x in the same session; decode now beats it, 53 ms vs 73–83 ms per step, on named hardware |
| tensor-compiler-webgpu | A tensor compiler from scratch: static-shape IR, reverse-mode autodiff as a graph transform, a float64 reference, every op lowered to WGSL | The GPU matches the float64 reference in 252 of 252 direct per-op tests and 5,318 of 5,318 fuzz runs, and caught 7 of 7 injected kernel bugs |
| toy-compiler | minic, compiled: lexer, parser, type checker, SSA IR, four optimization passes, linear-scan register allocation and a bytecode VM, no dependencies | 100,000 random programs, 0 disagreements with the reference interpreter |
| fluid-sim | Incompressible Navier-Stokes on WebGPU compute shaders, MAC staggered grid, five pressure solvers | Numerical viscosity measured at ν_num = 5.79e-4, 2.9% of the physical ν |
| ml-infra-platform | A Raft engine, an HNSW index and a training framework composed into one platform, driven from outside as read-only dependencies | First cross-layer bug: both components correct, every replica crashed |
| distributed-training-framework | Data-parallel SGD, ring all-reduce and parameter server, six invariants checked every step | 1,960 checked steps, 22 workers killed mid-step, worst gradient error 8.9e-16 |
| raft-chaos-testing | Per-link drop and delay injection against a real Raft implementation | 4 properties checked every tick (3 Raft safety properties plus read consistency): 6 fault scenarios, 0 violations in 2,173 ticks |
| vectordb-hnsw | HNSW from the Malkov & Yashunin paper, in NumPy. No FAISS, no hnswlib | recall@10 = 1.000 at n = 8,000; 3.3x faster than a vectorized NumPy scan (19x vs a Python loop) |
| mcp-memory-server | Local-first persistent memory for Claude, HNSW over on-device ONNX embeddings | Zero network calls after the model is cached once |
Also: raft-kv-store (Raft from the paper, tested by killing the leader over real TCP sockets), mcts-code-reasoner (test-time tree search with a budget-discounted UCB1 and an RLIMIT sandbox), crisis-nlp-demo (attributions in closed form, so they are exact rather than sampled), and flightpath-scheduler (course scheduling as an NP-hard CSP, CP-SAT plus a dependency-free fallback).
From scratch means from scratch. The consensus protocol, the HNSW graph, the FFT, the multigrid V-cycle and the all-reduce are written here, not imported. Where a library would have done it, the repo says so and explains what implementing it taught.
The measuring code gets tested too. Three of the four bugs written up on fluid-sim's report were in the validators rather than the solver. A check that has never been observed to fail proves nothing, so the validators get deliberately broken to confirm they catch what they claim to.
Negative and partial results get published. fluid-sim's enstrophy cascade comes out at -4.529 against a theoretical -3, and the report says so and diagnoses why. Four of the six findings on distributed-training-framework's report are defects in its own harness, two of which would have produced a confidently wrong result. They are on the report rather than quietly fixed.
Python · Java · JavaScript · R · SQL · NumPy · WebGPU · asyncio
Every graphic on this page is drawn by a scheduled action in this repository, straight from the GitHub GraphQL API, once a week, committing only what changed. Nothing loads from a third-party server, so nothing here can rate-limit or go dark. The SVGs animate with SMIL, since GitHub strips scripts, and carry an inlined JetBrains Mono subset, since it also strips CSS. Language totals cover public, non-archived repositories only. Adapted from andriidrok1.