470 karma · joined Feb 15, 2014 (12y ago) · 134 submissions
comment 10mo ago · link · parent
If the authors or readers are interested in some of the more technical details of how we optimized guidance & llguidance, we wrote up a little paper about it here: https://guidance-ai.github.io/llguidance/llg-go-brrr
comment 1y ago · link · parent
We have support for Huggingface Transformers, llama.cpp, vLLM, SGLang, and TensorRT-LLM, along with some smaller providers (e.g. mistral.rs). Using any of these libraries as an inference host means you can use an OSS model with the guidance backend for full support. Most open source models will run on at least one of these backends (with vLLM probably being the most popular hosted solution, and transformers/llama.cpp being the most popular local model solutions)
We're also the backend used by OpenAI/Azure OpenAI for structured outputs on the closed source model side.
comment 1y ago · link · parent
The annoying bit with grammars is that they are unfortunately a bit complex to write properly. Fortunately language models are getting better at this, so hopefully to get an XML grammar, you can get most of the way there with just a GPT-5 prompt. Suppose it would be a good idea to have a better pre-built set of popular grammars (like a modified XML) in guidance so that we cut this headache out for users...!
comment 1y ago · link · parent
Happy to chat more about the benchmark. Note that these are a bit out of date though, I'm sure many of the providers we tested have made improvements (and some have switched to wholesale using llguidance as a backend)
comment 1y ago · link · parent
Great question re: adoption...it's definitely dominated by JSON. Most API providers have standardized on JSON outputs, so application teams have started building shims that map other formats to JSON and back. Similarly, with models heavily being post-trained to generate "good" JSON, I think there's a better model-constraint alignment story with JSON than most arbitrary grammars.
That said, internally, we experiment quite a lot with custom grammars all across the stack. It's more complicated to write a grammar than a JSON schema (though LMs are very good at grammar writing now) and more error prone to debug, but it can help significantly in certain cases (e.g. having models write custom DSLs not commonly found on the internet, at various parts of a model training pipeline, etc. etc.). I'm hoping that with the right tooling around it, the broader community will start nudging beyond JSON.
To that end, the python guidance library is really an attempt to make writing grammars more friendly to a python programmer. More to be done here of course!
comment 1y ago · link · parent
Other libraries work by essentially pre-computing all the masks for all possible generations, but of course you're restricted to working with simple grammars in this case (like a subset of regular expressions)
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
User friendly library that connects to lots of OSS model serving backends: https://github.com/guidance-ai/guidance/
Core Rust library written for high performance mask computation (written mostly by my collaborator @mmoskal): http://github.com/guidance-ai/llguidance
comment 1y ago · link · parent
The distillation paper added minor parameter tweaks and had a fancier name, but the essence of the method came from Caruana et. al's model compression paper: https://dl.acm.org/doi/abs/10.1145/1150402.1150464
comment 1y ago · link · parent
14.
Sequential Diagnosis with Language Models(arxiv.org ↗)
2 points · by FlyingLawnmower · 1y ago · 1 comment
comment 1y ago · link · parent
My first try with o1. Seems right to me…what does this teach us about LLMs :)?
comment 2y ago · link · parent
For practitioners, using a framework like Guidance which forces the models to write valid JSON as they generate text solves this trivially (https://github.com/guidance-ai/guidance)
For json in particular these frameworks have functions that take in json schemas or pydantic schemas https://guidance.readthedocs.io/en/latest/generated/guidance...
18.
Prompt Engineered GPT-4 Beats Gemini on all of Google's text benchmarks(microsoft.com ↗)
21 points · by FlyingLawnmower · 2y ago · 3 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
21.
GPT-4 beats ChatGPT by over 30 points on Medical Challenge Problems(microsoft.com ↗)
1 points · by FlyingLawnmower · 3y ago · 1 comment
comment 5y ago · link · parent
Studies like this [1] led me to believe that massive rises in administration costs and inefficiencies due to insurance structure are bigger culprits than doctor/nurse salaries. But I am admittedly not very well informed in this area.
comment 5y ago · link · parent
E.g. from the FAQ: "We do intend to release aggregated data sets in the public good to foster an open web. When we do this, we will remove your personal information and try to disclose it in a way that minimizes the risk of you being re-identified."
It's a little worrying to think that this disclosure process might be done with no formal privacy protection. See the Netflix competition, AOL search dataset, Public Transportation in Victoria, etc. case studies of how non-formal attempts at anonymization can fail users.
comment 6y ago · link · parent
which was a precursor to the model distallation work from Geoff Hinton: https://arxiv.org/abs/1503.02531
comment 6y ago · link · parent
comment 7y ago · link · parent
Can someone more educated in how these fines work teach me about how these numbers are calculated?
comment 8y ago · link · parent
Additionally, even a modest list of attributes can be sufficient to uniquely identify someone.
I think limiting collection is a good thing in general, but to meet your stated goals, we unfortunately have to do more.