Rimom Costa

Rimom Costa

@rimomcosta

Dublin

https://seemynotes.com

Collections

  • Main

    Just some thoughts

  • About me

    The person behind See My Notes — The intersection of distributed systems, agentic AI, and the human element behind the code. Documenting the journey from emergency war rooms to the theoretical foundations of self-improving AI.

  • Building A Transformer

    Synced from GitHub repository Building_a_Transformer on branch main

  • Apps

    Here are some apps created on my free time

Latest notes

  • Stack or Die

    2026-11-19

  • AI Map

    2026-11-16

  • Math Symbols Quick Reference (Your Decoder Ring!)

    2026-05-11

    Before we start, let's demystify every symbol you'll see! Anytime you encounter a symbol and think "What the hell is this?", come back to this section. Consider it your decoder ring for the tutorial! Greek letters are just variable names…

  • Chapter 7: Feed-Forward Network (Individual Processing)

    2026-05-11

    We've just finished attention (Chapter 5)—words gathered information from each other. But gathering information isn't enough! Now each word needs to PROCESS that information. Think of it like this: Attention (Chapter 5): Group discussion…

  • Chapter 19: The Three Transformer Architectures (Decoder, Encoder, Encoder-Decoder)

    2026-05-11

    Here's something important we haven't told you yet: The transformer architecture actually comes in THREE different flavors, and we've been teaching you ONE specific type! You might be wondering: "Wait, I learned about THE transformer…

  • Chapter 14: All the Hyperparameters (The Control Panel)

    2026-05-11

    Imagine you're learning to drive a car. The car has many controls: Transformers have similar controls called hyperparameters! These are the settings you choose BEFORE training starts. They control: Why "hyper" parameters? Because they're…

  • Chapter 3: Embeddings (Giving Numbers Meaning)

    2026-05-11

    We now have our sentence as token IDs: [123, 567, 999] representing "I love pizza" / But wait—there's a huge problem! Each token is just a single number, an ID like a student ID card. Think about it: These numbers tell us WHICH word it…

  • Chapter 15: Additional Techniques

    2026-05-11

    Problem: Can't fit batch size 32 in GPU memory / Imagine your GPU only has enough memory for 8 examples, but you want the stability of batch size 32. Solution: Accumulate gradients over multiple mini-batches / Algorithm: Concrete example…

  • Chapter 12: Causal Masking (No Cheating!)

    2026-05-11

    Imagine taking a multiple-choice test where all the answers are printed at the bottom of the page: If you can see all the answers while answering Question 1, you're not really learning! You're just copying! The same problem happens during…

  • Chapter 20: Quick Quizzes (Test Yourself!)

    2026-05-11

    Course navigation: Previous: Chapter 19 - Three Transformer Architectures | Next: Chapter 21 - Going Further

  • Chapter 8: Residual Connections & Layer Normalization

    2026-05-11

    Why do we need residual connections? Let's understand the problem they solve. Imagine training a very deep network (many layers stacked): During training, we compute gradients (how to improve) through backpropagation, which flows…

  • Chapter 13: Inference (Using the Trained Model)

    2026-05-11

    After training, we have a powerful model. Now let's use it to generate text! Imagine you're writing a story, one word at a time: You start with: "I love" / Step 1: Think about what word comes next / Step 2: Now you have more context: "I…

  • Chapter 17: Putting It All Together (Complete Example)

    2026-05-11

    Congratulations on making it this far! You've learned every component. Now let's watch them all work together in one beautiful choreographed dance! Think of this like watching a factory assembly line: Or like watching a seed become a…

  • Chapter 0: The Grand Vision

    2026-05-11

    Imagine you type "I love" into ChatGPT. How does it know "pizza" or "coding" are good next words, but "purple" isn't? That's what transformers solve: predicting the next word based on everything that came before. Think of it like playing…

  • Chapter 2: Tokenization (Chopping Text into Pieces)

    2026-05-11

    Let's say we have our vocabulary of 50,000 tokens. Simple case first: Input text: "I love pizza" / Step 1: Look up each word in our vocabulary / Result: [123, 567, 999] / Easy! But what happens with a word not in our dictionary? The…

  • Introduction: What Are Transformers Really?

    2026-05-11

    Before diving into the technical details, let's understand what transformers are at a fundamental level—no code, just concepts. Short answer: A transformer is a type of neural network architecture—a specific way of organizing mathematical…

  • Chapter 4: Positional Encoding (Teaching Word Order)

    2026-05-11

    Let's start with a fundamental realization about how transformers work differently from how we humans read. How humans read (sequential): We process words one at a time, in order. This is called sequential processing. How transformers…

  • Chapter 16: Common Training Problems & Solutions

    2026-05-11

    Training a transformer is like learning to ride a bicycle - sometimes things go wrong, and you need to diagnose the problem! Common scenarios: Don't panic! Every problem has telltale symptoms and known solutions. Let's learn how to…

  • Chapter 5: Multi-Head Self-Attention (The Heart)

    2026-05-11

    This is where the magic happens! This is the innovation that made transformers revolutionary. After reading this chapter, you'll understand how words "talk" to each other and decide who's important. We now have three position-aware word…

  • Building a Transformer: The Complete Guide from Paper to Production

    2026-05-11

    A Super-Friendly Tutorial for Curious Learners, Students, and Practitioners / Author: Rimom Costa / This is not your typical AI tutorial. This is a complete, from-first-principles guide to understanding transformers—the architecture…

  • Chapter 11: Training the Transformer (The Learning Process)

    2026-05-11

    Now for the magic: how do those random weights become intelligent? Imagine we have a massive text corpus: We chunk this into training examples: Hyperparameters for training: After the model predicts probabilities, we compare to the actual…

  • Chapter 21: Going Further

    2026-05-11

    Take a moment to appreciate what you've accomplished! You started this journey knowing transformers were "some AI thing." Now you understand: ✅ How words become numbers - Embeddings that capture meaning / ✅ How position matters…

  • Chapter 10: The Output Head (Predicting Next Token)

    2026-05-11

    After all transformer blocks, we have a final 6-dimensional vector for each position. We need to convert this to probabilities over our entire 50,000-word vocabulary. Weight matrix: with shape / This is a massive matrix! It transforms our…

  • Chapter 6: Dropout (The Training Safety Net)

    2026-05-11

    Imagine this scenario: You're studying for a math test. You practice with 20 sample problems, and you get REALLY good at those specific 20 problems. You memorize: But on test day, you get DIFFERENT problems! Even though they test the same…

  • Chapter 18: From Language Model to ChatGPT (The Three Training Stages)

    2026-05-11

    You now understand how to train a transformer (Chapter 11), but there's something crucial we haven't told you yet: You DON'T train a ChatGPT from scratch for every task! Imagine this scenario: You want to build a medical diagnosis…

  • Chapter 1: Building Our Vocabulary (The Dictionary)

    2026-05-11

    Computers only speak numbers, so we create a giant dictionary mapping words to IDs. Think of it like assigning a unique ID number to every student in a huge school—instead of saying "Sarah," you could say "Student #567." Let's build a…

  • Chapter 9: Stacking Transformer Blocks

    2026-05-11

    One transformer block consists of: Hyperparameter: Number of layers / The depth of a transformer (how many identical blocks we stack) is crucial to its capability: Why stack so many layers? Think of understanding language like building a…

  • Firefighting at Scale

    2026-01-20

    My day job has a title: Senior Site Reliability Engineer at Adobe Commerce Cloud. But titles don't capture what the work actually feels like. Here's what it feels like: I'm the final escalation point for over 10,000 merchants running on…

  • Engineer, Researcher, Builder

    2026-01-20

    I'm Rimom Costa. I live in Dublin now, though home was once Brazil, a place I left carrying nothing but curiosity and a stubborn refusal to accept "that's just how it works" as an answer to anything. I've spent the last decade inside…

  • The Note That Became Everything

    2026-01-11

    It started with a problem I couldn't solve. September 2017. I was job hunting, desperate for portfolio pieces, when my father asked me to build a website for his business. Then my uncle made the same request. Then my sister-in-law wanted…