Python code visualizing token probability distributions and nucleus sampling

Pure-Python Top-P Nucleus Sampler with Adaptive Temperature Scheduling

A complete build guide for a pure-Python top-p nucleus sampler with adaptive temperature scheduling and token probability tools, ready to run and extend.

September 28, 2026 · 8 min · 1647 words · martinuke0
A Python code editor displaying sampling probability distributions and logits on a dark terminal.

Building a Production-Grade Sampling Engine in Pure Python

A hands-on guide to building a deterministic sampling engine in pure Python, covering temperature, top-k, top-p, and nucleus sampling with production-grade architecture patterns you can showcase to hiring managers.

September 28, 2026 · 11 min · 2308 words · martinuke0
A visualization of token probability distributions under different decoding strategies

Building a Pure-Python Token Sampler: Temperature, Top-k, Top-p, and Min-p Decoding from Scratch

A hands-on guide to implementing four major LLM token sampling strategies from scratch in pure Python. This project signals real systems engineering skill and serves as a standout portfolio piece for ML engineering roles.

September 27, 2026 · 13 min · 2609 words · martinuke0
A code editor displaying a Python BPE tokenizer implementation with terminal output showing tokenization results.

Build a BPE Tokenizer From Scratch in Pure Python

A hands-on build guide for a Byte Pair Encoding tokenizer in pure Python — complete with architecture diagrams, runnable code, testing strategy, and a senior-level extension roadmap.

September 23, 2026 · 11 min · 2251 words · martinuke0
A code editor displaying a Python sampling loop with temperature and top-k parameters

Build a From-Scratch LLM Sampler: Temperature, Top-k, Top-p in Pure Python

A hands-on guide to building a pure-Python transformer model with a custom decoding loop implementing temperature, top-k, and top-p sampling — a CV-worthy project that demonstrates deep ML systems knowledge.

September 22, 2026 · 13 min · 2679 words · martinuke0
Feedback