Share via


HuggingFacePromptExecutionSettings.UseCache Property

Definition

(Default: true). Boolean. There is a cache layer on the inference API to speedup requests we have already seen. Most models can use those results as is as models are deterministic (meaning the results will be the same anyway). However if you use a non deterministic model, you can set this parameter to prevent the caching mechanism from being used resulting in a real new query.

[System.Text.Json.Serialization.JsonPropertyName("use_cache")]
public bool UseCache { get; set; }
[<System.Text.Json.Serialization.JsonPropertyName("use_cache")>]
member this.UseCache : bool with get, set
Public Property UseCache As Boolean

Property Value

Attributes

Remarks

This may not be supported by all models/inference API.

Applies to