// TODO: I’m martinuke0

Welcome to my corner of the internet. This website is a personal blog which I use as a platform to document my learning journey and showcase it for the world to see.
Diagram of a token sampling pipeline

Temperature-Aware Top-P Nucleus Sampler with Top-K Fallback in Pure Python

A practical guide to implementing a temperature-aware nucleus sampler with top-k fallback, showcasing real systems engineering competencies.

November 9, 2026 · 7 min · 1363 words · martinuke0
HNSW graph visualization

Build a pure‑Python HNSW vector index with dynamic insertion, deletion, and neighbor queries for efficient similarity search in high‑dimensional spaces.

A practical guide to implementing a pure‑Python HNSW index for vector similarity search, covering dynamic insertion, deletion, and neighbor queries.

November 9, 2026 · 8 min · 1543 words · martinuke0
Safetensors and GGUF weight loader interface

From-Scratch Safetensors & GGUF Weight Loader with Lazy Memory-Mapped Tensor Streaming and Q4_0/Q8_0 Dequantization in Pure Python

A step‑by‑step guide to creating a lightweight, lazy‑evaluated weight loader that streams safetensors and GGUF tensors, applies Q4_0/Q8_0 dequantization, and can be dropped into any inference pipeline.

November 8, 2026 · 10 min · 2096 words · martinuke0
Python code on a laptop screen with a tree diagram

Hands-On Build Guide: Tree‑Based Speculative Decoding Engine with Medusa‑Style Draft Heads

A hands‑on implementation of tree‑based speculative decoding with Medusa draft heads in pure Python, ready to run and extend.

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