Kari Vierimaa·Apr 15, 2025Demystifying Isometric Projection in 2D Games (with Python!)Unlock the secrets of the classic 2.5D look: Learn the math, code the transformations in Python, and navigate the challenges of isometric…
Kari Vierimaa·Apr 13, 2025Transformers From Scratch: Part 10 — Beyond Greedy Search & Next StepsDiscusses advanced decoding techniques, limitations of the scratch build, and directions for further improvements and learning.
Kari Vierimaa·Apr 13, 2025Transformers From Scratch: Part 9 — Inference & Greedy GenerationUses the trained model for inference, implementing the basic Greedy Decoding strategy to generate output sequences.A response icon1A response icon1
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 8 — Data & TrainingPrepares data for a simple task and implements the training loop with loss and optimizer to make the model learn.
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 7 — Assembling the Full ModelConnects the Encoder, Decoder, embeddings, and positional encodings, adding the final projection layer to create the complete Transformer…
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 6 — The DecoderBuilds the Decoder blocks, incorporating masked self-attention and cross-attention, and stacks them into the full Decoder.A response icon1A response icon1
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 5 — The EncoderAssembles the Multi-Head Attention and Feed-Forward networks into Encoder blocks and stacks them to form the full Encoder.
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 4 — Add & Norm, Feed-ForwardConstructs the supporting Layer Normalization, Position-wise Feed-Forward, and Residual Connection components.
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 3 — Multi-Head AttentionImplements Multi-Head Attention, allowing the model to focus on different representation subspaces simultaneously.A response icon2A response icon2
Kari Vierimaa·Apr 12, 2025Transformers From Scratch: Part 2 — Scaled Dot-Product AttentionBuilds the core Scaled Dot-Product Attention mechanism, including masking and scaling.A response icon1A response icon1