Skip to content

Grammar_mask vs grammar_strict mode #193

@Sindre01

Description

@Sindre01

Hi :)
Can someone please tell me the difference between the grammar_mask and grammar_strict mode?
What are the difference in calculation of tokens etc.

I am using constrained decoding for a low-resource language. The grammar_strict mode fails in nearly every task. When i try grammar_mask mode it passes much more often without an exception. Also, for best results in my case should i set opportunistic to True or False?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions