Commit 29f93ea
Add grammar fields to GenerationConfig for constrained decoding
Summary:
Add grammar (string) and grammar_type (string) fields to GenerationConfig.
Empty-string defaults, no behavior change when empty. Prepares for
grammar-constrained decoding integration (e.g. JSON schema, regex).
Differential Revision: D1052772611 parent 08a584b commit 29f93ea
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
0 commit comments