A sleek Python code terminal showing a sampling engine script

A Unified Sampling Engine in Python: Temperature, Top‑k, Top‑p, Typical, and Epsilon‑Cutoff

A hands‑on guide to implementing a unified sampling engine that merges temperature, top‑k, top‑p, typical, and epsilon‑cutoff strategies, ready to run and extend for CV signals.

November 30, 2026 · 8 min · 1592 words · martinuke0
A schematic of a tiled attention matrix with softmax arrows.

Build a Flash Attention Kernel from Scratch with Pure NumPy

Implement a flash‑attention kernel from scratch in NumPy, covering online softmax, tiling, and performance tricks you can run and extend.

November 29, 2026 · 7 min · 1461 words · martinuke0
Python code on a terminal showing vector index construction

From-Scratch IVF-PQ Vector Index in Pure Python: A Hands-On Portfolio Guide

A complete hands-on guide to building a pure-Python IVF-PQ vector index from k-means to ASDL, perfect for a CV side project that demonstrates real systems engineering skills.

November 27, 2026 · 8 min · 1683 words · martinuke0
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
Feedback