Illustration of a router directing traffic to expert modules.

Hands‑On Build Guide: Minimal Mixture‑of‑Experts Router with Softmax Gating in Python

A step‑by‑step guide to building a minimal Mixture‑of‑Experts router in pure Python, complete with runnable code, testing, and production‑level extension ideas.

October 4, 2026 · 7 min · 1483 words · martinuke0
Mixture of experts routing layer illustration

From‑Scratch Mixture‑of‑Experts Routing Layer in Pure Python

A step‑by‑step tutorial creating a from‑scratch MoE routing layer in pure Python, complete with code, tests, and extension ideas for your CV.

September 30, 2026 · 8 min · 1644 words · martinuke0
A diagram of a mixture-of-experts router with multiple expert networks and a gating mechanism

Build a Mixture-of-Experts Router from Scratch: A Portfolio Project That Signals Real Systems Skill

A hands-on guide to building a mixture-of-experts router from scratch in Python, covering top-k gating, capacity factor scheduling, and load balancing loss — a CV-worthy project that signals real systems and ML engineering skill.

September 23, 2026 · 12 min · 2465 words · martinuke0
A sleek Python script running on a laptop, illustrating a router directing traffic to expert modules.

Hands‑On Build: Mixture‑of‑Experts Top‑K Gating Router in Pure Python

A step‑by‑step guide to implementing a mixture‑of‑experts router from scratch in Python, complete with top‑k gating, auxiliary loss, and production‑ready extensions.

September 17, 2026 · 9 min · 1907 words · martinuke0
A schematic of a mixture-of-experts model routing tokens to experts.

Build a Minimal Mixture-of-Experts Inference Engine in Pure Python

Implement a minimal mixture-of-experts inference engine from scratch in Python, demonstrating systems thinking, custom loss functions, and production-ready patterns.

September 14, 2026 · 8 min · 1616 words · martinuke0
Feedback