A diagram of a mixture-of-experts router

Build Your Own Mixture-of-Experts Router with Top‑k Gating

This tutorial walks you through building a top‑k gated mixture-of-experts router in PyTorch, giving you a concrete portfolio piece that demonstrates model architecture, sparse routing, and system‑level scaling.

October 13, 2026 · 7 min · 1321 words · martinuke0
Mini GPT training loop on a laptop

From-Scratch Mini GPT Training Loop with Gradient Checkpointing, Mixed Precision, and a Custom CUDA‑Style Optimizer

A hands‑on guide to training a tiny GPT model end‑to‑end with gradient checkpointing, FP16 mixed precision, and a hand‑rolled optimizer, perfect for a CV‑worthy portfolio.

October 9, 2026 · 12 min · 2453 words · martinuke0
A sleek neural network diagram overlaid on a laptop screen

Build Your Own Fused Low‑Rank LoRA Fine‑Tuning Engine From Scratch

A hands‑on guide to building a fused low‑rank LoRA fine‑tuning engine from scratch, with runnable PyTorch code, architecture diagrams, and production‑ready extensions.

October 8, 2026 · 7 min · 1413 words · martinuke0
A neural network diagram showing low-rank weight matrices

From Scratch: Building a LoRA Fine-Tuning Adapter in Pure PyTorch

Implement a Low-Rank Adaptation (LoRA) module from scratch in PyTorch, then extend it with persistence, observability, and distributed training for production readiness.

October 8, 2026 · 7 min · 1399 words · martinuke0
A block‑sparse attention matrix visualized as a grid of active blocks.

Building a Pure‑Python Block‑Sparse Sliding‑Window Attention (Longformer‑Style)

Implement block‑sparse sliding‑window attention in pure Python to handle long sequences efficiently, mirroring Longformer’s design.

October 7, 2026 · 7 min · 1385 words · martinuke0
Feedback