Skip to content
1 min read · 111 words

Interface: LiteRtSamplerParametersOption ​

Defined in: src/batteries/llm/litert_lm/types.ts:322

Sampler-parameters option shape (the type field accepts the numeric SamplerType value).

Properties ​

| Property | Type | Description | Defined in | | ------------------------------------------------ | -------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | k? | number | Top-K cutoff. | src/batteries/llm/litert_lm/types.ts:326 | | p? | number | Top-P (nucleus) cutoff. | src/batteries/llm/litert_lm/types.ts:328 | | seed? | number | RNG seed for reproducible sampling. | src/batteries/llm/litert_lm/types.ts:332 | | temperature? | number | Sampling temperature. | src/batteries/llm/litert_lm/types.ts:330 | | type? | number | Sampler strategy: SamplerType.TOP_K | TOP_P | GREEDY. | src/batteries/llm/litert_lm/types.ts:324 |