Build Prompt Tuning & Prefix Tuning for LLMs: Soft Prompt Engineering Beats Fine Tuning

preview_player
Показать описание
Learn to apply Prompt Tuning and Prefix Tuning, automate Prompt Engineering to improve LLMs.

I show you how Advanced Soft Prompt Engineering techniques, being Prompt Tuning and Prefix Tuning, automate Prompt Engineering and also are as good as or even better than fine tuning LLM ( large language models ).

This is the 2nd video in my LLM series. Watch this 9-minute video to Elevate your LLM models! I show you how to implement them with PyTorch so you can try them for your own LLM use case.

I'll also explain the LADDER of LLM models, from off-the-shelf options to completely pre-trained models, and the various interactions with LLMs, from hard prompt engineering to Retrieval-Augmented Generation ( RAG LLM ). By the end of this tutorial, you'll understand what Prompt Engineering is, why Prompt Tuning and Prefix Tuning are superior to hard prompts (Prompt Design) and Fine Tuning LLM, and how to implement these methods in your own data science projects.

︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾
︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽︽

⏰ Timecodes ⏰
0:00 Intro
0:27 LLMs Ladder - Model Source & Interaction
1:41 When to Use Fine Tuning or Prompt Engineering or RAG
2:23 Prompt Engineering - Hard Prompts (many shot prompting & meta prompting)
3:18 Prompt Drift
3:40 Prompt Tuning (Soft Prompting) and Comparison with Fine Tuning
4:33 Virtual Tokens
4:48 Pytorch Implementation of Prompt Tuning
5:47 FREE Data Science Guid with 100 Python Libraries
7:07 Prefix Tuning
7:47 Pytorch implementation of Prefix Tuning
8:43 DSPy, Langchain, Langgraph, Langsmith

#gpt #openai #ai #pytorch #prompting #huggingface #langchain #ollama #ai #llm #promptengineering #finetuning #rag
#largelanguagemodels #openai
Рекомендации по теме
Комментарии
Автор

I truly appreciate your hard work and your honest attempt to share your knowledge. 🙏

AdarshKumar-sjdn
Автор

hello mam iam from nepal and has been loving your content.Iam expecting a lang graph series as well as other data science projects from you also free data science guide mam

pradeepjungkarki
Автор

I appreciate you sharing your experiences and I have the utmost respect for your work

alishafii
Автор

This is incredible, i also want Free Data science Guide

MrDrumballer
Автор

Hello mam your unique projects series was great please add more unique project modules in it

ommanojsharma
Автор

kindly post full course video about "Claude 3.5 sonnet model" fine tuning and API

hendoitechnologies
Автор

Well explained .. thanks for the gr8 video

shettysajith
Автор

Thank you so much for your amazing videos. This is really helpful for beginner in using Hugging Face.

sitimariyah
Автор

​ @maryammiradi thanks f
or the response mam this no mam I am not a data scientist i am undergrad still in the college learning about the field of data science and this are the topics which i find challenging -

1) Doing the eda and feature engineering on the raw dataset and this is the most crucial step before implementing the machine learning solution

2) Not having the idea about how to implement the time series data end to end production ready system using the MLops tools

3) how to do the hyperparameter tuning of our deep learning architecture as when I do that it gets overfitted

4) how to implement the research paper using the pytorch as it is a most valuable and essential skill to become a top tier data sciencetist like you

It would be very kind of you if you could tutorials on this topics

ommanojsharma
Автор

Hello.. Is many shot prompting similar to fine tuning?

KumR
Автор

Thanks for sharing! where can we find the code for prompt tuning and prefix tuning as you shown in your video?

michelleming