chinmay18.com

Projects · every number with its source

Thirteen projects,
each with its sources

From a production watch-party service to one-day prototypes. Each card's numbers trace to a committed file or a live page, and each card says what the project does not do.

All projects

Mustard Watch Party

systems · live

Video synchronization for watch parties: NTP-style clock estimation over the socket acknowledgment, predictive drift control, room state in Redis behind atomic Lua scripts, and a control protocol model-checked in TLA+. Multi-instance-capable (exercised in a three-instance lab and nightly CI; production runs one backend instance). Go and Rust relays exist as conformance studies.

48 ms P95 steady-state drift · 3 Chrome clients · ~300 ms simulated RTT · 240 splayer-reported, single committed run · docs/measurements/servo/S2-overhauled-servo-mse76wbj
TypeScriptNestJSReactSocket.IORedisPostgreSQLTLA+GoRust

Fused residual-add + normalization kernels for PyTorch with FP8 outputs and a deterministic backward, registered as custom ops so torch.compile keeps the graph whole. A100 and H100 results are committed, including the configurations where PyTorch wins; v0.6.0 adds a register-resident few-row kernel and a warp-per-row dynamic-FP8 path for Hopper.

1.04–1.76× vs the torch.compile composite · RMSNorm→FP8 · A100 · FP16 · kernel time4.9–7.2× vs eager; H100 (v0.5.0) shows 0.70–1.20× and makes no claim; v0.6.0 few-row kernel 0.62–0.85× of v0.5.0 kernel time on an H100 NVL, per-op medians · benchmarks/results/2026-08-25_a100-40gb_v050_ops and 2026-10-29_h100-nvl_v060_fastpaths
CUDAC++PyTorchtorch.compileFP8pytest

PyTorch AutoTune

gpu · pypi

A training autotuner that times precision, compile mode, memory format and fused-optimizer configurations on the target model and batch, keeps the fastest, and never returns one slower than the baseline. Version 2.0 on PyPI; the 1.0 marketing numbers were retracted in the changelog.

2.7–6.7× training-step speedup vs PyTorch-default FP32 eager · A100ResNet-50 2.71×, ResNet-18 3.84×, 6-layer Transformer 6.65× (2.55× vs TF32 eager) · benchmarks/results/2026-08-25_a100-40gb_v200
PythonPyTorchCUDA graphsAMPPyPI

infer-determinism

gpu · two runs

A harness that finds where LLM-inference GPU kernels stop being deterministic or batch-invariant. It compares raw output bits for a fixed probe request under batch-size, position, padding, split-KV and CUDA-graph perturbations. The first H100 NVL run covered seven targets (PyTorch, vLLM, FlashInfer, vLLM FlashAttention, fused MoE) and recorded two candidates; one, FlashInfer CUDA-core decode with disable_split_kv=True, was already reported upstream as flashinfer#7981. A second H100 run added GQA, head dimensions 128 and 256, sliding windows and FP8 KV cache. It found no divergence in vLLM FlashAttention with num_splits=1 or FlashInfer tensor-core decode with disable_split_kv=True, and one low-severity candidate: FlashInfer prefill at head dimension 128 gives different bits under CUDA-graph replay than in eager mode.

No divergence in the runnable torch_sdpa backends, vLLM's direct batch-invariant kernels, fused MoE, or FA2/FA3 with num_splits=1 · 3 candidates over 2 runs · H100 NVLone GPU; run 1 used head dimension 64; an equal comparison covers only the recorded case and perturbation · results/2026-11-06_h100 and results/2026-11-09_h100
PythonCUDAPyTorchvLLMFlashInfer

spsc-latency

systems · C++20

Four bounded single-producer/single-consumer ring buffers written from scratch: sequentially consistent indices on one cache line, acquire/release on one line, acquire/release on separate lines, and separate lines with a cached copy of the peer's index. A harness measures throughput and round-trip latency over a sweep of capacities and payload sizes, with stress and ThreadSanitizer tests of 100 million transfers per design.

cached design: 133.8 M items/s, p99.9 140.5 ns one way · pinned Threadripper PRO 3995WX8-byte messages, capacity 1024, median of 3 trials; shared rented host, clock overhead not subtracted; an unpinned Apple M2 Pro run is also committed · results/x86-threadripper-3995wx
C++20AtomicsLock-freeTSan

orderbook-latency

systems · C++20

A single-instrument limit order book with two interchangeable engines: a std::map baseline and a preallocated engine that does not allocate on the hot path. Integer prices, no floating point in matching. A differential test replays 500,000 messages through both engines and checks they agree, under normal and ASan/UBSan builds. Single-threaded engine on synthetic order flow, not an exchange gateway.

