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.