mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
use u32
This commit is contained in:
parent
d5ab76cdfb
commit
41767b651f
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user