-
I can get token ids to be recognized by guided grammar - I have not been able to with guided regex so far. Is it just not possible? I've tried the byte marker approach from here, in Python: llguidance/docs/special_tokens.md Line 15 in b5b8b64 |
Beta Was this translation helpful? Give feedback.
Answered by
mmoskal
May 20, 2025
Replies: 1 comment
-
It's not possible to just use a regex. Instead use a lark grammar like this: start: ( <[1234]> | /myregex/ ) <[38383]> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
g-eoj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not possible to just use a regex. Instead use a lark grammar like this:
more docs