NumPy token sampler project cover

Hands-On Build Guide: Batched LLM Token Sampler in Pure NumPy

Build a pure‑NumPy batched token sampler with temperature, top‑k, nucleus, and repetition penalty; ready to run and extend for CV demonstrations.

October 22, 2026 · 10 min · 1969 words · martinuke0
Illustration of a tiled self-attention block with KV cache

Building a FlashAttention-Style Tiled Self-Attention Block in NumPy

This post walks through building a FlashAttention-style tiled self-attention block in NumPy, covering online softmax, KV caching, and performance benchmarks.

October 22, 2026 · 7 min · 1392 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 secure lock icon overlaid on a modern dashboard interface

User Safety: Safe-by-Design Patterns for Modern Applications

A practical guide to safe-by-design user-facing systems, covering authentication patterns, fault tolerance, and real-world failure modes at scale.

October 21, 2026 · 6 min · 1142 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
Feedback