Skip to content

Support different backends on top of outlines_core #1689

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

RobinPicard
Copy link
Contributor

@RobinPicard RobinPicard commented Jul 16, 2025

Edited 2025/07/21

Closes #1654

Not included/to be done in separate PRs:

  • Use a lower level API of xgrammar to see whether we could have support for LlamaCpp and MLXLM
  • Update the documentation on CFG formats (Lark vs. EBNF) and look at whether we could support format translations
  • Upgrade the version of outlines-core used

@RobinPicard RobinPicard self-assigned this Jul 16, 2025
self,
model: SteerableModel,
output_type: Optional[Any],
backend_name: Optional[str] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You call it backend everywhere else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to call it just backend for the user-facing API so it's short, but then internally calling it backend_name to distinguish it from a Backend instance.

@RobinPicard RobinPicard force-pushed the add_different_backends branch 2 times, most recently from f340eba to dc1e98a Compare July 21, 2025 08:43
@RobinPicard RobinPicard marked this pull request as ready for review July 21, 2025 08:43
@RobinPicard RobinPicard requested a review from rlouf July 21, 2025 08:43
@RobinPicard RobinPicard force-pushed the add_different_backends branch 4 times, most recently from c38a57e to b367c33 Compare July 22, 2025 10:00
@RobinPicard RobinPicard force-pushed the add_different_backends branch from b367c33 to a71750f Compare July 22, 2025 12:45
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

Successfully merging this pull request may close these issues.

Integrate other structured generation backends
2 participants