using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace LLama.Native { [StructLayout(LayoutKind.Sequential)] public struct LLamaTokenData { /// /// token id /// public int id; /// /// log-odds of the token /// public float logit; /// /// probability of the token /// public float p; public LLamaTokenData(int id, float logit, float p) { this.id = id; this.logit = logit; this.p = p; } } }