Skip to content

Commit

Permalink
added notes on what each number is centered around
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDunn committed Mar 7, 2024
1 parent 7e6a6e7 commit 4c2cd79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llama-cpp-2/src/token/data_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ impl LlamaTokenDataArray {
///
/// * `ctx` - the context to use. May be `None` if you do not care to record the sample timings.
/// * `last_tokens` - the last tokens in the context.
/// * `penalty_last_n` - the number of tokens to consider for the repetition penalty.
/// * `penalty_repeat` - the repetition penalty.
/// * `penalty_freq` - the frequency penalty.
/// * `penalty_last_n` - the number of tokens to consider for the repetition penalty. (1.0 for no penalty)
/// * `penalty_repeat` - the repetition penalty. (0.0 for no penalty)
/// * `penalty_freq` - the frequency penalty. (0.0 for no penalty)
///
/// # Example
///
Expand Down

0 comments on commit 4c2cd79

Please sign in to comment.