Title: Grammar_mask vs grammar_strict mode · Issue #193 · structuredllm/syncode · GitHub
Open Graph Title: Grammar_mask vs grammar_strict mode · Issue #193 · structuredllm/syncode
X Title: Grammar_mask vs grammar_strict mode · Issue #193 · structuredllm/syncode
Description: 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 ...
Open Graph Description: 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-res...
X Description: 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-res...
Opengraph URL: https://github.com/structuredllm/syncode/issues/193
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Grammar_mask vs grammar_strict mode","articleBody":"Hi :)\nCan someone please tell me the difference between the grammar_mask and grammar_strict mode?\nWhat are the difference in calculation of tokens etc.\n\n\nI 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?\n\n","author":{"url":"https://github.com/Sindre01","@type":"Person","name":"Sindre01"},"datePublished":"2025-04-20T16:16:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/193/syncode/issues/193"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e68f7b57-2775-0141-4dd3-cbf477f46449 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFA0:FB0A:10A631:156FC4:6990A9CE |
| html-safe-nonce | b4838aba223bde935df63bf766fe484d2b5297fb718d4c7d57e350f6e7298dd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkEwOkZCMEE6MTBBNjMxOjE1NkZDNDo2OTkwQTlDRSIsInZpc2l0b3JfaWQiOiI2NTc2ODM4NTUyNjEyNTQ3MDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e5c3d4a619130c5ed6eb3950ee0164db96259b946565e7b1fc06465a18a27d1c |
| hovercard-subject-tag | issue:3007101892 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/structuredllm/syncode/193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d01d7e449d9416850226f6996d20a5866eb19fbc1535d39acaa925a23336f5e/structuredllm/syncode/issues/193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d01d7e449d9416850226f6996d20a5866eb19fbc1535d39acaa925a23336f5e/structuredllm/syncode/issues/193 |
| og:image:alt | 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-res... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sindre01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/structuredllm/syncode git https://github.com/structuredllm/syncode.git |
| octolytics-dimension-user_id | 204232273 |
| octolytics-dimension-user_login | structuredllm |
| octolytics-dimension-repository_id | 687211074 |
| octolytics-dimension-repository_nwo | structuredllm/syncode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 687211074 |
| octolytics-dimension-repository_network_root_nwo | structuredllm/syncode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width