Concept

Beam Size in Beam Search

The most straightforward version of beam search relies on a single hyperparameter called the beam size, denoted as kk. The beam size specifies the exact number of top candidate sequences that the algorithm maintains at each generation time step, providing a flexible trade-off between the accuracy of the output and the overall computational cost.

0

1

Updated 2026-05-14

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

D2L

Dive into Deep Learning @ D2L

Related