A conceptual illustration of a token sampling distribution

Building a Production-Grade Top‑k/Top‑p Sampler with NumPy

This tutorial shows how to build a high‑performance top‑k/top‑p token sampler with temperature scaling and per‑token log‑probability tracking using NumPy. It demonstrates real systems skills relevant to ML inference roles.

September 9, 2026 · 2 min · 216 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
Abstract visualization of telemetry data flowing through processor pipelines with sampling decision nodes.

Inside OpenTelemetry's Span Processor: Tail-Sampling and Adaptive Bucket Aggregations

How modern span processors decide what to keep, what to drop, and how to bucket latency without lying to you. We unpack tail-sampling evaluators and adaptive bucket strategies used in OpenTelemetry Collector pipelines.

September 4, 2026 · 12 min · 2393 words · martinuke0
Feedback