SamplerChain.sample

Sample the next token. batchIdx = -1 uses the last output position.

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

Meta