SampleConfig
¶
Source code in docs_src/capo_sagemakertrainingsessionruntime/types/sample_config.py
include_prompt_logprobs
instance-attribute
¶
include_prompt_logprobs: bool
Specifies whether to include per-token log-probabilities for the input prompt in the response.
model_package_arn
instance-attribute
¶
model_package_arn: NotRequired[str]
The ARN of the model package whose checkpoint this sample should run against. Must be a valid SageMaker model package ARN in the format arn:aws:sagemaker:REGION:ACCOUNT:model-package/PACKAGE_NAME/VERSION. When absent, the sample runs against the session's latest checkpoint.
num_samples
instance-attribute
¶
num_samples: int
The number of independent samples to generate for the prompt.
prompt
instance-attribute
¶
prompt: ModelInput
The input prompt to send to the model for text generation.
sampling_params
instance-attribute
¶
sampling_params: SamplingParams
The parameters controlling the sampling strategy.