Low-rank adaptation diagram showing decomposed weight matrices added to a transformer layer

Build a LoRA Adapter from Scratch: A Portfolio-Ready PyTorch Project

A hands-on build guide for implementing a LoRA adapter from scratch in PyTorch, including rank-decomposed weight matrices and a complete fine-tuning loop for BERT — designed to signal real ML engineering skill on a portfolio.

September 9, 2026 · 13 min · 2665 words · martinuke0
Stylized diagram of GPU memory blocks being cached and reused across allocations.

Optimizing GPU Memory Pools: Inside PyTorch's CUDA Caching Allocator

PyTorch’s CUDA caching allocator hides the cost of repeated allocations by recycling VRAM in fixed-size blocks. Here’s how it works, why it matters at scale, and how to squeeze more performance out of it.

September 7, 2026 · 9 min · 1766 words · martinuke0
Diagram of grouped-query attention with rotary position embeddings feeding into a tiled Flash-Attention forward pass.

Building Grouped-Query Attention with RoPE and Flash-Attention from Scratch

Step-by-step tutorial for implementing GQA, RoPE, and an online-softmax Flash-Attention forward pass in pure PyTorch — a portfolio project that signals real systems-level ML skill.

September 7, 2026 · 11 min · 2313 words · martinuke0
Diagram of a transformer training loop showing activations dropped at checkpoint boundaries and recomputed during backward pass.

Building a Gradient Checkpointing Memory Scheduler From Scratch: A Portfolio Project That Actually Signals ML Systems Skill

A practical build guide for a portfolio-grade gradient checkpointing scheduler that trades compute for memory in mini GPT training. Includes runnable PyTorch code, a scheduler design, tests, and a roadmap to production-flavored upgrades.

September 7, 2026 · 15 min · 3026 words · martinuke0
Diagram of a small GPT training loop with mixed precision and gradient accumulation.

Building nanoGPT From Scratch: A Portfolio-Worthy Deep Learning Project

Ship a portfolio-grade nanoGPT implementation in pure PyTorch: a tight training loop with AMP, gradient accumulation, cosine LR scheduling, and weight tying — the exact patterns production teams use.

September 7, 2026 · 15 min · 3014 words · martinuke0
Feedback