You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llama.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -487,11 +487,11 @@ extern "C" {
487
487
/// @param callback Invoked for each iteration of the beam_search loop, passing in beams_state.
488
488
/// The return beam_search_control can be used to control the beam_search execution.
489
489
/// @param callback_state A pointer that is simply passed back to callback.
490
-
/// @param beam_width The number of parallel beams to use.
491
-
/// @param n_past The number of tokens already evaluated.
492
-
/// @param n_predict The maximum number of tokens to predict.
493
-
/// @param n_threads The maximum number of threads as passed to llama_eval().
494
-
LLAMA_API voidllama_beam_search(structllama_context * ctx, llama_beam_search_callback_fn_t callback, void* callback_state, size_tbeam_width, int n_past, int n_predict, int n_threads);
490
+
/// @param n_beams Number of beams to use.
491
+
/// @param n_past Number of tokens already evaluated.
492
+
/// @param n_predict Maximum number of tokens to predict. EOS may occur earlier.
493
+
/// @param n_threads Number of threads as passed to llama_eval().
494
+
LLAMA_API voidllama_beam_search(structllama_context * ctx, llama_beam_search_callback_fn_t callback, void* callback_state, size_tn_beams, int n_past, int n_predict, int n_threads);
0 commit comments