SBTB23: Omar Khattab, DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines

  Рет қаралды 5,942

FunctionalTV

FunctionalTV

Күн бұрын

The ML community is rapidly exploring techniques for prompting language models (LMs) and for stacking them into pipelines that solve complex tasks. Unfortunately, existing LM pipelines are typically implemented using hard-coded "prompt templates", i.e. lengthy strings discovered via trial and error. Toward a more systematic approach for developing and optimizing LM pipelines, we introduce DSPy, a programming model that abstracts LM pipelines as text transformation graphs, i.e. imperative computational graphs where LMs are invoked through declarative modules. DSPy modules are parameterized, meaning they can learn (by creating and collecting demonstrations) how to apply compositions of prompting, finetuning, augmentation, and reasoning techniques. We design a compiler that will optimize any DSPy pipeline to maximize a given metric. We conduct two case studies, showing that succinct DSPy programs can express and optimize sophisticated LM pipelines that reason about math word problems, tackle multi-hop retrieval, answer complex questions, and control agent loops. Within minutes of compiling, a few lines of DSPy allow GPT-3.5 and llama2-13b-chat to self-bootstrap pipelines that outperform standard few-shot prompting and pipelines with expert-created demonstrations. On top of that, DSPy programs compiled to open and relatively small LMs like 770M-parameter T5 and llama2-13b-chat are competitive with approaches that rely on expert-written prompt chains for proprietary GPT-3.5. DSPy is available as open source at github.com/stanfordnlp/dspy.
More details available here: www.scale.bythebay.io/post/om...

Пікірлер: 10
@beedr.metwallykhattab115
@beedr.metwallykhattab115 2 ай бұрын
Very good Omar Khattab يحفظكم الله ويرعاكم ويبارك فيكم
@420_gunna
@420_gunna 7 ай бұрын
dank
@vbywrde
@vbywrde 5 ай бұрын
Great! Thank you!
@julianrosenberger1793
@julianrosenberger1793 6 ай бұрын
🙏
@pensiveintrovert4318
@pensiveintrovert4318 2 ай бұрын
The whole point of LLMs is the ability to interact with them in natural language, directly. If that is gone, then FMs should be built around automation and NOT using English.
@sathishgangichetty685
@sathishgangichetty685 Ай бұрын
you are still interacting (as an end user) via natural language. This is showing how to best make sota prompting techniques available to masses without them having to learn them.
@campbellhutcheson5162
@campbellhutcheson5162 5 ай бұрын
I've met a lot of people skeptical of DSPy and these kinds of videos do nothing to dispel the skepticism. I'm 10 minutes in and we haven't seen any examples of how this is any different from ordinary prompting with an LLM. The "goal" that he describes is literally just the prompt without explicit CoT language and CoT language will probably be unnecessary with stronger models, which will better infer when they need to do CoT to reach a good result (excluding cases where output is coerced in JSON mode, etc...).
@campbellhutcheson5162
@campbellhutcheson5162 5 ай бұрын
I literally paused at 16:44 to read the produced prompt. It's fine. But, you literally had to do all the work to get there. And, I'm not sure that's substantially less than writing the prompt yourself, especially when you are going to get GPT-4 to write the first version of the prompt for you (remember turbo-preview knows what LLM prompts are).
@GURUPRASADIYERV
@GURUPRASADIYERV 5 ай бұрын
The magic is in the compiling engine underneath. The optimization will get better with open source contribution.
@thannon72
@thannon72 3 күн бұрын
Another rubbish presentation on DSPy. Do these people really understand it. Just a regurgitation of the documents
NEW TextGrad by Stanford: Better than DSPy
41:25
code_your_own_AI
Рет қаралды 10 М.
DSPy - Does It Live Up To The Hype?
16:30
Data Science In Everyday Life
Рет қаралды 5 М.
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 104 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 36 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 22 МЛН
What are AI Agents?
12:29
IBM Technology
Рет қаралды 111 М.
Neural Notes: ColBERT & ColBERTv2
31:09
Vertex Ventures US
Рет қаралды 2,8 М.
LlamaIndex Webinar: Learn about DSPy
57:16
LlamaIndex
Рет қаралды 6 М.
Understand DSPy: Programming AI Pipelines
28:21
code_your_own_AI
Рет қаралды 3,8 М.
DSPy Explained!
54:16
Connor Shorten
Рет қаралды 55 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 841 М.
Bob Nystrom - Is There More to Game Architecture than ECS?
23:06
Roguelike Celebration
Рет қаралды 197 М.
DSPy End-to-End: Meetup in San Francisco
1:32:32
Weaviate • Vector Database
Рет қаралды 4,6 М.
Фильм про побег от родителей
0:59
Holy Baam
Рет қаралды 4,6 МЛН
Doing This Instead Of Studying.. 😳
0:12
Jojo Sim
Рет қаралды 12 МЛН
IQ Level: 10000
0:10
Younes Zarou
Рет қаралды 11 МЛН
KARMA AT SCHOOL 🏫 Stop time
0:32
dednahype
Рет қаралды 51 МЛН