

Keras on PyTorch: compiled generation 11.6x faster
Traced why Keras on PyTorch ran about 9x slower than plain PyTorch, and merged the fixes upstream, one root cause each.
Work
The strongest work sits at the top of each area as cards; everything else is one line below it. Some cards open into a full case study: problem, approach, results.
Big models made to fit and run fast on phones, NPUs and one GPU, and the frameworks that ship them.


Traced why Keras on PyTorch ran about 9x slower than plain PyTorch, and merged the fixes upstream, one root cause each.
Served a 181 GiB mixture-of-experts LLM from one 96 GiB GPU and took decoding from 10.8 to 15.0 tokens/s shipped, 16.5 at peak.
Built the LiteRT export path in Keras and KerasHub: a trained model to a phone-ready file in one call, on TensorFlow and PyTorch.
Wrote the end-to-end UI test suite for XProf, the open-source ML profiler, with 107 browser tests and a side-by-side check of two builds.
Implemented Llama 3.1 in KerasHub and fixed Gemma 3 bugs, including a preprocessor crash across Gemma 3, 3n and 4.
An Android app and guide that run KerasHub models on the phone with LiteRT, from one export call to six working screens.
Made deep-learning models run 3x faster on the Snapdragon NPU and DSP, and cut memory bandwidth 75% with quantization-aware training.
Built the benchmarking system for all Keras and KerasHub models: automated weekly runs across GPU and TPU, the TensorFlow, JAX and PyTorch backends, presets and batch sizes, to catch performance regressions.
Fixed TPU attention, N-D attention inputs, nested weight saving, masks, call-context leaks and ONNX export of models over 1.5 GB. · Google · Merged
Designed model-parallel layout maps for KerasHub LLMs, from Gemma and Qwen to Llama and Mixtral; proposed upstream, not merged. · Google · Proposed, not merged
Led the migration of a major internal customer from legacy Keras to Keras 3, with backward compatibility and performance parity. · Google · Built
Fixed the layers that kept KerasHub models such as ESM, PARSeq and Flux from exporting to LiteRT. · Google · Merged
Optimized models for the Exynos NPU with TensorFlow Lite, for 2.5x faster inference. · Samsung R&D Institute India · Built
Built one call from a KerasHub LLM to a LiteRT-LM bundle with tokenizer and prefill and decode signatures; proposed upstream, not merged. · Google · Proposed, not merged
Gemma running fully on an Android phone with TFLite, LiteRT and LiteRT-LM. · Independent · Published
Seeing on the device: damaged barcodes, faces, attention, documents.
Read 90%+ of damaged barcodes correctly on its damaged test set, where a commercial scanning SDK read 70%, with models trained on 10M+ synthetic images.
A multi-face recognition engine at 99.2% accuracy and 30+ FPS on edge devices, with face search cut from 1,200 ms to 87 ms.
Redesigned a generative inpainting feature, object removal and image completion, so its models fit NPU and DSP latency budgets for the Snapdragon Summit demo.
Detects whether a person at a screen is attentive or distracted, at 87% accuracy; checks across frames cut false alarms by 40%.
An anti-cheat exam platform used for 2,000+ employees across 100+ tests, with 60% less administrative overhead.
An offline-first design for reuniting lost people at the Kumbh Mela, with face and body re-identification, an opt-in gallery and human-verified matches. · Independent · Research
A notebook and a synthetic shape dataset that teach box regression and classification from scratch. · Independent · Published
Detection, tracking and segmentation pipelines in C++ with INT8 quantization and pruning, and ML inside the native camera stack for a voice-controlled camera assistant. · Qualcomm · Built
Removes shadows from document photos with adaptive thresholding and iterative shading and reflectance decomposition, without deep learning. · Independent · Published
A prototype that shifts the eyes toward the camera in video calls, using facial landmarks and geometric transforms. · Samsung R&D Institute India · Prototype
Real-time classification and detection on Android at 25+ FPS with quantized MobileNet and EfficientNet models through NNAPI. · Samsung R&D Institute India · Built
Trained CycleGAN models in PyTorch for image-to-image translation and avatars, deployed with TFLite, and generative face models with StyleGAN and StarGAN. · Samsung R&D Institute India · Built
Prototyped shadow removal and noise reduction for document scanning on phones. · Samsung R&D Institute India · Research
Reading motion and touch: falls, crashes, and who is holding the phone.
Replaced a deep-learning drop detector of millions of parameters with sensor features and a model of under 22, saving over 95% of the power.
Told which hand holds a phone, right 90%+ of the time over 30+ seconds, and who holds it, without deep learning.
A phone that detects a car crash from its sensors and sends an SOS to chosen contacts.
An independent research lab, and the tools built along the way.
Automated trading on Indian stocks, where a strategy counts only if it beats an index fund after real costs and tax.
Shows which open-source projects reply to, review and merge a stranger's pull request, so contributors spend their effort where it will land.
Runs local LLMs on one GPU workstation, switching models with one command behind one OpenAI-compatible endpoint, with a live dashboard.
Drops a GPU's power limit the second the UPS reports battery, never fails open, and logs every mains cut. · Independent · Published
Static checks that find flaky pytest tests by their pattern, with rules for JAX, PyTorch and NumPy. · Independent · Published
An offline Flutter habit tracker for Android with checksum-verified updates. · Independent · Published
A job-application pipeline that finds openings, builds each resume by selecting facts rather than inventing them, and fills forms with a browser robot. · Independent · Live
An ordered route through AI and ML courses, in four stages. · Independent · Published
A van Emde Boas tree with O(u) and O(n log log u) space versions, plus balanced trees, treaps, segment and Fenwick trees and skip lists. · Independent · Published
A shared test scheduler, guard hooks and a context hub that let many coding agents work safely on one workstation. · Independent · Live
Projects from MIT's machine learning course, CS50 AI and CS188, including Pac-Man search and reinforcement learning. · Independent · Published