A sleek notebook with code snippets and a neural network diagram.

From‑Scratch Mixture‑of‑Experts Layer in Pure NumPy

A hands‑on guide to implementing a from‑scratch MoE layer in NumPy and training a miniature transformer on character‑level language modeling, with runnable code and production‑style extensions.

November 27, 2026 · 10 min · 2125 words · martinuke0
Sparse mixture-of-experts router code

Build a Sparse Mixture-of-Experts Router from Scratch in Python

A hands‑on guide to implementing a sparse MoE router in pure Python, complete with top‑k gating, load‑balancing loss, and token dropping, perfect for a standout CV project.

November 26, 2026 · 9 min · 1869 words · martinuke0
A sleek notebook with code and diagrams

From‑Scratch MoE Transformer Block with Sinkhorn Routing in NumPy

A hands‑on guide to building a Mixture‑of‑Experts transformer block from scratch in NumPy. It features Sinkhorn‑based routing and balanced expert load, ready to showcase on a CV.

November 22, 2026 · 8 min · 1554 words · martinuke0
Mixture-of-Experts router architecture diagram

A Hands-On Build Guide: Mixture-of-Experts Router with Top-K Gating and Auxiliary Load-Balancing Loss

A complete guide to building a Mixture-of-Experts router from scratch, including top-k gating, auxiliary load-balancing loss, runnable Python/NumPy code, and production-ready extensions for your CV.

November 22, 2026 · 11 min · 2171 words · martinuke0
Schematic of a Mixture‑of‑Experts routing layer with expert towers and top‑k gates.

From-Scratch Mixture-of-Experts Routing Layer with Noisy Top‑k Gating and Load‑Balancing Auxiliary Loss

A complete guide and runnable PyTorch implementation of a Mixture‑of‑Experts layer with noisy top‑k routing, auxiliary load‑balancing, and token dispatch, perfect for a portfolio CV.

November 21, 2026 · 12 min · 2527 words · martinuke0
Feedback