YUNOVA · Natural Language Processing · Module 11: Search and generation
Decoding strategies: beam search, temperature and top-p
Decoding strategies: beam search, temperature and top-p
Key points
- Greedy decoding always picks the most likely next token.
- Beam search keeps several candidate sequences at once.
- Temperature and top-p sampling control how random the output is.