-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Index
from regex
#125
base: main
Are you sure you want to change the base?
Conversation
Supersedes #38? |
Yes, it will |
fa36be9
to
5b8808d
Compare
88d609b
to
52edc6d
Compare
1a8831a
to
bf6e8a6
Compare
mask: List[int] = [1 if s in allowed else 0 for s in range(1, n_tokens + 1)] | ||
tokens = model(tokens, mask=mask) | ||
state = fsm.get_next_state(state, tokens[-1]) | ||
allowed = guide.read_next_token(tokens[-1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dpsimpson Could you, please, take a look at this failing test: https://github.com/dottxt-ai/outlines-core/actions/runs/12695987037/job/35389081344
Interface has changed and I updated it here somewhat accordingly, but it needs to be checked, for example I added third value to Vocabulary
(instead of eos token before that) just for the sake of keeping the dimensions right, I suspect that could be incorrect 😅
But overall, since its statistical, it goes over my head to fully understand the intentions and adjust properly expected testing values or construction logic, so I would really appreciate your help here 🙏
index
from regex #97interegular
functionality #38 and closes Port necessaryinteregular
functionality #8walk_fsm
tests to Rust #68create_fsm_index_end_to_end
tests to Rust #69test_guide
tests totest_regex
#71Rust
Index
from regex withregex-automata
Token
type fromString
toVec<u8>
Vocabulary
'seos_token_id
fromOption<TokenId>
toTokenId
Index
interfaceIndex
python binding interfaceVocabulary
interfaceVocabulary
python binding interfaceinterregular
workflowGuide
python bindingPython
interregular
workflowGuide
,Index
&Vocabulary