Python code representing a logits processor and sampler

From-Scratch Logits Processor and Sampler: Temperature, Top‑k, Top‑p, and Min‑p Decoding in Pure Python

A minimal, pure‑Python implementation of temperature‑scaled, top‑k, top‑p and min‑p token sampling, ready to run, test, and extend for your portfolio.

October 29, 2026 · 8 min · 1552 words · martinuke0
Diagram of a byte-level BPE tokenizer pipeline

Building a Production-Grade Byte-Level BPE Tokenizer in Pure Python

A step-by-step guide to building a byte-level BPE tokenizer with regex pre-tokenization, trie encoding, and JSON serialization in pure Python.

October 21, 2026 · 8 min · 1616 words · martinuke0
A laptop screen showing Python code and a flowchart of a tokenizer

Hands‑On BPE Tokenizer: Pure‑Python Incremental Merge Learning with Trie Lookup

This post walks you through building a from‑scratch BPE tokenizer in pure Python, complete with online incremental merge learning and a trie for fast tokenization. You’ll end up with a runnable library you can showcase on LinkedIn or a résumé.

October 21, 2026 · 9 min · 1824 words · martinuke0
Python code editor with tokenization output

Build a Pure‑Python BPE Tokenizer for Your Portfolio CV

A hands‑on tutorial creating a from‑scratch BPE tokenizer in pure Python, ready to showcase on a CV.

October 16, 2026 · 9 min · 1722 words · martinuke0
Illustration of a tokenizer pipeline

Build a Unigram Language Model Tokenizer from Scratch in Pure Python

This tutorial walks you through implementing a unigram language model tokenizer with EM training and subword regularization in pure Python. It showcases the algorithmic and systems skills that hiring managers look for.

September 29, 2026 · 6 min · 1118 words · martinuke0
Feedback