SamplingParams
¶
Source code in docs_src/capo_sagemakertrainingsessionruntime/types/sampling_params.py
max_tokens
instance-attribute
¶
max_tokens: int
The maximum number of tokens to generate per sample.
seed
instance-attribute
¶
seed: NotRequired[int]
The random seed for reproducible sampling. When set, the same seed with the same input produces deterministic outputs.
stop
instance-attribute
¶
stop: NotRequired[StopSequenceList]
The list of stop sequences that terminate generation when encountered in the output.
temperature
instance-attribute
¶
temperature: float
The sampling temperature controlling randomness. Higher values produce more diverse outputs.