Companion

Constants and factory functions of GenerationOptions.

Properties

Link copied to clipboard

All defaults: 256 tokens, temperature 0.8, top-k 40, top-p 0.95, min-p 0.05, random seed.

Link copied to clipboard

Deterministic greedy decoding.

Link copied to clipboard
const val MAX_SEED: Long = 4294967294

Largest explicit seed (0xFFFFFFFF is llama.cpp's "random" sentinel).

Link copied to clipboard
const val UNLIMITED: Int

maxTokens sentinel: no limit other than end of generation or a full context.