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
Illustration of a Python tokenizer flowing through bytes and tokens

Byte‑Level BPE Tokenizer with GPT‑4 Pre‑tokenization and tiktoken‑Compatible Serialization in Pure Python

A step‑by‑step pure Python implementation of a byte‑level BPE tokenizer with GPT‑4 pre‑tokenization and tiktoken‑compatible output, ideal for demonstrating systems skills.

November 26, 2026 · 8 min · 1555 words · martinuke0
Python code on a laptop screen next to a schematic of a draft and target model

From-Scratch Speculative Decoding Engine in Pure Python

A hands‑on guide to building a speculative decoding engine in pure Python, complete with code, tests, and production‑ready extensions.

November 26, 2026 · 10 min · 2068 words · martinuke0
 schematic of inference engine with sliding window cache

Hands-On Build: Speculative Draft‑Then‑Verify Inference Engine with Sliding‑Window KV Cache Eviction in Pure Python

A minimal, pure‑Python inference engine that drafts token candidates then verifies them using a sliding‑window key‑value cache, perfect for demonstrating systems competence in AI interviews.

November 25, 2026 · 8 min · 1639 words · martinuke0
Feedback