loopprep

Beam Search Decoding

total 00:00
Hard48 minPremium Asked at Perplexity

    Decode text from a language model the way inference does it: start greedy, keep a beam of the best sequences, rank them with a length penalty, block repeated phrases, and stop the moment no unfinished beam can win.

    The five steps
    1. Greedy decoding 8 min
    2. Keep a beam 10 min
    3. Rank by length 9 min
    4. Block repeats 10 min
    5. Stop when settled 11 min