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.
A practical guide to implementing a temperature-aware nucleus sampler with top-k fallback, showcasing real systems engineering competencies.
A practical guide to implementing a pure‑Python HNSW index for vector similarity search, covering dynamic insertion, deletion, and neighbor queries.
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.
A hands‑on implementation of tree‑based speculative decoding with Medusa draft heads in pure Python, ready to run and extend.
Implement temperature, top‑k, and top‑p sampling from scratch in pure Python, then extend the engine for production use.