Skip to content

LLamaTokenData

Namespace: LLama.Native

A single token along with probability of this token being selected

1
public struct LLamaTokenData

Inheritance ObjectValueTypeLLamaTokenData

Fields

id

token id

1
public LLamaToken id;

logit

log-odds of the token

1
public float logit;

p

probability of the token

1
public float p;

Constructors

LLamaTokenData(LLamaToken, Single, Single)

Create a new LLamaTokenData

1
LLamaTokenData(LLamaToken id, float logit, float p)

Parameters

id LLamaToken

logit Single

p Single