ML coding
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
1 write-up
| Title |
|---|
| Decoding: Greedy, Sampling and Beam Search Turning next-token logits into text in PyTorch: greedy, temperature, top-k and top-p sampling as masks over a batch, beam search checked against exhaustive search, and repetition penalties. |