Diagram of the sampling engine pipeline

Building a Self-Contained Sampling and Decoding Engine in Pure Python

Implement temperature, top‑k, and top‑p sampling from scratch in pure Python, then extend the engine for production use.

November 8, 2026 · 7 min · 1473 words · martinuke0
A stylized illustration of a neural network decoding tokens

From‑Scratch LLM Decoding Engine: Temperature, Top‑k, Top‑p, and Repetition Penalty

Build a compact LLM decoding engine in Python that implements temperature, top‑k, top‑p, and repetition penalty, demonstrating real systems skill for hiring managers.

November 6, 2026 · 6 min · 1220 words · martinuke0
Dynamic temperature scheduler concept

Dynamic Temperature Scheduler for LLM Sampling

A hands‑on guide to a token‑level temperature scheduler that reacts to entropy and applies top‑k/top‑p filtering, perfect for showcasing systems expertise.

November 5, 2026 · 7 min · 1314 words · martinuke0
Illustration of a neural network generating text

Hands‑On: Building a Sampling & Decoding Demo for LLM Text Generation

A hands‑on project that implements LLM token‑sampling algorithms (temperature, top‑k, top‑p) with a CLI, tests and extensible architecture, perfect for demonstrating systems skills to hiring managers.

November 1, 2026 · 9 min · 1816 words · martinuke0
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
Feedback