News for hackers. Stuff that matters.
Re:Inversion: Fast, Reliable Structured LLMs by azeirah on Tuesday March 19, 2024 @03:03AM (#39753527)
I've been doing a lot of indie work with structured generation and llama.cpp, you can get extremely fast responses with caching and deterministic token skipping.

When generating json, calling the llm when you already know that after

    { "brand": "Toyota"
Comes

     , "year": 
Is a massive waste. If the data itself is constrained too you can skip most of that too! You'll go down from needing 20 calls to the llm to just three for a simple piece of data like

    { "brand": "Toyota", "year": 1995 }
If they combine these techniques with a model that's specifically trained for structured output, along with a novel inference-time pruning technique that they were talking about in the post I can definitely see them getting these kinds of inference speeds.

I'm experimenting with a self hosted api that is fast enough to not even need a gpu for single user use cases (because the latency is good, but not batching). Once I'm done with the finishing touches I'll rent a GPU server for actual hosting.

Re:Inversion: Fast, Reliable Structured LLMs by Incipient on Tuesday March 19, 2024 @03:40AM (#39753694)
Have you seen any blog posts that have some details on this? I can imagine, roughly, the concept but it sounds interesting and I'd like to get a better understanding.
Re:Inversion: Fast, Reliable Structured LLMs by azeirah on Tuesday March 19, 2024 @01:23PM (#39758126)
Yeah, dottxt has a post on this, it's a technique starting with a c I believe, something like continuum or something?

The op also has something about compressing finite state machines, it's basically the same thing with slightly different details in the implementation.

Re:Inversion: Fast, Reliable Structured LLMs by fzysingularity on Tuesday March 19, 2024 @02:47PM (#39758956)
Re:Inversion: Fast, Reliable Structured LLMs by Incipient on Tuesday March 26, 2024 @02:03AM (#39824657)
Thanks!