Table of Contents

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 allows for controlled and structured output from the model.

Grammar Grammar { get; set; }

Property Value

Grammar

Remarks

It is highly recommended to disable any repetition penalty when using the Grammar property. Use Disable() to achieve this. Disabling the repetition penalty ensures that the grammar rules are applied effectively without interference from repetition control mechanisms.