Skip to content

LLamaBeamView

Namespace: LLama.Native

Information about a single beam in a beam search

1
public struct LLamaBeamView

Inheritance ObjectValueTypeLLamaBeamView

Fields

CumulativeProbability

Cumulative beam probability (renormalized relative to all beams)

1
public float CumulativeProbability;

EndOfBeam

Callback should set this to true when a beam is at end-of-beam.

1
public bool EndOfBeam;

Properties

Tokens

Tokens in this beam

1
public Span<LLamaToken> Tokens { get; }

Property Value

Span<LLamaToken>