Property Grammar
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Grammar
Gets or sets the Grammar object used to enforce grammatical rules during text generation. This ensures controlled and structured output from the model.
public Grammar Grammar { get; set; }
Property Value
Remarks
When the Grammar property is set to a non-null value, repetition penalties are automatically disabled. Disabling repetition penalties ensures that grammar rules are applied effectively without interference from repetition control mechanisms. Note that it is possible to reintroduce repetition penalties after altering the Grammar property value.