Parameters
Member |
Type |
Default Value |
Description |
|---|---|---|---|
topkToppSamplingType |
TopkToppSamplingType |
SINGLE_TOPK_SAMPLING |
Sampling type.
|
randSeed |
uint32_t |
0 |
Random seed used for random sampling in top-p . The default value is 0. Used when topktoppSamplingtype = SINGLE_TOPK_SAMPLING. |
topk |
uint32_t |
100 |
Number of words reserved in top-k. The value must be less than the number of words in the vocabulary. The default value is 100. The value of topk must be greater than 0 and less than or equal to the size of the last dimension of the input probs. Used when topktoppSamplingtype = SINGLE_TOPK_SAMPLING. |
randSeeds |
std::vector<uint32_t> |
- |
Random number seed used for random sampling in the top-p phase of each batch. The dimension is the same as the batch size. Used when topktoppSamplingtype = BATCH_TOPK_MULTINOMIAL_SAMPLING. |
logProbsSize |
int32_t |
0 |
It is an int-type variable of the scalar. The value range is (0, 16384]. This parameter is valid only when the enumerated value is BATCH_TOPK_EXPONENTIAL_LOGPROBS_SAMPLING or BATCH_TOPK_MULTINOMIAL_LOGPROBS_SAMPLING. |
rsv[12] |
uint8_t |
{0} |
Reserved |