Top-k / Top-p Filter
Filter logits with top-k followed by top-p. A free ML coding interview task on NudgeCode: write it in Python and check it with tests in your browser. Medium · Sampling, Optimization · from Transformer Inference Building Blocks.
Filter logits with top-k followed by top-p.