Skip to content

Getting the top few transcription results #478

Answered by jongwook
shervinemami asked this question in Q&A
Discussion options

You must be logged in to vote

The best_of or beam_size option is designed to do something similar to this:

best_of: Optional[int] = None # number of independent samples to collect, when t > 0
beam_size: Optional[int] = None # number of beams in beam search, when t == 0

but these will select the one best candidate. Their difference is:

  • best_of selects multiple random samples, so it only makes sense with a nonzero temperature and will tend to generate more diverse (i.e. more likely to be wrong) samples.
  • beam_size selects the best candidates out of beam search, ranked by the likelihood. These candidates tend to be only slightly different.

So t…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@shervinemami
Comment options

@abarcovschi
Comment options

@shervinemami
Comment options

Answer selected by jongwook
Comment options

You must be logged in to vote
4 replies
@shervinemami
Comment options

@aehlke
Comment options

@EgSam
Comment options

@hpjang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants