Share via


ModelSamplingParams Class

Definition

Represents a set of parameters used to control the sampling behavior of a language model during text generation.

public class ModelSamplingParams : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.ModelSamplingParams>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.ModelSamplingParams>
type ModelSamplingParams = class
    interface IJsonModel<ModelSamplingParams>
    interface IPersistableModel<ModelSamplingParams>
Public Class ModelSamplingParams
Implements IJsonModel(Of ModelSamplingParams), IPersistableModel(Of ModelSamplingParams)
Inheritance
ModelSamplingParams
Implements

Properties

Name Description
MaxCompletionTokens

The maximum number of tokens allowed in the completion.

Seed

The random seed for reproducibility.

Temperature

The temperature parameter for sampling.

TopP

The top-p parameter for nucleus sampling.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ModelSamplingParams>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ModelSamplingParams>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ModelSamplingParams>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ModelSamplingParams>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ModelSamplingParams>.Write(ModelReaderWriterOptions)

Applies to