Writing
-
Local LLMs 9 min
Running Inkling-2-Mini on an RTX 4090 with llama.cpp
Finding the right context length and llama.cpp settings to run Inkling-2-Mini on a 24 GB GPU for local coding agents.
-
Local LLMs 9 min
Pairing GPT-6.1 Sol with a Local Model in OpenCode
How I set up OpenCode so GPT-6.1 Sol plans and checks while a self-hosted GLM-5.3-Flash writes the code and does most of the work
-
Time Series 17 min
Kalman Filters and Smoothing for Time-Series Data
A first-principles walkthrough of Kalman filtering and smoothing for time-series work: denoising, decomposition, forecasting and gap filling with examples
-
Tools & Infra 9 min
Building a Live India Weather Dashboard with Claude Code
A short reflection on prompting Claude Code in stages to build a live India weather and AQI dashboard for my portfolio site.
-
Local LLMs 16 min
Notes on Qwen3.5 vs Gemma4 for Local Agentic Coding
Comparing Qwen 3.5 and Gemma4 (dense and MoE) for local agentic coding on an RTX 4090 using llama-bench and one-prompt coding tasks with Open Code.
-
Local LLMs 6 min
Self-Hosted Gemma 4 Chat with Web UI
Steps to set up a self-hosted Gemma 4 chat with llama.cpp's built-in web UI, web search via MCP, and access from any device over Tailscale.
-
Local LLMs 12 min
Using a local LLM in OpenCode with llama.cpp
Step-by-step setup for running a quantized Qwen3.5-27B model on a remote GPU via llama.cpp, exposing it over Tailscale and using it as a provider in OpenCode (optionally with Codex).
-
Transformers 15 min
FlashAttention: Making Attention I/O-Aware
Understanding FlashAttention from first principles: how operator fusion, tiling, recomputation, and online softmax make attention IO-aware
-
Tools & Infra 5 min
Building Browser Tools with Claude Code
Introducing the browser-based tools section on my website, client-side utilities for images, data, and viewing, built almost entirely with Claude Code.
-
RL & Alignment 14 min
GRPO: Building Intuition Through Ablation Studies
My implementation of GRPO from scratch for Qwen2.5-Math-1.5B with verifiable math rewards and running multiple ablation studies on learning rate, baselines, off-policy training etc to build intuition on what matters in GRPO training.
-
Tools & Infra 9 min
Tools for Better Claude Code and Terminal Experience
A handful of simple tools and practices that have stuck with me while using Claude Code and other AI coding assistants, from tracking usage and managing context to terminal upgrades and the llm CLI.
-
RL & Alignment, LLM Training 11 min
Expert Iteration for Math Reasoning
Blogpost discussing experiments with Expert Iteration for math reasoning, covering hyperparameter tuning, training dynamics and comparison with SFT.
-
Tools & Infra 11 min
A Brief Introduction to Claude Agent Skills
A practical guide to Claude Skills, what they are, why they matter and how to build your own using a basic image editing skill as an example.
-
Paper Notes 7 min
Key Insights from DeepSeekMath paper
Notes and takeaways from the DeepSeekMath paper including a deep dive into their iterative data curation pipeline
-
RL & Alignment 12 min
Understanding GRPO: PPO without the Critic
A blog post explaining the Group Relative Policy Optimization (GRPO) objective, showing how it simplifies PPO by replacing the learned critic with group sampling.
-
RL & Alignment 13 min
Deriving the DPO Loss from First Principles
A step-by-step derivation of the Direct Preference Optimization (DPO) loss, showing how it reformulates the RLHF objective into a simple classification loss without requiring explicit reward modeling or reinforcement learning.
-
RL & Alignment 31 min
Deriving the PPO Loss from First Principles
A step-by-step derivation of the Proximal Policy Optimization (PPO) loss, starting from basic RL concepts and building up to the complete RLHF objective used in LLM alignment.
-
LLM Training 10 min
What I Learned Building SFT from the Ground Up
A hands-on journey implementing SFT from scratch, covering reasoning SFT with Qwen2.5-Math and instruction SFT with Llama-3.1-8B, along with debugging lessons learned.
-
Tools & Infra 7 min
A Guide to Building Custom Nodes in ComfyUI
A practical guide to quickly building custom ComfyUI nodes. Here I use my SVG2Raster node package as an example.
-
Transformers 7 min
Building GPT from Scratch: Following Karpathy's Tutorial
This blog summarizes building the GPT architecture by following Andrej Karpathy's 'Let's Build GPT' tutorial.
-
Paper Notes 6 min
Key Takeaways from Lecture 1: LLM Evaluation Lifecycle
Here, I discuss the key ideas/takeaways around the systematic evaluation and metrics, "Three Gulfs" and effective prompting.
-
LLM Training 7 min
Part III: Fine-tuning Llama-3-8B for Structured Functional Representation Extraction
Blog on fine-tuning a Llama-3-8B model on the Predibase platform for structured functional representation extraction, and compare its performance with GPT-4 and Claude 3.5 Sonnet.
-
LLM Evaluation 7 min
Part II: Comparison of Model Performances on Structured Functional Representation Extraction
This blog post compares the performance of various models in extracting structured functional representations from text.
-
LLM Evaluation 8 min
Part I: Baseline Evaluation of GPT-4o for Functional Representation Extraction
This blog gives a detailed walkthrough of structured data extraction using OpenAI's GPT-4o model.
-
Tools & Infra 9 min
Step-by-Step Guide to Setup Your Personal GPU Server
Guide to set up a remotely accessible personal GPU Ubuntu server, enabling its access from anywhere.
-
Tools & Infra 10 min
Managing multiple CUDA versions using environment modules in Ubuntu
Guide to install CUDA locally and manage multiple cuda environments on Ubuntu GPU server.