AzureAIProjectsModelFactory.ModelSamplingParams Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a set of parameters used to control the sampling behavior of a language model during text generation.
public static Azure.AI.Projects.ModelSamplingParams ModelSamplingParams(float temperature = 0, float topP = 0, int seed = 0, int maxCompletionTokens = 0);
static member ModelSamplingParams : single * single * int * int -> Azure.AI.Projects.ModelSamplingParams
Public Shared Function ModelSamplingParams (Optional temperature As Single = 0, Optional topP As Single = 0, Optional seed As Integer = 0, Optional maxCompletionTokens As Integer = 0) As ModelSamplingParams
Parameters
- temperature
- Single
The temperature parameter for sampling.
- topP
- Single
The top-p parameter for nucleus sampling.
- seed
- Int32
The random seed for reproducibility.
- maxCompletionTokens
- Int32
The maximum number of tokens allowed in the completion.
Returns
A new ModelSamplingParams instance for mocking.