Animated visualization of BPE merges building a vocabulary table.

Build a Byte-Level BPE Tokenizer From Scratch: A Portfolio Project That Actually Signals Systems Skill

Ship a production-flavored BPE tokenizer end to end: byte-level pretokenization, regex splitting, merge learning, and a Tkinter visualization that animates each merge so you can actually see vocabulary grow.

September 7, 2026 · 12 min · 2388 words · martinuke0
Abstract visualization of probability distributions and token sampling strategies.

Build a Token Sampler From Scratch: Temperature, Top-k, Top-p, Min-p, and Contrastive Search

Build a streaming token sampler from scratch in PyTorch covering temperature, top-k, top-p, min-p, and contrastive search — a CV-worthy systems project for ML engineers.

September 6, 2026 · 11 min · 2266 words · martinuke0
Code editor showing a Python tokenizer implementation with token merges and a vocabulary table.

Build a WordPiece Tokenizer From Scratch: A CV-Worthy NLP Project

Build a production-shaped WordPiece tokenizer in Python with subword merging, BERT special tokens, and a greedy decode path. Includes runnable code, tests, and a roadmap to senior-level extensions.

September 6, 2026 · 12 min · 2489 words · martinuke0
Abstract visualization of attention weights connecting tokens across a sequence.

"Attention Is All You Need" — The Paper That Rewrote NLP and Reshaped Modern AI

A practical walkthrough of the 2017 transformer paper that replaced RNNs with self-attention — what the architecture actually does, why the design choices matter in production, and how every modern LLM inherits from it.

September 2, 2026 · 9 min · 1869 words · martinuke0

Leveraging Cross‑Encoder Reranking and Long‑Context Windows for High‑Fidelity Retrieval‑Augmented Generation Pipelines

Introduction Retrieval‑Augmented Generation (RAG) has become the de‑facto architecture for building knowledge‑intensive language systems. By coupling a retriever—typically a dense vector search over a large corpus—with a generator that conditions on the retrieved passages, RAG can produce answers that are both fluent and grounded in external data. However, two practical bottlenecks often limit the fidelity of such pipelines: Noisy or sub‑optimal retrieval results – the initial retrieval step (e.g., using a bi‑encoder) may return passages that are only loosely related to the query, leading the generator to hallucinate or produce vague answers. Limited context windows in the generator – even when the retrieved set is perfect, many modern LLMs can only ingest a few hundred to a few thousand tokens, forcing developers to truncate or rank‑order passages heuristically. Two complementary techniques have emerged to address these pain points: ...

March 24, 2026 · 13 min · 2708 words · martinuke0
Feedback