Table of Contents

Property SmoothingFactor

Namespace
LMKit.TextGeneration.Sampling
Assembly
LM-Kit.NET.dll

SmoothingFactor

Specifies the strength of the quadratic transform, an alternative to Temperature that compresses the head of the distribution instead of rescaling all of it.

public float SmoothingFactor { get; set; }

Property Value

float

The default value is 0 (disabled). Values around 0.2 are a common starting point.

Remarks

Temperature multiplies every score by the same constant, so loosening the top choices also loosens the tail. This transform is quadratic in the distance from the best candidate: good choices come closer together while poor ones fall away faster. Use 0 to disable.

Share