HuggingFacePromptExecutionSettings.PresencePenalty Property

Definition

Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics

[System.Text.Json.Serialization.JsonPropertyName("presence_penalty")]
public float? PresencePenalty { get; set; }
[<System.Text.Json.Serialization.JsonPropertyName("presence_penalty")>]
member this.PresencePenalty : Nullable<single> with get, set
Public Property PresencePenalty As Nullable(Of Single)

Property Value

Attributes

Applies to