A Unified Sampling Engine in Python: Temperature, Top‑k, Top‑p, Typical, and Epsilon‑Cutoff
A hands‑on guide to implementing a unified sampling engine that merges temperature, top‑k, top‑p, typical, and epsilon‑cutoff strategies, ready to run and extend for CV signals.
From-Scratch Safetensors & GGUF Weight Loader in Pure Python
A hands‑on guide to building a from‑scratch safetensors & GGUF weight loader in pure Python, using mmap zero‑copy views and on‑the‑fly Q4_K/Q5_K dequantization – a tangible project that signals low‑level ML systems competence.
Build a FlashAttention Kernel from Scratch in Pure Python
A step‑by‑step guide to implementing FlashAttention in pure Python, with runnable code and production‑ready extensions.
From‑Scratch GPTQ int4/int8 Post‑Training Quantizer with Group‑Wise Scales and Hessian Error Compensation
A hands‑on NumPy implementation of GPTQ post‑training quantization with group‑wise scales and Hessian error compensation, ready to embed in any CV/ML portfolio.
Designing a Two-Tier Redis Cache with Write-Behind Invalidation for Read-Heavy APIs
A deep dive into two-tier Redis caching with write‑behind invalidation, covering architecture, data flow, and production‑ready patterns.