Тёмный

PAL : Program-aided Language Models with LangChain code 

Sam Witteveen
Подписаться 64 тыс.
Просмотров 14 тыс.
50% 1

This video goes through the paper Program-aided Language Models and shows how it is implemented in LangChain and what you can do with it. To access all the code please use the Colab link below. Let me know in the comments what other videos you would like to see.
Colab:[drp.li/cdhf2](drp.li/cdhf2)
PAL Paper website: reasonwithpal.com/
PAL Paper: arxiv.org/abs/2211.10435
120 Math Word Problems: www.prodigygame.com/main-en/b...
My Links:
Twitter - / sam_witteveen
Linkedin - / samwitteveen
Github:
github.com/samwit/langchain-t...
github.com/samwit/llm-tutorials
00:00 PAL Paper
02:35 PAL example prompts in the paper
04:52 Paper Results vs CoT & Direct prompting
05:37 Sample Outputs
07:34 Code Walkthrough
09:35 PAL LangChain PromptTemplate
11:57 GSM8k examples
12:55 Repeat Copy examples
14:06 Word Math Problems
16:00 Colored Objects
#LangChain #BuildingAppswithLLMs #python

Наука

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@goelnikhils
@goelnikhils Месяц назад
Very good video on Program-Aided Large Language Models
@mitchellscott2992
@mitchellscott2992 Год назад
Fantastic videos Sam - this playlist has (happily) consumed my entire night. Who needs fresh laundry anyway?!
@samwitteveenai
@samwitteveenai Год назад
Hopefully the LLMs can do the laundry soon. :D Thanks for the kind words.
@GeoffY2020
@GeoffY2020 Год назад
Fantastic video ! I watched it like 3 times over last few days as it makes me think what to append to make LLM useful ... feed us more ! thanks
@samwitteveenai
@samwitteveenai Год назад
Glad you enjoyed it! There are a few more papers this with cool examples of using prompting to do unconventional things. You might like the video and code on Visual ChatGPT which uses other external tools via prompting as well.
@daniel_grindforce994
@daniel_grindforce994 Год назад
Great job man. I subbed. Lets keep em coming!
@florianstephan5745
@florianstephan5745 Год назад
Hey Sam, great Channel, appreciate it!!!!
@ObservingBeauty
@ObservingBeauty Год назад
Great video. Very helpful
@samwitteveenai
@samwitteveenai Год назад
Glad it was helpful!
@jacktherater3533
@jacktherater3533 Год назад
Makes sense. Even I can't do math without calculator.
@shouldb.studying4670
@shouldb.studying4670 Год назад
+
@ratral
@ratral Год назад
Sam, When I first saw the video, the PAL module's importance was unclear to me (mea culpa). Now watching the video again and reading the article, I recognize great potential. Thanks for the clarification.
@samwitteveenai
@samwitteveenai Год назад
unfortunately that model is no longer publicly available on OpenAI.
@scottstults8756
@scottstults8756 Год назад
In March of 2023 OpenAI deprecated the code-davinci-002 model. You can get the first example to run if you replace it with "gpt-3.5-turbo".
@MrAkhilanil
@MrAkhilanil 8 месяцев назад
Hey great video, what did you mean when you said the example with reaching to school is incorrect because there were no similar prompts before. I can see it followed the exact same step as the first example.
@AndiEliot
@AndiEliot 9 месяцев назад
Please note PALChain has now moved to langchain_experimental. Also code-davinci-002 model does not work use gpt-3.5-turbo instead.
@samwitteveenai
@samwitteveenai 9 месяцев назад
Yes this video was made over 6 months ago and they have changed, gpt-3.5-turbo is also not the best at PAL. GPT-4 works better but some of the open source models have also been getting better lately too.
@1peacockeye
@1peacockeye Год назад
Thank you very much for your fantastic videos! Can a PAL also be simulated within a LLM? So, through specific prompting the LLM simulates a Python environment in which it does the calculation and then returns the answer? Does that make sense?
@samwitteveenai
@samwitteveenai Год назад
It has been tried and can work to a degree, but often will get small parts wrong and thus hasn't been reliable so far.
@jakubbartczuk3956
@jakubbartczuk3956 Год назад
Hey man, great video. Did you read LMQL paper by any chance?
@samwitteveenai
@samwitteveenai Год назад
I did its certainly an interesting idea. I might make a vid on it.
@venkatesanr9455
@venkatesanr9455 Год назад
Thanks for your video, Sam. I hav one doubt whether langchain+LLMs like flan T5 x, T5 xl, flan 20 B & flan UL20B accessing using huggingface tokens ( other than downloading model) is free of service. When we are considering alternative to open ai gpt3 models.
@samwitteveenai
@samwitteveenai Год назад
Their API is is not a totally free of service and to be honest I wouldn't use the free version to put something into production, that said I have never maxed out my free API calls so far. There doesn't seem to be a lot of info on their pricing page huggingface.co/pricing this could be that they are in startup mode to get lots of users before charging etc. The main disadvantage I have seen is that some of the bigger models often don't work with the API. I do wonder how long they will keep the Flan UL20B up for free for example. If I find something better I will certainly make a video of it. If you find something else please let me know :D
@henkhbit5748
@henkhbit5748 Год назад
Nice and interesting if u want to aks more math question, you used code-davinci-02 in the setup for pal but can u combine it with the normal llm like chatgpt-turbo3.5 ?
@samwitteveenai
@samwitteveenai Год назад
Yes but it doesn't always work as well. unfortunately the code-002 model has now been taken down on the OpenAI API. GPT-4 does a pretty good job
@nicolasmenescardi4077
@nicolasmenescardi4077 6 месяцев назад
great video! Is OpenAI function calling replacing this?
@samwitteveenai
@samwitteveenai 6 месяцев назад
they can if used with REPL etc but function calling has more replaced ReACT etc.
@bandui4021
@bandui4021 Год назад
What would be the approach to find the issue why it is calculating wrongly? Is there a way to look into the NN or we are just changing the prompt and hope for a better result. So my question is how we could "look" into the NN to find the error or i am thinking to easy? Thanks
@samwitteveenai
@samwitteveenai Год назад
probing in the NeuralNet it's self is a major research effort. Most likely if it is the model itself that is calculating wrongly, then it just hasn't seen enough examples. If the issue is with PAL then I would suggest you work on modifying the prompt.
Далее
Microsoft's Visual ChatGPT using LangChain
13:59
Просмотров 13 тыс.
Understanding ReACT with LangChain
21:10
Просмотров 45 тыс.
Бмв сгорела , это нормально?
01:01
Information Extraction with LangChain & Kor
17:05
Просмотров 20 тыс.
Query Images using Llava LLM
18:08
Просмотров 1,2 тыс.
Comparing LLMs with LangChain
17:43
Просмотров 16 тыс.
"No AGI without Neurosymbolic AI" by Gary Marcus
36:09
Large Language Models in Five Formulas
58:02
Просмотров 33 тыс.