HackerTrans
トップ新着トレンドコメント過去質問紹介求人

btwillard

no profile record

投稿

How fast can grammar-structured LLM generation be?

blog.dottxt.co
2 ポイント·投稿者 btwillard·2 年前·0 コメント

Show HN: VLLM with JSON Guided Generation

outlines-dev.github.io
11 ポイント·投稿者 btwillard·3 年前·3 コメント

Show HN: An open-source alternative to OpenAI function calling

outlines-dev.github.io
4 ポイント·投稿者 btwillard·3 年前·1 コメント

コメント

btwillard
·2 年前·議論
I hope that person is paying you for this positive PR spin!
btwillard
·2 年前·議論
As others here are saying, the rules are the same for everyone in that anyone can effectively buy their freedom (even if only gradually over time). The practical difference is that most people can't afford it.
btwillard
·3 年前·議論
Obviously it depends on exactly what those opinions will end up being. It's hard to dispel the idea that every other big company isn't trying to find a way to do exactly the same things as the other big players, just somewhere else down the line. My anticompetitive-potential detector definitely went off as soon as I read that headline.
btwillard
·3 年前·議論
OpenAI function calling provides a means of producing valid JSON from a function signature, or a simplified version of a JSON schema definition; however, it has two big downsides:

1. it doesn't work with open-source models, and 2. sometimes the JSON it produces will not even parse.

A similar interface was recently merged into our open-source project Outlines. The approach can be extended to any open-source model and it can guarantee that the output will be parsable JSON.

Constructive feedback, bug reports, feature requests, and questions are greatly appreciated!
btwillard
·3 年前·議論
In my experience, that's always been the standard among Vim--and even some Emacs--users.
btwillard
·3 年前·議論
We've considered it, but I haven't started any work on it. Feel free to create an issue to track the status, if only to find out who else might be interested and/or working on it.
btwillard
·3 年前·議論
We provide this in https://github.com/outlines-dev/outlines.
btwillard
·3 年前·議論
Our project Outlines provides JSON output in a near optimal way that also works for all types of pre-trained transformer-based LLMs: https://github.com/outlines-dev/outlines

Our approach also extends to EBNF grammars and LALR parsing. There's an example of that in the repository. It builds off of the Lark library, so you can use existing grammar specifications instead of starting from scratch.
btwillard
·3 年前·議論
In case anyone is wondering, this is essentially a few complaints about the basic transpilation/source-to-source approach taken by Cython and then some promotion for Rust. It unfortunately mixes some general C/C++ complaints in there, too.
btwillard
·3 年前·議論
We also had an implementation of grammar-driven guidance around the same time: https://github.com/normal-computing/outlines/pull/131. I imagine many others did as well, given all the papers we found on the subject. The point of this and our ongoing work is the availability of very low cost guidance, which was implemented a while ago for the regex case and expanded upon with JSON.
btwillard
·3 年前·議論
FYI: We've had grammar constraints available in Outlines for a while, but not using the FSM and indexing approach that makes the regex case so fast. My open PR only adds that.
btwillard
·3 年前·議論
Ha, yeah, in a distant, but really fun, past!
btwillard
·3 年前·議論
The underlying approach can improve the performance of anything that requires the set of non-zero probability tokens at each step, and anything that needs to continue matching/parsing from a previous state.
btwillard
·3 年前·議論
Yeah, and our addition to all that is to almost completely remove the cost of determining the next valid tokens on each step.
btwillard
·3 年前·議論
With our indexing approach, it only costs a dictionary lookup to get the next valid tokens during each sampling step, so very little latency.
btwillard
·3 年前·議論
> It means I have exceptionally high confidence that this will be the biggest thing to hit the economy, society and markets in the last hundred years for good and ill.

How does having ADHD and/or Asperger's mean that? Are you implying that those give people high confidence?
btwillard
·3 年前·議論
We're working on some of the DSL-related parts of this in https://github.com/aesara-devs
btwillard
·3 年前·議論
It sounds like you're saying you want to hire people who weren't laid off? If so, what's the reasoning behind this?
btwillard
·3 年前·議論
Eh, Steve!?