Reinforcement Learning

Hi, I’m Bharath

Welcome to my blog — I write about technology, ideas, and things I find interesting.

Model Distillation

Model distillation is a model training/fine-tuning process where a smaller student model is trained from a teacher model. The evolution of distillation goes from model compression to knowledge/behaviour transfer to transfer of reasoning abilities. The student could have better generalization depending on how the distillation was done. So you end up with a smaller, faster, cheaper model with better generalization while needing fewer training samples during training and you can use a higher learning rate. ...

August 15, 2026 · 3 min · Bharath

Vision Language Models

Vision Language Models are a class of large multimodal neural networks. They take images and text as input and generate text as output. The typical tasks involve jointly reasoning over both images and text to generate useful results. The joint reasoning is interesting. Basically visual semantic concepts and textual semantic concepts (and speech and video) are mapped to the same embedding/latent space. Then the model processes the embeddings. The joint training has the advantage that there is genuine grounding of visual concepts in text and vice-versa. In practice a “modality gap” persists even after joint training — embeddings of different modalities cluster in distinct regions of the shared space rather than fully overlapping — but the gap is far smaller than between independently trained encoders. Parameters are shared across modalities, reducing model size. The caveats are careful data mixing during training: a good mixture of images, text and image+text, staged training, basically all to avoid catastrophic forgetting. ...

August 13, 2026 · 3 min · Bharath

World Models

This short note is based on an article by Dr. Fei-Fei Li (see References). World models allow you to view, generate, interact with, reason about and manipulate virtual worlds. I think spatial intelligence is an important component of human intelligence and will likely become part of artificial intelligence too, over time. LLMs only deal with text. VLMs deal with images. There are models to generate images and short videos. But we need so much more to claim spatial intelligence. ...

August 12, 2026 · 2 min · Bharath

Reasoning Models

Source: What is a reasoning model? (IBM) I was reading the above article and made a simple mindmap of the material. It is a huge topic which I plan to read more about, but this is just a start. It is hard to believe that just a prompt for chain-of-thought could unlock reasoning behaviours in a pre-trained model. But that seems to underpin all the developments in reasoning LLMs, at least the popular ones. Of course, search-based and majority-based approaches exist too. ...

July 5, 2026 · 1 min · Bharath

Image Generation Models

I saw the launch announcement of Google’s Nano Banana 2, and this piqued my interest in image generation models. These are models that take a textual prompt, and with a few optional reference images, generate a new image. The main criteria are cost of generation, speed of generation, prompt adherence, consistency of the characters in the image, and style manipulation ability. The most popular type of image generation model is a latent diffusion model based on a Diffusion Transformer (DiT) for noise prediction. Earlier, a U-Net was used for noise prediction instead. ...

July 3, 2026 · 2 min · Bharath

Claude Code in Action

I took Anthropic’s Claude Code in Action course. I just wanted to get a comprehensive view of the features. I learnt a few nice things. The fact that tools are the main conceptual breakthrough for most of the advancements of LLMs became apparent. The composability and versatility of tools contributes to a lot of the problem solving abilities of LLM based agents. Context management is very important. You should know how to manipulate and maintain the context in order to get Claude code to work well. ...

July 3, 2026 · 2 min · Bharath

India's Datacenter Build-Out, Mapped

Disclaimer: This entire post — the map, the analysis, and the text — was AI-generated. Figures are directional and may contain errors; verify against primary sources before relying on them. India’s datacenter story has shifted from a Mumbai-dominated colocation market into a nationwide, AI-driven hyperscale race. Operational IT-load sat at roughly 1.4 GW in Q2 2025, with about the same again under construction and capacity expected to double within two years. More than $32 billion of investment has been announced in the last two years alone. ...

July 3, 2026 · 2 min · Bharath

A Native macOS Pomodoro Timer

Wanted a Pomodoro timer that lives on my desktop instead of a browser tab, so I had Claude help me build one in SwiftUI. The code lives in pomodoro. It’s a small always-on-top window with a circular progress ring, cycling through focus / short break / long break (a long break every N focus sessions, configurable). Each focus session can be named with a note, and completed sessions land in a local history panel you can view, edit, or delete. A macOS notification and sound fire when a session ends. ...

July 2, 2026 · 1 min · Bharath

Qwen-AgentWorld: A Language World Model for Agents

The Qwen team released Qwen-AgentWorld on 2026-06-24. I came to know more about language world models via this post. It is also related to agents, and offline RL. This post is a short summary of my understanding. Context To train an agent with RL, you need an environment in which it can learn by trying out various actions and observing the result. But real environments are slow and sometimes irreversible. A language world model predicts the new state of the environment given (current-state, agent-action). Interestingly, the observation is emitted as XML/HTML allow even GUI environments to be modelled by a text-only LLM. ...

June 30, 2026 · 2 min · Bharath

A Tiny Q-learning Example in Python

I wanted to get a better sense of the temporal-difference update rule. So took some help from Claude and wrote a small Q-learning program. Just uses the python stdlib. The code lives in q-learning, managed with uv. ...

June 29, 2026 · 2 min · Bharath