Skip to content
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

SynCode for fill-in-the-middle models #82

Open
AzizCode92 opened this issue May 28, 2024 · 3 comments
Open

SynCode for fill-in-the-middle models #82

AzizCode92 opened this issue May 28, 2024 · 3 comments

Comments

@AzizCode92
Copy link

First of all, thank you for this great work!
I would like to know if Syncode can also work with fill-in-the-middle models?
If yes, how?

@shubhamugare
Copy link
Collaborator

Hi @AzizCode92,

SynCode doesn't support FIM models at this point. Do you have any specific application in your mind?

@AzizCode92
Copy link
Author

AzizCode92 commented May 28, 2024

Thanks @shubhamugare.
Not really. I was just wondering how Syncode would find the most probable next token if we have prefix, suffix parts alongside with grammar rules.
Right now, testing it for a fim model, it looks like the model is following the grammar by heart. It starts always by the first terminal I define in my grammar.
IMH, I think it would take the prefix into consideration and produce the next token from there and at the same time respect the grammar rules.
It is a challenging task I guess 😅

@shubhamugare
Copy link
Collaborator

Yeah, it is definitely not straightforward extension of what currently exists within SynCode. In theory, one can use the constraints-based on suffix (in addition to the constraint from the prefix which SynCode currently uses) to find what is an appropriate stopping criterion for the MIM model.

@shubhamugare shubhamugare changed the title Syncode for fim models Syncode for fill-in-the-middle models May 28, 2024
@shubhamugare shubhamugare changed the title Syncode for fill-in-the-middle models SynCode for fill-in-the-middle models May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants