Re:Show HN: LLMs can generate valid JSON 100% of the time
by BoorishBears on Monday August 14, 2023 @11:26PM
(#37129813)
claude-1.2-instant came out last week and is doing extremely well at following schemas.
I'd say it's reached 3.5 turbo with the format following skills of GPT-4, which is powerful once you give it chain-of-thought
I haven't gotten a chance to earnestly use the smaller Llama models yet in more than small prototypes (although I'm building a 4090-based system to learn more about finetuning them), but the little amount of experimenting I've done with them makes me think they need a decent amount of help with generating consistently-valid JSON matching some schema out of the box. This is a pretty neat tool to use for them, since it doesn't require finetuning runs, it just masks logits.