LLamaTokenData
Namespace: LLama.Native
A single token along with probability of this token being selected
public struct LLamaTokenData
Inheritance Object → ValueType → LLamaTokenData
Fields
id
token id
public LLamaToken id;
logit
log-odds of the token
public float logit;
p
probability of the token
public float p;
Constructors
LLamaTokenData(LLamaToken, Single, Single)
Create a new LLamaTokenData
LLamaTokenData(LLamaToken id, float logit, float p)
Parameters
id
LLamaToken
logit
Single
p
Single