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

Documentation of interleaving support in generation / in filling / transformers support? #812

Open
randomcodelookup opened this issue Apr 12, 2024 · 0 comments

Comments

@randomcodelookup
Copy link

randomcodelookup commented Apr 12, 2024

What behavior of the library made you think about the improvement?

Hi @rlouf from reading the documentation, I am missing a few things:

  1. Is infilling currently supported? The documentation under README says that Interleave completions is supported but I cannot find a way to get this done. Could be missing something here How to use gen fields in outlines?  #176 but the examples from that PR don't work even after refactoring the imports. The main goal is to get to something like https://github.com/guidance-ai/guidance/tree/main?tab=readme-ov-file#guidance-acceleration

  2. I was reading your blog https://blog.dottxt.co/coalescence.html#org5a801d9 and saw that you mentioned structured generation is 5x faster than vanilla generation. Is this something available in outlines now? From my tests, using logitsprocessor is a few times slower than not using it as expected (transformers version only). Furthermore, is the 5X speed based on enabling sampling in generate?

  3. Is there benchmark code to compare structured vs unstructured generation for this speed comparison? I am interested in using the logitsprocessor provided but it does seem that the speed is slower in my experience, and I'm wondering if I'm doing this wrongly. Intuitively, this should be slower and not faster, due to the need for extra processing during generation right?

Would appreciate any pointers here thank you!

How would you like it to behave?

Example code and documentation with code pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant