Skip to content

Commit 4c2cd79

Browse files
committed
added notes on what each number is centered around
1 parent 7e6a6e7 commit 4c2cd79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llama-cpp-2/src/token/data_array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ impl LlamaTokenDataArray {
9393
///
9494
/// * `ctx` - the context to use. May be `None` if you do not care to record the sample timings.
9595
/// * `last_tokens` - the last tokens in the context.
96-
/// * `penalty_last_n` - the number of tokens to consider for the repetition penalty.
97-
/// * `penalty_repeat` - the repetition penalty.
98-
/// * `penalty_freq` - the frequency penalty.
96+
/// * `penalty_last_n` - the number of tokens to consider for the repetition penalty. (1.0 for no penalty)
97+
/// * `penalty_repeat` - the repetition penalty. (0.0 for no penalty)
98+
/// * `penalty_freq` - the frequency penalty. (0.0 for no penalty)
9999
///
100100
/// # Example
101101
///

0 commit comments

Comments
 (0)