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

Structured JSON Generation #629

Open
AvivSham opened this issue Nov 13, 2024 · 1 comment
Open

Structured JSON Generation #629

AvivSham opened this issue Nov 13, 2024 · 1 comment

Comments

@AvivSham
Copy link

Hi All,
Thank you for your amazing work!
Where can we find a list of models that support Structured JSON Generation? Do all the models support that?
We were able to find a list of models in the HF playground, however, we do not know if this list is updated.

We are looking for a small LLM model (<1B) that supports structured JSON Generation.

Cheers,

@CharlieFRuan
Copy link
Contributor

CharlieFRuan commented Nov 13, 2024

Hi, thanks for the inquiry! There isn't an official list of models that support it -- our mechanism (https://github.com/mlc-ai/xgrammar) is model-agnostic. However, some models may just be better at it.

From my experience, Llama3.1, 3.2, Phi3.5, Qwen2.5, Gemma2 are all pretty good at it. You can try it out on your own, perhaps with some correctness benchmarking with datasets like https://huggingface.co/datasets/NousResearch/json-mode-eval

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