SamplerChain.sample

Sample the next token from a LlamaContext.

  1. llama_token sample(llama_context* ctx, int batchIdx)
  2. llama_token sample(LlamaContext ctx, int batchIdx)
    struct SamplerChain
    @nogc nothrow
    llama_token
    sample
    (,
    int batchIdx = -1
    )

Meta