fast engine: p99.9 281 ns vs 471 ns, 20.8 vs 10.7 M messages/s batched · pinned Threadripper PRO 3995WXdefault stream, median of 3 repeats, RDTSCP timer pair (p50 40 ns) not subtracted; shared rented host; an unpinned Apple M2 Pro run is also committed · results/x86-threadripper-3995wx
C++20Low latencyDifferential testingASan/UBSan

FastMQA

gpu · negative result

A FlashAttention-style Multi-Query Attention CUDA kernel for PyTorch: shared-memory tiling, online softmax, FP32 forward, checked against a float64 reference. It beats my earlier kernel by 17–20× and still loses to PyTorch's tensor-core SDPA.

0.25–0.40× the speed of F.scaled_dot_product_attention FP32 · A100 · max error vs float64 ≤ 8.9e-7benchmarks/results/bench_2026-08-20_210834_a100-sxm4-40gb.json
CUDAC++PyTorchpytest

Medical Prescription OCR

ml · hugging face

A Donut vision-encoder-decoder fine-tuned to transcribe synthetic handwriting-style prescriptions, published on Hugging Face as a model and a 1,000-image dataset, with a Gradio demo that gates OCR behind zero-shot prescription classification. Not evaluated on real handwriting.

7,301 all-time model downloads · 121 in the last 30 days · 11,461 all-time dataset downloads · 25 GitHub starshuggingface.co/chinmays18 · fetched 2026-11-29 · no accuracy figure is quoted because none is committed
PyTorchTransformersDonutLightningGradio

API Orchestrator

product · live

A self-hosted API development platform: collections and environments, mock servers, rule-based OpenAPI governance, natural-language test generation and a drag-and-drop workflow builder, with a live demo and a published VS Code extension. The AI-assisted analysis is optional.

307 REST endpoints on a fresh local install · 97 unit tests · 447 VS Code Marketplace installsREADME measured-numbers table, 2026-08-25 (the live demo's openapi.json exposes 265 path/method pairs) · Marketplace gallery API, fetched 2026-10-07
FastAPIReactSQLAlchemyWebSocketsDockerTypeScript

ChatGPT Spark

product · chrome web store

A published Chrome extension that adds real-time prompt coaching and searchable conversation memory to ChatGPT, backed by a FastAPI service with Supabase storage and OpenAI embeddings, plus a React dashboard. Built over one week in July 2025 and still live.

4.9 / 5 from 12 ratings · 23 users · listing liveChrome Web Store, fetched 2026-10-07 · small sample
Chrome MV3FastAPISupabaseOpenAI APIReactTypeScript

3D Point Cloud Viewer

systems · one-day build

A C++17 / OpenGL 3.3 viewer with an octree for frustum culling and distance-based level of detail, an XYZ-RGB loader, voxel downsampling and a free camera. Renders generated files of up to 2 million points. The frame-rate figures it used to advertise measured CPU submission time only, so none are repeated here.

Octree frustum culling + LOD · files up to 2 million points · CMake build verified 2026-10-07no frame-rate claim; the old 858 FPS figure came from a 100,000-point run
C++17OpenGLGLSLCMake

Student Scheduler

systems · one-day build

A Flask API that builds a conflict-free timetable for 500 synthetic students with Google OR-Tools CP-SAT: sections, capacity, time conflicts, a 3–5 course load and prerequisites as hard constraints, with a preference-weighted objective. The solver runs under a configured 60-second cap, so the schedule is feasible rather than proven optimal.

500 synthetic students · 1,880 assignments · 0 conflicts by constructionsingle committed run, full_metrics.json; not reproducible from the committed seed (capacities 30–60 in seed_data.py vs 150–250 in the results) · zero conflicts is a hard constraint, not a result
PythonOR-ToolsFlaskPostgreSQLDocker

telcospace

systems · prototype

A full-stack prototype that detects walls in uploaded floor plans with OpenCV and runs a genetic algorithm over a physics-based RF path-loss model (free-space loss, ITU-R P.1238 indoor model, material attenuation, knife-edge diffraction) to propose Wi-Fi router placements and render coverage heatmaps.

25 router models in the seeded catalog · 971-line genetic algorithm · 1,232-line RF propagation moduleprototype: no tests, CI or deployment, so no accuracy or coverage figure is quoted; of ~17k Python lines, ~13.5k are alternative wall detectors the default mode never runs
FastAPICeleryOpenCVPostGISReactVite

Not listed: gradient-cache, multi-ai-browser-extension, llm-knowledge-assistant and marketing-attribution-optimizer. They remain public on GitHub, but their headline claims did not survive a check against what is committed (one has never compiled), so they are not presented here as work.