This commit is contained in:
OlivierDehaene 2023-01-31 16:51:32 +01:00
parent d5ab76cdfb
commit 41767b651f
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ message NextTokenChooserParameters {
/// exponential scaling output probability distribution /// exponential scaling output probability distribution
float temperature = 1; float temperature = 1;
/// restricting to the k highest probability elements /// restricting to the k highest probability elements
int32 top_k = 2; uint32 top_k = 2;
/// restricting to top tokens summing to prob_cut_off <= prob_cut_off /// restricting to top tokens summing to prob_cut_off <= prob_cut_off
float top_p = 3; float top_p = 3;
/// apply sampling on the logits /// apply sampling on the logits

View File

@ -156,7 +156,7 @@ fn validate(
let parameters = NextTokenChooserParameters { let parameters = NextTokenChooserParameters {
temperature, temperature,
top_k, top_k: top_k as u32,
top_p, top_p,
do_sample, do_sample,
seed, seed,