Welcome to TensorWrites

Documenting my journey as an AI engineer through experiments, readings, interactive explanations, and systems built from scratch.

Learning series

Follow connected chapters in order, including published lessons and what is planned next.

Featured posts

View Timeline →
Read AresSim - Mars Survival Simulation & RL Environment

AresSim - Mars Survival Simulation & RL Environment

AresSim is a 32×32 Mars survival grid I built from scratch to test RL algorithms and LLM agents: a rover explores terrain, extracts ice, and keeps a 5×5 colony pad alive under weather, battery drain, in seed-reproducible worlds.

16 min read
Reinforcement LearningSimulation
Read Planning and Learning with Tabular Methods

Planning and Learning with Tabular Methods

A deep dive into planning and learning with tabular methods for Reinforcement Learning, focusing on value iteration and policy iteration.

1 min read
Reinforcement LearningDemo
Read TD Learning - First step to Unification of Monte Carlo and DP

TD Learning - First step to Unification of Monte Carlo and DP

A deep dive into Temporal Difference (TD) Learning for Reinforcement Learning, an idea that forms basis for modern deep reinforcement learning algorithms

13 min read
Reinforcement LearningDemo
Read Monte Carlo Methods - Learning from Experience

Monte Carlo Methods - Learning from Experience

A deep dive into Monte Carlo methods for Reinforcement Learning, focusing on learning optimal strategies from raw experience without a model.

16 min read
Reinforcement LearningDemo
Read DotLM-165M: How I trained a 165M parameter language model from scratch

DotLM-165M: How I trained a 165M parameter language model from scratch

DotLM is a 165M parameter reasoning-capable SLM trained for all four stages of language modeling: Pretraining, Instruction Tuning, Alignment, and Reasoning using synthetically generated STE dataset.

39 min read
NLPSLMAgenticAILLM TrainingSFTRLHFReasoningInference OptimizationChatUI