Loading video...

Video Failed to Load

Go Home

🚀 Excited to announce the first release of a novel open source programming language and platform for language model interaction! Combining prompts, constraints & scripting, LMQL elevates the capabilities of large language models. 🧵1/6 A quick tour.

198,966 views • 3 years ago •via X (Twitter)

9 Comments

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

🧵2/6 LMQL is a declarative, SQL-like language based on Python, extending static text prompting with control-flow, constraint-guided decoding and tool augmentation. This form of scripting greatly simplifies multi-part prompting flows with very little code necessary:

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

🧵3/6 LMQL supports high-level, logical constraints. Using novel evaluation semantics, constraints are translated to token masks that are enforced eagerly during generation. Using LMQL constraints, you can steer text generation, and avoid costly re-querying and validation:

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

🧵4/6 LMQL integrates with 🤗 Transformers, the OpenAI API & langchain. Explore our developer resources at and experiment with the entirely browser-based Playground IDE at

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

🧵5/6 LMQL is an actively evolving project at @the_sri_lab @ETH , that has been in development for almost a year! We're excited to finally release this to the research & developer community with more underway, including work on decoders, tool augmentation & language improvements

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

🧵6/6 LMQL was also accepted as a research paper at this year's ACM PLDI'23. Check out the paper and make sure to follow @lmqllang for more updates in the coming days. 📑 Paper: 📖 Docs: ⚡️ Playground IDE:

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

A research project by the @the_sri_lab, @ETH_en, @ETH, @ETH_AI_Center, @CSatETH. Authored by @lbeurerkellner @marc_r_fischer @mnmueller @mvechev.

Dan Treasure's profile picture
Dan Treasure3 years ago

@karpathy Would it be accurate to describe this as a “lower-code” version of langchain?

LMQL (Language Model Query Language)'s profile picture
LMQL (Language Model Query Language)3 years ago

@CodeTreasurer @karpathy Not quite. @LangChainAI is compositional, and LMQL operates on the decoder level of a query/prompt with multiple variables. In that sense they are orthogonal. In fact, LMQL and langchain are fully compatible and can be used together (both ways):

Maney's profile picture
Maney3 years ago

Why would i need this?

Related Videos

VITA Towards Open-Source Interactive Omni Multimodal LLM discuss: The remarkable multimodal capabilities and interactive experience of GPT-4o underscore their necessity in practical applications, yet open-source models rarely excel in both areas. In this paper, we introduce VITA, the first-ever open-source Multimodal Large Language Model (MLLM) adept at simultaneous processing and analysis of Video, Image, Text, and Audio modalities, and meanwhile has an advanced multimodal interactive experience. Starting from Mixtral 8x7B as a language foundation, we expand its Chinese vocabulary followed by bilingual instruction tuning. We further endow the language model with visual and audio capabilities through two-stage multi-task learning of multimodal alignment and instruction tuning. VITA demonstrates robust foundational capabilities of multilingual, vision, and audio understanding, as evidenced by its strong performance across a range of both unimodal and multimodal benchmarks. Beyond foundational capabilities, we have made considerable progress in enhancing the natural multimodal human-computer interaction experience. To the best of our knowledge, we are the first to exploit non-awakening interaction and audio interrupt in MLLM. VITA is the first step for the open-source community to explore the seamless integration of multimodal understanding and interaction. While there is still lots of work to be done on VITA to get close to close-source counterparts, we hope that its role as a pioneer can serve as a cornerstone for subsequent research.

AK

23,958 views • 1 year ago