Skip to main content

Machine Learning Engineer·Pune, India

Shrirang Mahajan*

I work on ML systems: making models train and run fast on the hardware you actually have. I write GPU kernels, build inference servers, pretrain small LLMs, and ship computer vision to production, from Jetson edge devices to multi-GPU clusters.

Currently Machine Learning Engineer II at Skylark Labs, where I'm the sole ML engineer. Co-author of CFAMs (arXiv, 2026).

Models that keep learning after deployment.

Computer vision in production.

As the sole ML engineer on a small team, I build and deploy the models, and make them fast enough to run on the hardware we have.

Full work history

Built from scratch, then measured.

Side projects where I build the layer underneath myself, then benchmark it against the real thing: a serving engine against vLLM, an attention kernel against cuDNN.

View all 15 projects

My 95M-parameter LLM, running on your device.

The model I pretrained from scratch on 2.1B tokens of OpenWebText using a single RTX 3070 Ti, then instruction-tuned on Stanford Alpaca. Click to download the ONNX weights (~536 MB) — inference then runs locally via WebGPU (or WASM fallback). Fluent English, often wrong facts — it's small.

A note — at 95M parameters, TinyGPT speaks English fluently but isn't reliable on facts. It will write a coherent sentence about anything, and confidently make things up. Treat it as a coherence demo, not a knowledge model.

Inference
WASM (CPU)
2 CPU threads
Privacy
Local only
nothing leaves your device
Source
weights live on HF

Click to download the model and run it locally.

Essays, with illustrations.

Long-form posts on pre-training LLMs on consumer hardware, writing CUDA kernels, and how attention works inside.

All 9 posts

A short résumé.

One layer deeper
than I strictly need.

Three habits I try to keep when I build ML systems.

  1. Build the layer underneath, once.

    Most of the time I use models, libraries and servers that other people built, and that's how it should be. But I understand a tool best after I've built a small version of what's under it. TinyGPT taught me what pretraining costs on 8 GB of VRAM. When I wanted to know what happens under .cuda(), I wrote Tensorax. When I wanted to know why vLLM is fast, I built a serving engine without its tricks and measured the difference.

  2. Measure against the real thing.

    A number with no baseline says very little. I compare my work against the strongest system I can find, such as cuDNN for my attention kernel and vLLM for my serving engine, and I report the gap even when it's 12×. Working out where the gap comes from is the part I learn the most from.

  3. The right hard path.

    I use AI to learn faster. I do not use it to write code I can't read. When I pretrained TinyGPT on a single 8 GB GPU, I learned attention internals, mixed precision and gradient accumulation by working through them myself. A shortcut that skips the part where you get better isn't really a shortcut.

Ask about this site.

A hosted LLM grounded in this site's content — every project, role, blog post, and skill on this page is in its context. It can also fetch fresh GitHub data and send you to the right page when you ask for it. Much better informed about me than TinyGPT above — though, like any language model, still capable of getting things wrong.

I know this entire site. Ask me about Shrirang's work, or pick a prompt below.

›

Answers are generated by a third-party language model and can be wrong. What you type is sent to that provider for processing — please don't enter anything confidential or personal. How this data is handled.

Thanks for scrolling. If something here resonated — a project, an essay, a problem you're trying to solve — I'd love to hear from you.

— Shrirang