Aayush Garg
  • Writing
  • Work
  • Tools
  • About

Writing

From-scratch LLM builds, deep dives and practical AI engineering.

Search

All 26 LLM Evaluation 2 LLM Training 3 Local LLMs 5 Paper Notes 2 RL & Alignment 5 Time Series 1 Tools & Infra 7 Transformers 2
No matching items
  1. 23 Nov 2026

    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
  2. 1 Nov 2026

    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

    Local LLMs 9 min
  3. 15 Jul 2026

    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

    Time Series 17 min
  4. 29 Apr 2026

    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.

    Tools & Infra 9 min
  5. 5 Apr 2026

    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 16 min
  6. 3 Apr 2026

    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 6 min
  7. 29 Mar 2026

    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).

    Local LLMs 12 min
  8. 27 Mar 2026

    FlashAttention: Making Attention I/O-Aware

    Understanding FlashAttention from first principles: how operator fusion, tiling, recomputation, and online softmax make attention IO-aware

    Transformers 15 min
  9. 20 Mar 2026

    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.

    Tools & Infra 5 min
  10. 26 Feb 2026

    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.

    RL & Alignment 14 min
  11. 12 Feb 2026

    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.

    Tools & Infra 9 min
  12. 23 Jan 2026

    Expert Iteration for Math Reasoning

    Blogpost discussing experiments with Expert Iteration for math reasoning, covering hyperparameter tuning, training dynamics and comparison with SFT.

    RL & Alignment, LLM Training 11 min
  13. 13 Jan 2026

    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.

    Tools & Infra 11 min
  14. 6 Jan 2026

    Key Insights from DeepSeekMath paper

    Notes and takeaways from the DeepSeekMath paper including a deep dive into their iterative data curation pipeline

    Paper Notes 7 min
  15. 1 Jan 2026

    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 12 min
  16. 30 Dec 2025

    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 13 min
  17. 25 Dec 2025

    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.

    RL & Alignment 31 min
  18. 3 Dec 2025

    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.

    LLM Training 10 min
  19. 10 Sep 2025

    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.

    Tools & Infra 7 min
  20. 8 Sep 2025

    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.

    Transformers 7 min
  21. 2 Sep 2025

    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.

    Paper Notes 6 min
  22. 15 Jul 2024

    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 Training 7 min
  23. 9 Jul 2024

    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 7 min
  24. 3 Jul 2024

    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.

    LLM Evaluation 8 min
  25. 30 Jun 2024

    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 9 min
  26. 19 May 2024

    Managing multiple CUDA versions using environment modules in Ubuntu

    Guide to install CUDA locally and manage multiple cuda environments on Ubuntu GPU server.

    Tools & Infra 10 min
No matching items

© 2026 Aayush Garg

 
  • GitHub

  • LinkedIn

  • X

  • RSS