A visualization of a sparse Mixture-of-Experts routing architecture with multiple expert paths and a gating network.

Build a Sparse MoE Router from Scratch in NumPy

A hands-on guide to implementing a sparse MoE router from scratch in NumPy, covering noisy top-k gating, capacity-factor batching, and auxiliary load-balancing loss — a CV-worthy side project for ML systems engineers.

September 11, 2026 · 14 min · 2810 words · martinuke0
Diagram of MoE architecture

From Scratch Sparse MoE Inference Engine

Build a sparse Mixture‑of‑Experts inference engine from scratch in Python, mastering top‑k gating, capacity‑constrained dispatch, and load‑balancing loss.

September 11, 2026 · 1 min · 152 words · martinuke0
LoRA adapter illustration

Build a LoRA Adapter Layer from Scratch in PyTorch

A hands‑on guide to building a LoRA adapter layer in pure PyTorch, with complete code, merge/unmerge, and tips for turning the project into a CV‑standing side project.

September 10, 2026 · 7 min · 1439 words · martinuke0
PyTorch code and neural network architecture diagram

Building a Multi-Head Self-Attention Block with RoPE and ALiBi from Scratch

A hands-on guide to building a multi-head self-attention block with RoPE and ALiBi from scratch, signaling advanced ML and systems engineering skills to hiring managers.

September 10, 2026 · 9 min · 1903 words · martinuke0
Abstract illustration of a neural network with routing switches.

Switch Transformer-Style Sparse MoE Layer from Scratch in PyTorch

Implement a Switch Transformer‑style sparse mixture‑of‑experts layer in PyTorch, complete with differentiable routing, capacity limits, and load‑balancing loss.

September 10, 2026 · 5 min · 974 words · martinuke0
Feedback